Bug 512108 - ibus-chewing crash the application
Summary: ibus-chewing crash the application
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libchewing
Version: 11
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Ding-Yi Chen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-16 11:37 UTC by CW Lin
Modified: 2009-08-10 21:49 UTC (History)
4 users (show)

Fixed In Version: 0.3.2-15.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-10 21:42:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Debug output of ibus-engine-chewing when pressing "2u04g4<Space><Down>" (13.77 KB, text/plain)
2009-08-03 02:28 UTC, CW Lin
no flags Details

Description CW Lin 2009-07-16 11:37:16 UTC
Description of problem:
With certain keys typing, the application accepting input will crash immediately.

Version-Release number of selected component (if applicable):
ibus-anthy-1.1.0.20090603-1.fc11.x86_64
ibus-chewing-1.0.10.20090523-2.fc11.x86_64
ibus-gtk-1.1.0.20090612-1.fc11.x86_64
libuser-0.56.9-3.x86_64
ibus-libs-1.1.0.20090612-1.fc11.x86_64
ibus-1.1.0.20090612-1.fc11.x86_64
ibus-rawcode-1.0.0.20090303-3.fc11.x86_64
libusb1-1.0.0-2.fc11.x86_64
libuser-python-0.56.9-3.x86_64
ibus-m17n-1.1.0.20090211-5.fc11.x86_64
ibus-pinyin-1.1.0.20090612-1.fc11.noarch
libusb-0.1.12-21.fc11.x86_64
ibus-hangul-1.1.0.20090328-2.fc11.x86_64
gnome-terminal-2.26.2-1.fc11.x86_64

How reproducible:
With the following steps, the gnome-terminal will crash immediately.

Steps to Reproduce:
1. Open a gnome terminal.
2. Select the input method of "Chewing" by typing Ctrl-Space
3. Type "2u04g4" only. Do not press the "Enter" key.
4. Press "Left Arrow" twice.
5. Press "Down Arrow" twice.
  
Actual results:
The gnome terminal will crash immediately.

Expected results:
The gnome terminal should not crash.

Additional info:

Comment 1 Jens Petersen 2009-07-22 05:44:40 UTC
Re-assigning to Caius since Ding is away this week.

Comment 2 Caius Chance 2009-07-22 05:52:12 UTC
Works for me on i386:

ibus-chewing-1.0.10.20090523-2.fc11.i586
ibus-1.1.0.20090612-1.fc11.i586
ibus-gtk-1.1.0.20090612-1.fc11.i586
ibus-libs-1.1.0.20090612-1.fc11.i586
gnome-terminal-2.26.2-1.fc11.i586

Comment 3 Caius Chance 2009-07-22 06:55:26 UTC
x86_64 env prep

Comment 4 Jens Petersen 2009-07-27 01:30:23 UTC
Reproduced on F11 x86_64:

#0  0x00000039fc066350 in g_utf8_offset_to_pointer () from /lib64/libglib-2.0.so.0
#1  0x00007fffefd99e57 in _ibus_context_update_preedit_text_cb (ibuscontext=<value optimized out>, text=0x825760, cursor_pos=<value optimized out>, 
    visible=1, ibusimcontext=0x821f50) at ibusimcontext.c:760
#2  0x00000039fc40b83e in g_closure_invoke () from /lib64/libgobject-2.0.so.0
#3  0x00000039fc420b83 in ?? () from /lib64/libgobject-2.0.so.0
#4  0x00000039fc421f49 in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0
#5  0x00000039fc422493 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#6  0x00007fffefb77483 in ibus_input_context_ibus_signal (proxy=<value optimized out>, message=0xa26350) at ibusinputcontext.c:417
#7  0x00007fffefb81308 in ibus_marshal_BOOLEAN__POINTER (closure=0xa8ecc0, return_value=0x7fffffffd310, n_param_values=<value optimized out>, 
    param_values=0x9ba430, invocation_hint=<value optimized out>, marshal_data=0x7fffefb771e0) at ibusmarshalers.c:165
