From: Adam Dickmeiss Date: Sun, 13 Sep 2015 19:08:30 +0000 (+0200) Subject: Fix possible deadlock in backtrace YAZ-856 X-Git-Tag: v5.14.7~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=7cda3530b0d64128462118433a9f69645f49a39b;p=yaz-moved-to-github.git Fix possible deadlock in backtrace YAZ-856 --- 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);