[Top][All Lists]

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

[PATCH] Added the core dumps signals to the list of caught signals.

From: Kieran Colford
Subject: [PATCH] Added the core dumps signals to the list of caught signals.
Date: Wed, 21 May 2014 13:28:35 -0400

It is not mentioned anywhere why the signals which generate core dumps
are ignored by this module even though they are equally fatal to the

The only speculated reason for this is that the cleanup routine my
alter the state of the running process, making the core dump difficult
to use in debugging.

On the other hand, in a program that sets up temporary files, a fatal
signal from an assert statement or a rogue call to abort (say from the
xalloc-die module) will kill the process and pollute the user's /tmp
directory.  This also covers things such as segmentation faults and
division by 0 errors.
 lib/fatal-signal.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c
index 9a6f5f1..7138e3f 100644
--- a/lib/fatal-signal.c
+++ b/lib/fatal-signal.c
@@ -75,6 +75,19 @@ static int fatal_signals[] =
 #ifdef SIGBREAK
+    /* Core dump signals. */
+#ifdef SIGABRT
+#ifdef SIGFPE
+    SIGFPE,
+#ifdef SIGSEGV
+#ifdef SIGSYS
+    SIGSYS,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]