From 7cda3530b0d64128462118433a9f69645f49a39b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 13 Sep 2015 21:08:30 +0200 Subject: [PATCH] Fix possible deadlock in backtrace YAZ-856 --- src/backtrace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backtrace.c b/src/backtrace.c index 6bc22bf..0203310 100644 --- a/src/backtrace.c +++ b/src/backtrace.c @@ -164,6 +164,9 @@ void yaz_enable_panic_backtrace(const char *progname) strncpy(static_progname, progname, sizeof(static_progname) - 1); static_progname[sizeof(static_progname) - 1] = '\0'; #if HAVE_EXECINFO_H + void *bt[1]; + backtrace(bt, 1); + signal(SIGABRT, yaz_panic_sig_handler); signal(SIGSEGV, yaz_panic_sig_handler); signal(SIGFPE, yaz_panic_sig_handler); -- 1.7.10.4