#8  0x00000039fc40b83e in g_closure_invoke () from /lib64/libgobject-2.0.so.0
#9  0x00000039fc420855 in ?? () from /lib64/libgobject-2.0.so.0
#10 0x00000039fc421ddc in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0
#11 0x00000039fc422493 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#12 0x00007fffefb6e7d0 in ibus_proxy_handle_signal (proxy=0x821d90, message=0xa26350) at ibusproxy.c:521
#13 0x00007fffefb6eefb in _connection_ibus_signal_cb (connection=0xa43180, message=0xa26350, proxy=0x821d90) at ibusproxy.c:230
#14 0x00007fffefb81308 in ibus_marshal_BOOLEAN__POINTER (closure=0x9f9c70, return_value=0x7fffffffd7e0, n_param_values=<value optimized out>, 
    param_values=0xb748a0, invocation_hint=<value optimized out>, marshal_data=0x7fffefb6ee80) at ibusmarshalers.c:165
#15 0x00000039fc40b83e in g_closure_invoke () from /lib64/libgobject-2.0.so.0
#16 0x00000039fc420b83 in ?? () from /lib64/libgobject-2.0.so.0
#17 0x00000039fc421ddc in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0
#18 0x00000039fc422493 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#19 0x00007fffefb6d1ba in ibus_connection_ibus_message (connection=0xa43180, message=0xa26350) at ibusconnection.c:283
#20 0x00007fffefb81308 in ibus_marshal_BOOLEAN__POINTER (closure=0x823e50, return_value=0x7fffffffdc40, n_param_values=<value optimized out>, 
    param_values=0xaf6870, invocation_hint=<value optimized out>, marshal_data=0x7fffefb6d160) at ibusmarshalers.c:165
#21 0x00000039fc40b83e in g_closure_invoke () from /lib64/libgobject-2.0.so.0
#22 0x00000039fc420855 in ?? () from /lib64/libgobject-2.0.so.0
#23 0x00000039fc421ddc in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0
#24 0x00000039fc422493 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#25 0x00007fffefb6b996 in _connection_handle_message_cb (dbus_connection=<value optimized out>, message=0x1, connection=0xc15a10)
    at ibusconnection.c:329
#26 0x0000003e922105de in dbus_connection_dispatch (connection=0x8238e0) at dbus-connection.c:4406
#27 0x0000003e9221080f in _dbus_connection_read_write_dispatch (connection=0x8238e0, timeout_milliseconds=-1, dispatch=<value optimized out>)
    at dbus-connection.c:3431
#28 0x00007fffefb768c5 in ibus_input_context_process_key_event (context=<value optimized out>, keyval=65364, state=0) at ibusinputcontext.c:579
#29 0x00007fffefd9a380 in _key_snooper_cb (widget=<value optimized out>, event=0xb7a1e0, user_data=<value optimized out>) at ibusimcontext.c:222
#30 0x000000380e527755 in gtk_invoke_key_snoopers (event=<value optimized out>, grab_widget=<value optimized out>) at gtkmain.c:1908
#31 IA__gtk_main_do_event (event=<value optimized out>, grab_widget=<value optimized out>) at gtkmain.c:1593
#32 0x000000380e04e17c in gdk_event_dispatch (source=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>)
    at gdkevents-x11.c:2367
#33 0x00000039fc037afe in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#34 0x00000039fc03b1d8 in ?? () from /lib64/libglib-2.0.so.0
#35 0x00000039fc03b635 in g_main_loop_run () from /lib64/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#36 0x000000380e5279c7 in IA__gtk_main () at gtkmain.c:1205
#37 0x00000000004283b5 in main ()

Comment 5 Ding-Yi Chen 2009-07-31 07:24:16 UTC
I reproduced the problem when ibus-chewing setting-> selecting -> "Choose phrases from backward" is disabled.

Seems like the problem of my libchewing patch, fixing now.

Comment 6 Fedora Update System 2009-07-31 08:09:26 UTC
libchewing-0.3.2-14.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/libchewing-0.3.2-14.fc11

Comment 7 Fedora Update System 2009-07-31 08:09:42 UTC
libchewing-0.3.2-14.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/libchewing-0.3.2-14.fc10

Comment 8 Fedora Update System 2009-08-01 23:56:09 UTC
libchewing-0.3.2-14.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libchewing'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-8195

