From 7e82ad20fa110b6b121ab82367f2e7c8995231b7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 25 Aug 2016 16:35:26 +0900 Subject: osmo-nitb: generate backtrace on SIGABRT As the NITB has an internal SIGABRT handler that prints a talloc report, let's also print a stack backtrace at the same point. Change-Id: Ia63aa5c39b26e27c3ee220d755c17d2c1ef636c5 --- openbsc/src/osmo-nitb/bsc_hack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c index e3e89271e..976aefa49 100644 --- a/openbsc/src/osmo-nitb/bsc_hack.c +++ b/openbsc/src/osmo-nitb/bsc_hack.c @@ -209,6 +209,7 @@ static void signal_handler(int signal) exit(0); break; case SIGABRT: + osmo_generate_backtrace(); /* in case of abort, we want to obtain a talloc report * and then return to the caller, who will abort the process */ case SIGUSR1: -- cgit v1.2.3