After emerging xchat without gtk support, I get a xchat-text binary that segfaults on load. Reproducible: Always Steps to Reproduce: 1. USE="-gtk" emerge xchat 2. xchat-text 3. kaboom Actual Results: Segmentation fault. Details on the attached log file. Expected Results: xchat-text, which presumably is a text-mode IRC client. Error messages and emerge --info attached as xchat_crash.log.
Created attachment 279005 [details] emerge --info and crash log.
Program received signal SIGSEGV, Segmentation fault. 0x0806a8ef in init_dbus (plugin_handle=0x8146000, plugin_name=0x8146094, plugin_desc=0x8146098, plugin_version=0x814609c, arg=0x0) at dbus-plugin.c:914 914 dbus-plugin.c: No such file or directory. in dbus-plugin.c (gdb) bt #0 0x0806a8ef in init_dbus (plugin_handle=0x8146000, plugin_name=0x8146094, plugin_desc=0x8146098, plugin_version=0x814609c, arg=0x0) at dbus-plugin.c:914 #1 dbus_plugin_init (plugin_handle=0x8146000, plugin_name=0x8146094, plugin_desc=0x8146098, plugin_version=0x814609c, arg=0x0) at dbus-plugin.c:1063 #2 0x0805cb23 in plugin_add (sess=0x809bba0, filename=0x0, handle=0x0, init_func=0x806a67e, deinit_func=0x0, arg=0x0, fake=0) at plugin.c:273 #3 0x08067cee in irc_init (sess=0x809bba0) at xchat.c:312 #4 0x08067e78 in new_ircwindow (serv=0x0, name=0x0, type=1, focus=0) at xchat.c:398 #5 0x08053911 in fe_main () at fe-text.c:428 #6 0x080688af in main (argc=1, argv=0xbfffefa4) at xchat.c:920 Works fine with USE=-dbus for me, so for now that might be the workaround.
Created attachment 279433 [details, diff] xchat-2.8.8-dbus.patch This calls g_type_init() in the dbus-plugin. The dbus-plugin assumes that xchat was compiled with gtk+ support and that the gtk+'s initialization functions will indirectly initialize most of glib.
+ 11 Jul 2011; Lars Wendler <polynomial-c@gentoo.org> xchat-2.8.8-r1.ebuild, + xchat-2.8.8-r2.ebuild, +files/xchat-2.8.8-dbus.patch: + Fixed segfault with "+dbus -gtk" USE flags being set. Thanks to Claudio + Roberto França Pereira who reported this issue in bug #373975 and to Nathan + Phillip Brink for a working patch. +