Comment 9 Fedora Update System 2009-08-02 00:00:19 UTC
libchewing-0.3.2-14.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libchewing'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8215

Comment 10 CW Lin 2009-08-02 07:22:40 UTC
I have installed it with
 su -c 'yum --enablerepo=updates-testing update libchewing'.

But the command "rpm -q libchewing" shows that
libchewing-0.3.2-11.fc11.x86_64,
not 14.fc11 as mentioned in the above comment.

Did I miss something?

Comment 11 CW Lin 2009-08-02 10:15:48 UTC
Forget about my previous question.
Now, I have libchewing-0.3.2-14.fc11.x86_64 installed.

The original bug was fixed.
But here comes the new one.

Version-Release number of selected component (if applicable):
ibus-anthy-1.1.0.20090603-1.fc11.x86_64
ibus-chewing-1.0.10.20090523-2.fc11.x86_64
ibus-gtk-1.1.0.20090612-1.fc11.x86_64
ibus-libs-1.1.0.20090612-1.fc11.x86_64
ibus-1.1.0.20090612-1.fc11.x86_64
ibus-rawcode-1.0.0.20090303-3.fc11.x86_64
ibus-m17n-1.1.0.20090211-5.fc11.x86_64
ibus-pinyin-1.1.0.20090612-1.fc11.noarch
ibus-hangul-1.1.0.20090328-2.fc11.x86_64

Steps to Reproduce:
1. Restart "IBus".
2. Open a gnome terminal.
3. Select the input method of "Chewing" by typing Ctrl-Space
4. Type "2u04g4" only. Do not press the "Enter" key.
5. Press "Space".
6. Press "Down".

Actual results:
The gnome terminal will crash immediately.

Expected results:
The gnome terminal should not crash.

Comment 12 Ding-Yi Chen 2009-08-03 00:07:08 UTC
I cannot reproduce it.
Would you mind trying some other setting combination, like
toggle selecting->choose phrase from backward, selecting->space to select.
And telling which works, which doesn't.

Or you may send me the log by following procedure:
1. Open a terminal program other than gnome-terminal, such as konsole, aterm.
2. Quit ibus
3. Run following command in the terminal:
  ibus-daemon &
  /usr/libexec/ibus-engine-chewing -v 3
4. Open a gnome-terminal, and do the "crashing" steps.
5. Copy the debug output to a text file and attach the text file in this bug.


Regards,

Comment 13 CW Lin 2009-08-03 01:51:36 UTC
The new problem can be reproduced by enabling "choose phrase from backward".

Steps to Reproduce:
1. Enable "Choose phrases from backward"
2. Restart "IBus".
3. Open a gnome terminal.
4. Select the input method of "Chewing" by typing Ctrl-Space
5. Type "2u04g4" only. Do not press the "Enter" key.
6. Press "Space".
7. Press "Down".

I will send you the log later with the procedure mentioned.

Comment 14 CW Lin 2009-08-03 02:28:37 UTC
Created attachment 355948 [details]
Debug output of ibus-engine-chewing when pressing "2u04g4<Space><Down>"

Comment 15 Ding-Yi Chen 2009-08-03 04:55:08 UTC
Bug reproduced, the fix will come up shortly.

Comment 16 Fedora Update System 2009-08-03 05:44:52 UTC
libchewing-0.3.2-15.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/libchewing-0.3.2-15.fc11

Comment 17 Fedora Update System 2009-08-03 05:45:06 UTC
libchewing-0.3.2-15.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/libchewing-0.3.2-15.fc10

Comment 18 Fedora Update System 2009-08-03 19:21:18 UTC
libchewing-0.3.2-15.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libchewing'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-8224

Comment 19 Fedora Update System 2009-08-03 19:23:09 UTC
libchewing-0.3.2-15.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libchewing'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8242

Comment 20 CW Lin 2009-08-04 17:06:01 UTC
Thanks.
There is no problem now.

Comment 21 Fedora Update System 2009-08-10 21:42:08 UTC
libchewing-0.3.2-15.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2009-08-10 21:49:29 UTC
libchewing-0.3.2-15.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.