A new feature thanks to the fine folks at Switchvox!
authorMark Michelson <mmichelson@digium.com>
Fri, 23 May 2008 22:35:50 +0000 (22:35 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 23 May 2008 22:35:50 +0000 (22:35 +0000)
commit975a848b6783091108c861ee1015cb89fc85f7fe
treec8d0825b33b156cc9ea02bc81363305f700e8393
parent1457c99ea87ab1a5162c7ca07f9fbd446858bd69
A new feature thanks to the fine folks at Switchvox!

If a deadlock is detected, then the typical lock information will be
printed along with a backtrace of the stack for the offending threads.
Use of this requires compiling with DETECT_DEADLOCKS and having glibc
installed.

Furthermore, issuing the "core show locks" CLI command will print the
normal lock information as well as a backtraces for each lock. This
requires that DEBUG_THREADS is enabled and that glibc is installed.

All the backtrace features may be disabled by running the configure
script with --without-execinfo as an argument

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
include/asterisk/lock.h
include/asterisk/logger.h
main/logger.c
main/utils.c
utils/ael_main.c
utils/check_expr.c
utils/conf2ael.c
utils/hashtest.c
utils/hashtest2.c
utils/refcounter.c