[asterisk-dev] Asterisk 1.4.12 __ast_pthread_mutex_lock Deadlock
Russell Bryant
russell at digium.com
Fri Oct 5 09:28:57 CDT 2007
Hendrik Visage wrote:
> Really destroying SIP dialog
> '0d2dcbe4190529cf4e811b5305facc6d at 172.16.0.1' Method: OPTIONS
> [Oct 5 08:50:26] ERROR[24396]:
> /home/hvisage/ast/asterisk-1.4.12/include/asterisk/lock.h:284
> __ast_pthread_mutex_lock: channel.c line 4923 (ast_channel_lock):
> Deadlock? waited 5 sec for mutex '&chan->lock'?
> Segmentation fault
First of all, do not compile with DO_CRASH defined. That is why it is crashing.
However, do compile with DEBUG_THREADS enabled. When the deadlock occurs, save
the output of the "core show locks" CLI command. That will show where the
deadlock has occurred.
$ sudo asterisk -rx "core show locks" > show_locks.txt
--
Russell Bryant
Software Engineer
Digium, Inc.
More information about the asterisk-dev
mailing list