Bug 1618682 - ibus-extension-gtk3 killed by SIGSEGV in Wayland
Summary: ibus-extension-gtk3 killed by SIGSEGV in Wayland
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1637856
TreeView+ depends on / blocked
 
Reported: 2018-08-17 10:16 UTC by Bhushan Barve
Modified: 2018-10-10 08:31 UTC (History)
4 users (show)

Fixed In Version: ibus-1.5.19-3.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1637856 (view as bug list)
Environment:
Last Closed: 2018-09-21 05:24:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bhushan Barve 2018-08-17 10:16:38 UTC
Description of problem: Installed rawhide at - https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Workstation/x86_64/os/ dated 13-03-2018.
Installation locale - ja_JP

In gedit, opened emoji selector by pressing ctrl+shift+e. Tried to enter some random keyboard input and ibus crashed. Following was the core backtrace excerpt from gnome-abrt -

{   "signal": 11
,   "executable": "/usr/libexec/ibus-extension-gtk3"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 94527005759281
                ,   "build_id": "1df2899593a705b38f040da041d34630774fdec2"
                ,   "build_id_offset": 79665
                ,   "file_name": "/usr/libexec/ibus-extension-gtk3"
                }
              , {   "address": 94527005764736
                ,   "build_id": "1df2899593a705b38f040da041d34630774fdec2"
                ,   "build_id_offset": 85120
                ,   "file_name": "/usr/libexec/ibus-extension-gtk3"
                }
              , {   "address": 140344946983160
                ,   "build_id": "1b48e6c6799645020823c1e27e3dee3c5ce830e6"
                ,   "build_id_offset": 2330872
                ,   "function_name": "_gtk_marshal_BOOLEAN__BOXEDv"
                ,   "file_name": "/lib64/libgtk-3.so.0"
                }
              , {   "address": 140344937652326
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 69734
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344937770404
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 187812
                ,   "function_name": "g_signal_emit_valist"
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344937773347
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 190755
                ,   "function_name": "g_signal_emit"
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344948350404
                ,   "build_id": "1b48e6c6799645020823c1e27e3dee3c5ce830e6"
                ,   "build_id_offset": 3698116
                ,   "function_name": "gtk_widget_event_internal"
                ,   "file_name": "/lib64/libgtk-3.so.0"
                }
              , {   "address": 140344946970625
                ,   "build_id": "1b48e6c6799645020823c1e27e3dee3c5ce830e6"
                ,   "build_id_offset": 2318337
                ,   "function_name": "propagate_event"
                ,   "file_name": "/lib64/libgtk-3.so.0"
                }
              , {   "address": 140344946979043
                ,   "build_id": "1b48e6c6799645020823c1e27e3dee3c5ce830e6"
                ,   "build_id_offset": 2326755
                ,   "function_name": "gtk_main_do_event"
                ,   "file_name": "/lib64/libgtk-3.so.0"
                }
              , {   "address": 140344943863801
                ,   "build_id": "eeb06794019004057c576778ec88f3674c6d4700"
                ,   "build_id_offset": 231417
                ,   "function_name": "_gdk_event_emit"
                ,   "file_name": "/lib64/libgdk-3.so.0"
                }
              , {   "address": 140344944241894
                ,   "build_id": "eeb06794019004057c576778ec88f3674c6d4700"
                ,   "build_id_offset": 609510
                ,   "function_name": "gdk_event_source_dispatch"
                ,   "file_name": "/lib64/libgdk-3.so.0"
                }
              , {   "address": 140344936727213
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 320173
                ,   "function_name": "g_main_context_dispatch"
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936728184
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 321144
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936728994
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 321954
                ,   "function_name": "g_main_loop_run"
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344946975053
                ,   "build_id": "1b48e6c6799645020823c1e27e3dee3c5ce830e6"
                ,   "build_id_offset": 2322765
                ,   "function_name": "gtk_main"
                ,   "file_name": "/lib64/libgtk-3.so.0"
                }
              , {   "address": 140344937651725
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 69133
                ,   "function_name": "g_closure_invoke"
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344937731908
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 149316
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344937771818
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 189226
                ,   "function_name": "g_signal_emit_valist"
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344937773347
                ,   "build_id": "9f6c3e75b576274650fb71565f543ef52be4dce9"
                ,   "build_id_offset": 190755
                ,   "function_name": "g_signal_emit"
                ,   "file_name": "/lib64/libgobject-2.0.so.0"
                }
              , {   "address": 140344938634856
                ,   "build_id": "818f48d4283c251524af5de867cc5f71a0732a1c"
                ,   "build_id_offset": 700008
                ,   "file_name": "/lib64/libgio-2.0.so.0"
                }
              , {   "address": 140344938635295
                ,   "build_id": "818f48d4283c251524af5de867cc5f71a0732a1c"
                ,   "build_id_offset": 700447
                ,   "function_name": "g_application_run"
                ,   "file_name": "/lib64/libgio-2.0.so.0"
                }
              , {   "address": 94527005773499
                ,   "build_id": "1df2899593a705b38f040da041d34630774fdec2"
                ,   "build_id_offset": 93883
                ,   "file_name": "/usr/libexec/ibus-extension-gtk3"
                } ]
        }
      , {   "frames":
              [ {   "address": 140344935404289
                ,   "build_id": "a1437ebb8eeadbdb53dc59ba984eb8a325134053"
                ,   "build_id_offset": 992001
                ,   "function_name": "__poll"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 140344936728038
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 320998
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936728336
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 321296
                ,   "function_name": "g_main_context_iteration"
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344703822749
                ,   "build_id": "b45d0c9e765f933e6883a6dbddd6a6ad186439c7"
                ,   "build_id_offset": 35741
                ,   "function_name": "dconf_gdbus_worker_thread"
                ,   "file_name": "/usr/lib64/gio/modules/libdconfsettings.so"
                }
              , {   "address": 140344936896234
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 489194
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936306062
                ,   "build_id": "97e4cd4498fab9890e134a1c6a724099689b6e1c"
                ,   "build_id_offset": 34190
                ,   "function_name": "start_thread"
                ,   "file_name": "/lib64/libpthread.so.0"
                }
              , {   "address": 140344935449875
                ,   "build_id": "a1437ebb8eeadbdb53dc59ba984eb8a325134053"
                ,   "build_id_offset": 1037587
                ,   "function_name": "__clone"
                ,   "file_name": "/lib64/libc.so.6"
                } ]
        }
      , {   "frames":
              [ {   "address": 140344935404289
                ,   "build_id": "a1437ebb8eeadbdb53dc59ba984eb8a325134053"
                ,   "build_id_offset": 992001
                ,   "function_name": "__poll"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 140344936728038
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 320998
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936728336
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 321296
                ,   "function_name": "g_main_context_iteration"
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936728417
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 321377
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936896234
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 489194
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936306062
                ,   "build_id": "97e4cd4498fab9890e134a1c6a724099689b6e1c"
                ,   "build_id_offset": 34190
                ,   "function_name": "start_thread"
                ,   "file_name": "/lib64/libpthread.so.0"
                }
              , {   "address": 140344935449875
                ,   "build_id": "a1437ebb8eeadbdb53dc59ba984eb8a325134053"
                ,   "build_id_offset": 1037587
                ,   "function_name": "__clone"
                ,   "file_name": "/lib64/libc.so.6"
                } ]
        }
      , {   "frames":
              [ {   "address": 140344935404289
                ,   "build_id": "a1437ebb8eeadbdb53dc59ba984eb8a325134053"
                ,   "build_id_offset": 992001
                ,   "function_name": "__poll"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 140344936728038
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 320998
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936728994
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 321954
                ,   "function_name": "g_main_loop_run"
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344938825994
                ,   "build_id": "818f48d4283c251524af5de867cc5f71a0732a1c"
                ,   "build_id_offset": 891146
                ,   "file_name": "/lib64/libgio-2.0.so.0"
                }
              , {   "address": 140344936896234
                ,   "build_id": "c7b38ea675d0f6f669ff947ba10d70afb1739841"
                ,   "build_id_offset": 489194
                ,   "file_name": "/lib64/libglib-2.0.so.0"
                }
              , {   "address": 140344936306062
                ,   "build_id": "97e4cd4498fab9890e134a1c6a724099689b6e1c"
                ,   "build_id_offset": 34190
                ,   "function_name": "start_thread"
                ,   "file_name": "/lib64/libpthread.so.0"
                }
              , {   "address": 140344935449875
                ,   "build_id": "a1437ebb8eeadbdb53dc59ba984eb8a325134053"
                ,   "build_id_offset": 1037587
                ,   "function_name": "__clone"
                ,   "file_name": "/lib64/libc.so.6"
                } ]
        } ]
}




