Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373975 - net-irc/xchat-2.8.8-r2[dbus,-gtk] segfaults on load
Summary: net-irc/xchat-2.8.8-r2[dbus,-gtk] segfaults on load
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 01:45 UTC by Claudio Roberto França Pereira
Modified: 2011-07-11 13:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info and crash log. (xchat_crash.log,8.94 KB, text/plain)
2011-07-04 01:46 UTC, Claudio Roberto França Pereira
Details
xchat-2.8.8-dbus.patch (xchat-2.8.8-dbus.patch,509 bytes, patch)
2011-07-08 12:14 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Roberto França Pereira 2011-07-04 01:45:39 UTC
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.
Comment 1 Claudio Roberto França Pereira 2011-07-04 01:46:25 UTC
Created attachment 279005 [details]
emerge --info and crash log.
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-07-08 11:52:53 UTC
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.
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-07-08 12:14:31 UTC
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.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-07-11 13:29:27 UTC
+  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.
+