From 462eb4a44cc51dc17aebbcd5c609c9ff7f088554 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 10 Apr 2018 16:37:45 +1200 Subject: [PATCH] lib/util: Call log_stack_trace() in smb_panic_default() This matches the AD DC with the behaviour in smbd. Signed-off-by: Andrew Bartlett Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Apr 11 04:03:07 CEST 2018 on sn-devel-144 --- lib/util/fault.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/util/fault.c b/lib/util/fault.c index e539aff9e7b..1b56361aa62 100644 --- a/lib/util/fault.c +++ b/lib/util/fault.c @@ -126,6 +126,7 @@ static void smb_panic_default(const char *why) { DBG_ERR("PANIC (pid %llu): %s\n", (unsigned long long)getpid(), why); + log_stack_trace(); #if defined(HAVE_PRCTL) && defined(PR_SET_PTRACER) /* @@ -172,8 +173,6 @@ _PUBLIC_ void smb_panic(const char *why) smb_panic_default(why); } - - /******************************************************************* Print a backtrace of the stack to the debug log. This function DELIBERATELY LEAKS MEMORY. The expectation is that you should -- 2.11.4.GIT