diff options
author | Andrew Bartlett <abartlet@samba.org> | 2018-04-10 16:37:45 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-06-04 14:30:55 +0200 |
commit | 68999b8e6d1e887761e2ad3cf94ca3419719bac5 (patch) | |
tree | 2d7f1e152e0297819276e794493f51c2725b4725 /lib | |
parent | 5733e906fa3a55b7676d2229ed322777f94229d3 (diff) | |
download | samba-68999b8e6d1e887761e2ad3cf94ca3419719bac5.tar.gz |
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 <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13454
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr 11 04:03:07 CEST 2018 on sn-devel-144
(cherry picked from commit 462eb4a44cc51dc17aebbcd5c609c9ff7f088554)
Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Mon Jun 4 14:30:55 CEST 2018 on sn-devel-144
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/fault.c | 3 |
1 files changed, 1 insertions, 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 |