Version-Release number of selected component (if applicable):
ibus 1.5.19-1.fc29.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install rawhide
2. open terminal/gedit
3. press ctrl+shift+e followed by space to open emoji selection window.
4. Type some random keyboard input and hit enter.

Actual results:
ibus crashes

Expected results:
There should not be any crash.

Additional info:

Comment 1 fujiwara 2018-08-20 03:45:13 UTC
I cannot reproduce your problem and seems your backtrace lacks ibus-debuginfo and ibus-libs-debuginfo so I cannot get line numbers of the functions in your backtrace.
I think it's also good to install glib2-debuginfo and gtk3-debuginfo

(In reply to Bhushan Barve from comment #0)
>               [ {   "address": 94527005759281
>                 ,   "build_id": "1df2899593a705b38f040da041d34630774fdec2"
>                 ,   "build_id_offset": 79665
>                 ,   "file_name": "/usr/libexec/ibus-extension-gtk3"
>                 }
>               , {   "address": 94527005764736
>                 ,   "build_id": "1df2899593a705b38f040da041d34630774fdec2"
>                 ,   "build_id_offset": 85120
>                 ,   "file_name": "/usr/libexec/ibus-extension-gtk3"

Please try to get the backtrace with debuginfo files again.

Comment 2 Bhushan Barve 2018-08-27 12:37:53 UTC
Installed the required debuginfos and following was generated - 

---------------------------------------------

[test@localhost ~]$ gdb /usr/libexec/ibus-ui-emojier --ex r --ex bt --ex q
GNU gdb (GDB) Fedora 8.1.90.20180727-45.fc30
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/libexec/ibus-ui-emojier...Reading symbols from /usr/lib/debug/usr/libexec/ibus-ui-emojier-1.5.19-2.fc30.x86_64.debug...done.
done.
Starting program: /usr/libexec/ibus-ui-emojier 
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
Missing separate debuginfo for /lib64/libmount.so.1
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/f8/327d6d1741a9ca39a96f2bc253d74d6f05034e.debug
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
[New Thread 0x7fffe9297700 (LWP 2537)]
[New Thread 0x7fffe8a96700 (LWP 2538)]
warning: Loadable section ".note.gnu.property" outside of ELF segments
[New Thread 0x7fffe3fff700 (LWP 2539)]
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
[New Thread 0x7fffe37fe700 (LWP 2540)]
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
Gdk-Message: 18:04:33.620: Window 0x55555559b340 is a temporary window without parent, application will not be able to position it on screen.
Gdk-Message: 18:04:33.620: Window 0x55555559b340 is a temporary window without parent, application will not be able to position it on screen.

Thread 1 "ibus-ui-emojier" received signal SIGSEGV, Segmentation fault.
0x0000555555565961 in ibus_emojier_get_current_candidate (self=<optimized out>) at emojier.c:7875
7875		_tmp7_ = g_strdup (_tmp6_);
#0  0x0000555555565961 in ibus_emojier_get_current_candidate (self=<optimized out>) at emojier.c:7875
#1  0x0000555555566eb0 in ibus_emojier_real_key_press_event
    (base=0x555555ab2440 [IBusEmojier], event=<optimized out>) at emojier.c:8096
#2  0x00007ffff7c34d48 in _gtk_marshal_BOOLEAN__BOXEDv
    (closure=0x5555555fdcd0, return_value=0x7fffffffd270, instance=<optimized out>, args=<optimized out>, marshal_data=<optimized out>, n_params=<optimized out>, param_types=0x5555555b15f0) at gtkmarshalers.c:129
#3  0x00007ffff73e2066 in _g_closure_invoke_va
    (closure=0x5555555fdcd0, return_value=0x7fffffffd270, instance=0x555555ab2440, args=0x7fffffffd340, n_params=1, param_types=0x5555555b15f0) at gclosure.c:873
#4  0x00007ffff73feda4 in g_signal_emit_valist
    (instance=0x555555ab2440, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7fffffffd340)
    at gsignal.c:3300
#5  0x00007ffff73ff923 in g_signal_emit
    (instance=instance@entry=0x555555ab2440, signal_id=<optimized out>, detail=detail@entry=0)
--Type <RET> for more, q to quit, c to continue without paging--
    at gsignal.c:3447
#6  0x00007ffff7bda9b4 in gtk_widget_event_internal (widget=0x555555ab2440 [IBusEmojier], event=0x5555555c08e0)
    at gtkwidget.c:7744
#7  0x00007ffff7a7b081 in propagate_event
    (widget=0x555555ab2440 [IBusEmojier], event=0x5555555c08e0, captured=<optimized out>, topmost=0x0)
    at gtkmain.c:2675
#8  0x00007ffff7a7d17b in gtk_main_do_event (event=<optimized out>) at gtkmain.c:1915
#9  0x00007ffff7734fd9 in _gdk_event_emit (event=event@entry=0x5555555c08e0) at gdkevents.c:73
#10 0x00007ffff7799da6 in gdk_event_source_dispatch
    (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:124
#11 0x00007ffff73002ad in g_main_dispatch (context=0x5555555a8020) at gmain.c:3182
#12 0x00007ffff73002ad in g_main_context_dispatch (context=context@entry=0x5555555a8020) at gmain.c:3847
#13 0x00007ffff7300678 in g_main_context_iterate
    (context=context@entry=0x5555555a8020, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3920
#14 0x00007ffff7300710 in g_main_context_iteration
    (context=context@entry=0x5555555a8020, may_block=may_block@entry=1) at gmain.c:3981
#15 0x00007ffff74d20b5 in g_application_run
    (application=0x5555556cf240 [EmojiApplication], argc=<optimized out>, argv=0x7fffffffd7c8)
    at gapplication.c:2470
#16 0x000055555555e547 in emoji_application_main (args=<optimized out>, args_length1=<optimized out>)
    at emojierapp.c:756
#17 0x00007ffff70ef413 in __libc_start_main (main=
    0x55555555d790 <main>, argc=1, argv=0x7fffffffd7c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd7b8) at ../csu/libc-start.c:308
#18 0x000055555555d7ce in _start () at emojierapp.c:767
A debugging session is active.

	Inferior 1 [process 2527] will be killed.

Quit anyway? (y or n) n
Not confirmed.
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2527] will be killed.

Quit anyway? (y or n) y

------------------------------------------

Please check and see if this helps.

Comment 3 fujiwara 2018-08-29 04:29:48 UTC
(In reply to Bhushan Barve from comment #2)
> Thread 1 "ibus-ui-emojier" received signal SIGSEGV, Segmentation fault.
> 0x0000555555565961 in ibus_emojier_get_current_candidate (self=<optimized
> out>) at emojier.c:7875
> 7875		_tmp7_ = g_strdup (_tmp6_);

I understand your problem happens when you type Enter key from your backtrace.
But strdup() should work even if _tmp6_ is 0 and the backtrace might not help to get the root cause.
I guess a buffer overflow might happen in your ibus and cause the SEGV.

Are you able to get more reproducing steps?

E.g. When I repeat to type Ctrl-Shift-e, "red", Space x 2, Enter, I don't see any problems.

I guess you use GNOME Xorg?

Also I'd ask you to get values when you get SEGV with gdb:

(gdb) print _tmp0_
(gdb) print _tmp2_
(gdb) print _tmp3_
(gdb) print _tmp4_
(gdb) print _tmp5_
(gdb) print _tmp6_
(gdb) print ibus_lookup_table_get_number_of_candidates(_tmp3_)
(gdb) print self->priv->m_annotation

Comment 4 Bhushan Barve 2018-08-29 07:22:48 UTC
(In reply to fujiwara from comment #3)

> 
> Are you able to get more reproducing steps?
> 
> E.g. When I repeat to type Ctrl-Shift-e, "red", Space x 2, Enter, I don't
> see any problems.

Yes, no issue here. However for the reproducer, please follow the steps as below-

1. Launch gedit
2. Press ctrl + shift + e 
3. press space
4. Select a category in the emoji window like 'flags'
5. Without selecting any flag, just press any text keys and hit enter.

The issue will reproduce.


> I guess you use GNOME Xorg?

Mine is Wayland session -

[test@localhost ~]$ loginctl
SESSION  UID USER SEAT  TTY 
      2 1000 test seat0 tty2

1 sessions listed.
[test@localhost ~]$ loginctl show-session 2
Id=2
User=1000
Name=test
Timestamp=Wed 2018-08-29 12:20:08 IST
TimestampMonotonic=107148947
VTNr=2
Seat=seat0
TTY=tty2
Remote=no
Service=gdm-password
Scope=session-2.scope
Leader=1451
Audit=2
Type=wayland
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=1535525814649649
IdleSinceHintMonotonic=513288522
LockedHint=no

Comment 5 Bhushan Barve 2018-08-29 09:01:05 UTC
(In reply to fujiwara from comment #3)
 
> Also I'd ask you to get values when you get SEGV with gdb:
> 
> (gdb) print _tmp0_
> (gdb) print _tmp2_
> (gdb) print _tmp3_
> (gdb) print _tmp4_
> (gdb) print _tmp5_
> (gdb) print _tmp6_
> (gdb) print ibus_lookup_table_get_number_of_candidates(_tmp3_)
> (gdb) print self->priv->m_annotation

here is the output - 

(gdb) print _tmp0_
$1 = <optimized out>
(gdb) print _tmp2_
$2 = <optimized out>
(gdb) print _tmp3_
$3 = <optimized out>
(gdb) print _tmp4_
$4 = <optimized out>
(gdb) print _tmp5_
$5 = 0x0
(gdb) print _tmp6_
Cannot access memory at address 0x38
(gdb) print ibus_lookup_table_get_number_of_candidates(_tmp3_)
value has been optimized out
(gdb) print self->priv->m_annotation
value has been optimized out
(gdb)

Comment 6 Bhushan Barve 2018-08-29 09:15:04 UTC
Thread 1 "ibus-ui-emojier" received signal SIGSEGV, Segmentation fault.
0x0000555555565961 in ibus_emojier_get_current_candidate (self=<optimized out>) at emojier.c:7875
7875		_tmp7_ = g_strdup (_tmp6_);
#0  0x0000555555565961 in ibus_emojier_get_current_candidate (self=<optimized out>) at emojier.c:7875
        _tmp0_ = <optimized out>
        cursor = <optimized out>
        _tmp2_ = <optimized out>
        _tmp3_ = <optimized out>
        _tmp4_ = <optimized out>
        _tmp5_ = 0x0
        _tmp6_ = Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x38:

Comment 7 fujiwara 2018-08-29 09:41:38 UTC
(In reply to Bhushan Barve from comment #4)
> 1. Launch gedit
> 2. Press ctrl + shift + e 
> 3. press space
> 4. Select a category in the emoji window like 'flags'
> 5. Without selecting any flag, just press any text keys and hit enter.

Thank you. I could reproduce the bug.
GtkEntry still exists internally in the previous ibus emojier and it cleans up the emoji candidates with char key press and causes the bug.
Probably it's good to delete GtkEntry completely now.

(In reply to Bhushan Barve from comment #5)
> (gdb) print _tmp5_
> $5 = 0x0

Thank you. I got it.

Comment 8 Fedora Update System 2018-08-30 05:14:38 UTC
ibus-1.5.19-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0a8bc5441c

Comment 9 Fedora Update System 2018-08-30 06:10:38 UTC
ibus-1.5.19-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0a8bc5441c

Comment 10 Fedora Update System 2018-08-30 06:17:54 UTC
ibus-1.5.19-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0a8bc5441c

Comment 11 Fedora Update System 2018-08-30 15:01:02 UTC
ibus-1.5.19-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0a8bc5441c

Comment 12 Bhushan Barve 2018-09-04 10:58:59 UTC
Tested with F29.
No crash observed now in this case.

Comment 13 Fedora Update System 2018-09-21 05:24:15 UTC
ibus-1.5.19-3.fc29 has been pushed to the Fedora 29 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.