After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 449733 - Bug-buddy should install segv handler as a GTK+ module
Bug-buddy should install segv handler as a GTK+ module
Status: RESOLVED FIXED
Product: bug-buddy
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Bug-buddy Maintainers
Bug-buddy Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-21 09:34 UTC by Ross Burton
Modified: 2007-10-06 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Module, take 1 (2.97 KB, text/x-csrc)
2007-06-21 09:35 UTC, Ross Burton
Details

Description Ross Burton 2007-06-21 09:34:14 UTC
Bug-buddy currently uses hooks in libgnomeui to get called, via gnome_segv2, when applications crash.  libgnome is dying, so this functionality should be a GTK_ module instead.

Attaching a first attempt at a GTK+ module to handle crashes and spawn bug-buddy.  It needs a fair but of work, but is usable already.  It even dynamically opens libgnome to get the application version number (if the application uses GnomeProgram).

To test this, compile as libsegv.so, export GTK_MODULES=segv, run an application and then make it segfault.
Comment 1 Ross Burton 2007-06-21 09:35:17 UTC
Created attachment 90385 [details]
Module, take 1
Comment 2 Vincent Untz 2007-06-27 13:09:31 UTC
Hrm, Fernando had also something in bug 388441.
Comment 3 Vincent Untz 2007-06-27 13:11:57 UTC
Also, "if (segv_count > 2) {" should probably be "if (segv_count > 1) {"
Comment 4 Fernando Herrera 2007-10-06 18:50:17 UTC
this is already done