19 Aug 18:42
Possible Deadlock?
From: Norman Franke <norman <at> myasd.com>
Subject: Possible Deadlock?
Newsgroups: gmane.comp.telephony.pbx.asterisk.devel
Date: 2008-08-19 16:46:10 GMT
Subject: Possible Deadlock?
Newsgroups: gmane.comp.telephony.pbx.asterisk.devel
Date: 2008-08-19 16:46:10 GMT
I had a deadlock today using 1.4.21.1. I had asterisk dump core to
explore in GDB. Thread 32 is waiting for the "channels" lock held by
21 while holding a channel lock. Thread 21 is then waiting for a lock
on a channel held by 32 while holding a lock on "channels".
However, I can't figure out how thread 32 got the lock in the first
place. Perhaps from this in the log?
[Aug 19 10:55:26] VERBOSE[25324] logger.c: -- Got SIP response 480
"Temporarily Unavailable" back from 172.16.22.30
And it never released the lock? I see in chan_sip.c:12936
/* XXX Locking issues?? XXX */
This has only happened once recently.
Thread 32 (process 25324):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7edd56e in __lll_mutex_lock_wait () from /lib/tls/i686/cmov/
libpthread.so.0
#2 0xb7eda179 in _L_mutex_lock_141 () from /lib/tls/i686/cmov/
libpthread.so.0
#3 0xb786a918 in ?? ()
#4 0x0807d514 in ast_cdr_start (cdr=0x815a148) at cdr.c:689
#5 0x0807fd3f in ast_mutex_lock (pmutex=0x815a148) at /usr/src/
asterisk-1.4.21.1/include/asterisk/lock.h:755
#6 0x08081795 in ast_channel_alloc (needqueue=0, state=0,
cid_num=0xb7358a4d "6106421787", cid_name=0x8150810 "",
acctcode=0x8150810 "", exten=0xb7358a05 "8827",
(Continue reading)
RSS Feed