GNOME Bugzilla – Bug 449733
Bug-buddy should install segv handler as a GTK+ module
Last modified: 2007-10-06 18:50:17 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.
Created attachment 90385 [details] Module, take 1
Hrm, Fernando had also something in bug 388441.
Also, "if (segv_count > 2) {" should probably be "if (segv_count > 1) {"
this is already done