Bug 1489537

Summary: [abrt] ibus: ibus_emojier_get_selected_string(): ibus-ui-gtk3 killed by SIGSEGV
Product: [Fedora] Fedora Reporter: mithrial
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: i18n-bugs, oviswana, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b996359d97aab4ffe6fbe8a2a516cbf93aad3acc
Whiteboard: abrt_hash:65e4548d7ad8895fa71a3309cb75240827de2ad2;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-20 03:06:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description mithrial 2017-09-07 16:07:36 UTC
Description of problem:
I typed Ctrl+Shift+e to enter an emoji

Version-Release number of selected component:
ibus-1.5.16-6.fc26

Additional info:
reporter:       libreport-2.9.1
backtrace_rating: 3
cmdline:        /usr/libexec/ibus-ui-gtk3
crash_function: ibus_emojier_get_selected_string
executable:     /usr/libexec/ibus-ui-gtk3
journald_cursor: s=fd6df7f5caa34218873213c7811a268a;i=3bc5b;b=d943800e9b9c420ba968c1564b7d3c91;m=7a5738f4e;t=5589b93a965bc;x=334d992dd60e5312
kernel:         4.12.9-300.fc26.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 ibus_emojier_get_selected_string at emojier.c:5622
 #1 panel_emojier_focus_commit at panel.c:5597
 #2 panel_show_emojier at panel.c:3654
 #3 panel_handle_emoji_typing at panel.c:3684
 #4 keybinding_manager_event_handler at keybindingmanager.c:687
 #5 _keybinding_manager_event_handler_gdk_event_func at keybindingmanager.c:157
 #6 _gdk_event_emit at gdkevents.c:73
 #12 gtk_main at gtkmain.c:1322
 #13 application_run at application.c:201
 #14 application_main at application.c:272

Comment 1 mithrial 2017-09-07 16:07:42 UTC
Created attachment 1323271 [details]
File: backtrace

Comment 2 mithrial 2017-09-07 16:07:44 UTC
Created attachment 1323272 [details]
File: cgroup

Comment 3 mithrial 2017-09-07 16:07:45 UTC
Created attachment 1323273 [details]
File: core_backtrace

Comment 4 mithrial 2017-09-07 16:07:47 UTC
Created attachment 1323274 [details]
File: cpuinfo

Comment 5 mithrial 2017-09-07 16:07:48 UTC
Created attachment 1323275 [details]
File: dso_list

Comment 6 mithrial 2017-09-07 16:07:50 UTC
Created attachment 1323276 [details]
File: environ

Comment 7 mithrial 2017-09-07 16:07:51 UTC
Created attachment 1323277 [details]
File: exploitable

Comment 8 mithrial 2017-09-07 16:07:52 UTC
Created attachment 1323278 [details]
File: limits

Comment 9 mithrial 2017-09-07 16:07:54 UTC
Created attachment 1323279 [details]
File: maps

Comment 10 mithrial 2017-09-07 16:07:56 UTC
Created attachment 1323280 [details]
File: open_fds

Comment 11 mithrial 2017-09-07 16:07:57 UTC
Created attachment 1323281 [details]
File: proc_pid_status

Comment 12 mithrial 2017-09-07 16:07:58 UTC
Created attachment 1323282 [details]
File: var_log_messages

Comment 13 fujiwara 2017-09-08 06:13:57 UTC
I cannot reproduce the backtrace but I think this problem might happen and a patch could avoid it.

Comment 14 fujiwara 2017-09-14 11:00:53 UTC
The tentative patch is not agreed in upstream.

-    public string get_selected_string() {
+    public string? get_selected_string() {
+        if (!(this is IBusEmojier))
+            return null;
         return m_result;
     }

Comment 15 ompragash 2018-03-20 03:06:26 UTC
Cannot reproduce. Feel free to reopen if anyone can reproduce this issue with "How to reproduce steps".