Bug 2358849

Summary: [abrt] ibus: g_realloc(): ibus-x11 killed by SIGABRT
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 45CC: i18n-bugs, mikhail.v.gavrilov, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/265b41867ab1e980ef4037cd56702eb03731db6
Whiteboard: abrt_hash:c8adcab103a3ff2cdb2fba3ee53ff00667f4e642;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: proc_pid_status
none
File: maps
none
File: limits
none
File: environ
none
File: open_fds
none
File: mountinfo
none
File: os_info
none
File: cpuinfo
none
File: core_backtrace
none
File: dso_list
none
File: var_log_messages
none
File: backtrace none

Description Mikhail 2025-04-10 13:44:15 UTC
Version-Release number of selected component:
ibus-1.5.32-1.fc43

Additional info:
reporter:       libreport-2.17.15
type:           CCpp
reason:         ibus-x11 killed by SIGABRT
journald_cursor: s=a5094004f8c342679a632d5672433cea;i=3dfb53b;b=4b2769462c9f441a8813455b50a90688;m=ac00ffa43;t=6326b274aefa5;x=3d52ee2e186456ad
executable:     /usr/libexec/ibus-x11
cmdline:        /usr/libexec/ibus-x11
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/org.gnome.SettingsDaemon.XSettings.service
rootdir:        /
uid:            1000
kernel:         6.15.0-rc1-work.mount.fixes+
package:        ibus-1.5.32-1.fc43
runlevel:       N 5
backtrace_rating: 4
crash_function: g_realloc

Truncated backtrace:
Thread no. 1 (19 frames)
 #7 g_realloc at ../glib/gmem.c:171
 #8 g_hash_table_realloc_key_or_value_array at ../glib/ghash.c:329
 #9 realloc_arrays at ../glib/ghash.c:672
 #10 g_hash_table_resize at ../glib/ghash.c:825
 #11 g_hash_table_maybe_resize at ../glib/ghash.c:865
 #12 g_hash_table_insert_node at ../glib/ghash.c:1318
 #13 g_hash_table_insert_internal at ../glib/ghash.c:1577
 #14 g_hash_table_insert at ../glib/ghash.c:1606
 #15 xim_open at /usr/src/debug/ibus-1.5.32-1.fc43.x86_64/client/x11/main.c:790
 #16 ims_protocol_handler at /usr/src/debug/ibus-1.5.32-1.fc43.x86_64/client/x11/main.c:1006
 #17 OpenMessageProc at ../../util/IMdkit/i18nPtHdr.c:196
 #18 _Xi18nMessageHandler at ../../util/IMdkit/i18nPtHdr.c:1814
 #19 WaitXIMProtocol at ../../util/IMdkit/i18nX.c:524
 #20 _gdk_x11_display_queue_events at ../gdk/x11/gdkeventsource.c:337
 #21 gdk_display_get_event at ../gdk/gdkdisplay.c:442
 #22 gdk_event_source_dispatch.lto_priv at ../gdk/x11/gdkeventsource.c:354
 #24 g_main_context_dispatch_unlocked at ../glib/gmain.c:4249
 #25 g_main_context_iterate_unlocked at ../glib/gmain.c:4314
 #27 ibus_main at /usr/src/debug/ibus-1.5.32-1.fc43.x86_64/src/ibusshare.c:336

Comment 1 Mikhail 2025-04-10 13:44:19 UTC
Created attachment 2084280 [details]
File: proc_pid_status

Comment 2 Mikhail 2025-04-10 13:44:21 UTC
Created attachment 2084281 [details]
File: maps

Comment 3 Mikhail 2025-04-10 13:44:22 UTC
Created attachment 2084282 [details]
File: limits

Comment 4 Mikhail 2025-04-10 13:44:24 UTC
Created attachment 2084283 [details]
File: environ

Comment 5 Mikhail 2025-04-10 13:44:25 UTC
Created attachment 2084284 [details]
File: open_fds

Comment 6 Mikhail 2025-04-10 13:44:27 UTC
Created attachment 2084285 [details]
File: mountinfo

Comment 7 Mikhail 2025-04-10 13:44:28 UTC
Created attachment 2084286 [details]
File: os_info

