Re: having bug-buddy catch SIGABRT



On Fri, 2002-03-01 at 12:14, jacob berkman wrote:
> currently bug-buddy only catches SEGVs.  however, in gnome 2 i am
> hitting a lot of failed assertions and it would be easier to report
> these if bug-buddy caught them too.
> 
> any reasons not to do this?

i'm committing this tomorrow unless someone objects.  it adds ABRT and
TRAP to the signals that spawn the crash dialog.

jacob
-- 
Index: gnome-ui-init.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-ui-init.c,v
retrieving revision 1.176
diff -u -r1.176 gnome-ui-init.c
--- gnome-ui-init.c	2002/03/05 12:49:57	1.176
+++ gnome-ui-init.c	2002/03/05 20:26:00
@@ -548,6 +548,8 @@
         }
 
         sigaction(SIGSEGV, setptr, NULL);
+        sigaction(SIGABRT, setptr, NULL);
+        sigaction(SIGTRAP, setptr, NULL);
         sigaction(SIGFPE, setptr, NULL);
         sigaction(SIGBUS, setptr, NULL);
 }
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/Attic/ChangeLog,v
retrieving revision 1.1796
diff -u -r1.1796 ChangeLog
--- ChangeLog	2002/02/27 16:01:13	1.1796
+++ ChangeLog	2002/03/05 20:26:00
@@ -1,3 +1,8 @@
+2002-03-05  jacob berkman  <jacob ximian com>
+
+	* gnome-ui-init.c (libgnomeui_segv_setup): listen to SIGABRT and
+	SIGTRAP also
+
 2002-02-27  Mark McLoughlin  <mark skynet ie>
 
 	* gnome-entry.c: (set_combo_items): don't set the popdown


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]