From da9372463775fa09d081307fb78b109b90e8175a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Jan 2004 02:28:17 +0000 Subject: - move the vars used by the backtrace stuff into the #ifdef - handle SIBABRT with a backtrace metze (This used to be commit e9f584143d5bbcbbdaaac2c231efd85c7bd5a922) --- source4/smbd/process_thread.c | 65 ++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/source4/smbd/process_thread.c b/source4/smbd/process_thread.c index 9acd49916b..d83f48de9f 100644 --- a/source4/smbd/process_thread.c +++ b/source4/smbd/process_thread.c @@ -312,18 +312,21 @@ static int thread_rwlock_unlock(smb_rwlock_t *rwlock, const char *name) *****************************************************************/ static void thread_log_suspicious_usage(const char* from, const char* info) { - void *addresses[10]; - int num_addresses, i; - char **bt_symbols; - DEBUG(1,("log_suspicious_usage: from %s info='%s'\n", from, info)); #ifdef HAVE_BACKTRACE - num_addresses = backtrace(addresses, 8); - bt_symbols = backtrace_symbols(addresses, num_addresses); - for (i=0; i