Comment 8 Mikhail 2025-04-10 13:44:30 UTC
Created attachment 2084287 [details]
File: cpuinfo

Comment 9 Mikhail 2025-04-10 13:44:32 UTC
Created attachment 2084288 [details]
File: core_backtrace

Comment 10 Mikhail 2025-04-10 13:44:33 UTC
Created attachment 2084289 [details]
File: dso_list

Comment 11 Mikhail 2025-04-10 13:44:35 UTC
Created attachment 2084290 [details]
File: var_log_messages

Comment 12 Mikhail 2025-04-10 13:44:36 UTC
Created attachment 2084291 [details]
File: backtrace

Comment 13 fujiwara 2025-10-17 14:24:37 UTC
I cannot reproduce your issue but I noticed you run XIM applications 61 times.
Unfortunately it's not mandatory for applications to call xim_close() and ibus-x11 does not release the resources while the applications exit.

(In reply to Mikhail from comment #12)
> Created attachment 2084291 [details]
> File: backtrace

#3  0x00007ff5b74df6d0 in __GI_abort () at abort.c:73
#4  0x00007ff5b74e073b in __libc_message_impl (fmt=fmt@entry=0x7ff5b7691564 "%s\n") at ../sysdeps/posix/libc_fatal.c:134
#7  0x00007ff5b78679bb in g_realloc (mem=0x55bc12cd3b60, n_bytes=512) at ../glib/gmem.c:171
#8  0x00007ff5b78465cf in g_hash_table_realloc_key_or_value_array (a=<optimized out>, size=<optimized out>, is_big=<optimized out>) at ../glib/ghash.c:329
#9  realloc_arrays (hash_table=hash_table@entry=0x55bc12c8ee10, is_a_set=is_a_set@entry=0) at ../glib/ghash.c:672
10 0x00007ff5b7846d3a in g_hash_table_resize (hash_table=0x55bc12c8ee10) at ../glib/ghash.c:825
        old_size = 64
        is_a_set = 0
#12 g_hash_table_insert_node (hash_table=hash_table@entry=0x55bc12c8ee10, node_index=node_index@entry=62, key_hash=key_hash@entry=61, new_key=new_key@entry=0x3d, new_value=new_value@entry=0x55bc12cd8d50, keep_new_key=keep_new_key@entry=0, reusing_key=0) at ../glib/ghash.c:1318
#15 0x000055bc072a9684 in xim_open (xims=<optimized out>, call_data=0x7fffef9625c0) at /usr/src/debug/ibus-1.5.32-1.fc43.x86_64/client/x11/main.c:790
#16 ims_protocol_handler (xims=<optimized out>, call_data=0x7fffef9625c0) at /usr/src/debug/ibus-1.5.32-1.fc43.x86_64/client/x11/main.c:1006
#17 0x000055bc072b4893 in OpenMessageProc (ims=0x55bc12c8f9f0, call_data=0x7fffef9625c0, p=0x55bc12cd82f4 "\002en") at ../../util/IMdkit/i18nPtHdr.c:196
        i18n_core = 0x55bc12c8fa20
        fm = 0x55bc12cd7480
        reply = 0x0
        str_size = -1233030200
        i = <optimized out>
        total_size = <optimized out>
        connect_id = 61
        str_length = 2
        name = 0x55bc12cd82f5 "en"
        imopen = 0x7fffef9625c0
#18 _Xi18nMessageHandler (ims=ims@entry=0x55bc12c8f9f0, connect_id=<optimized out>, p=p@entry=0x55bc12cd82f0 "\036", delete=delete@entry=0x7fffef962824) at ../../util/IMdkit/i18nPtHdr.c:1814
#19 0x000055bc072b5e2d in WaitXIMProtocol (dpy=<optimized out>, win=<optimized out>, ev=<optimized out>, client_data=0x55bc12c8f9f0 "`\006,\a\274U") at ../../util/IMdkit/i18nX.c:524
#20 0x00007ff5b7c0f53f in _gdk_x11_display_queue_events (display=0x55bc12c68f30) at ../gdk/x11/gdkeventsource.c:337

Comment 15 Aoife Moloney 2026-08-17 13:35:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.