When receiving critical signals, additionally log backtraces to syslog/files
authorMartin Willi <martin@revosec.ch>
Mon, 4 Mar 2013 14:46:34 +0000 (15:46 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 4 Mar 2013 14:46:34 +0000 (15:46 +0100)
src/charon/charon.c

index f4bd27d..812b762 100644 (file)
@@ -175,6 +175,7 @@ static void segv_handler(int signal)
 
        DBG1(DBG_DMN, "thread %u received %d", thread_current_id(), signal);
        backtrace = backtrace_create(2);
 
        DBG1(DBG_DMN, "thread %u received %d", thread_current_id(), signal);
        backtrace = backtrace_create(2);
+       backtrace->log(backtrace, NULL, TRUE);
        backtrace->log(backtrace, stderr, TRUE);
        backtrace->destroy(backtrace);
 
        backtrace->log(backtrace, stderr, TRUE);
        backtrace->destroy(backtrace);