diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-08-25 16:35:26 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-08-31 11:07:35 +0000 |
commit | 7e82ad20fa110b6b121ab82367f2e7c8995231b7 (patch) | |
tree | c8580f1d32c3be5dc3f2e3f76f6ef7d0a4224745 /openbsc/src/osmo-nitb | |
parent | 4b95b5401c0fda6bc61bcdf6a5b2aafc50371e70 (diff) |
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
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r-- | openbsc/src/osmo-nitb/bsc_hack.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |