[asterisk-bugs] [Asterisk 0011165]: Deadlock in channel.c
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Nov 8 23:13:31 CST 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11165
======================================================================
Reported By: callguy
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 11165
Category: Channels/General
Reproducibility: random
Severity: block
Priority: normal
Status: feedback
Asterisk Version: 1.4.13
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 11-05-2007 14:18 CST
Last Modified: 11-08-2007 23:13 CST
======================================================================
Summary: Deadlock in channel.c
Description:
We had what appears to be a new deadlock in channel.c today. output of core
show locks attached.
======================================================================
----------------------------------------------------------------------
enst - 11-08-07 23:13
----------------------------------------------------------------------
I met a dead lock much like this.
chan_sip.c
sipsock_read{
...
p = find_call(&req, &sin, req.method); /* returns p locked */
...
handle_request
|----__sip_ack(p, seqno, FLAG_RESPONSE, 0);
}
same p, same p->lock
http://bugs.digium.com/view.php?id=0 0x00002afa4c968bd8 in
__lll_mutex_lock_wait () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=1 0x00002afa4c964ac8 in _L_mutex_lock_106 ()
from /lib/libpthread.so.0
http://bugs.digium.com/view.php?id=2 0x00002afa4c964423 in pthread_mutex_lock
() from /lib/libpthread.so.0
http://bugs.digium.com/view.php?id=3 0x00002aaabc7c1f22 in
__ast_pthread_mutex_lock
(filename=0x2aaabc815c13 "chan_sip.c", lineno=2133, func=0x2aaabc816a0f
"__sip_ack",
mutex_name=0x2aaabc816a19 "&p->lock", t=0x2aaad804bc60) at
/usr/src/asterisk/include/asterisk/lock.h:308
http://bugs.digium.com/view.php?id=4 0x00002aaabc7c3139 in __sip_ack
(p=0x2aaad804bc60, seqno=102, resp=1,
sipmethod=0) at chan_sip.c:2133
http://bugs.digium.com/view.php?id=5 0x00002aaabc807af1 in handle_request
(p=0x2aaad804bc60,
req=0x40255b10, sin=0x40256f40, recount=0x40255afc, nounlock=0x40255b00)
at chan_sip.c:15069
http://bugs.digium.com/view.php?id=6 0x00002aaabc8083ac in sipsock_read
(id=0x81aef0, fd=12, events=1,
ignore=0x0) at chan_sip.c:15181
http://bugs.digium.com/view.php?id=7 0x000000000047ae2a in ast_io_wait
(ioc=0x818ab0, howlong=1) at
io.c:279
http://bugs.digium.com/view.php?id=8 0x00002aaabc808e13 in do_monitor
(data=0x0) at chan_sip.c:15384
http://bugs.digium.com/view.php?id=9 0x00000000004deaae in dummy_start
(data=0x822bb0) at utils.c:806
http://bugs.digium.com/view.php?id=10 0x00002afa4c9622a5 in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=11 0x00002afa4d33a61d in clone () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=12 0x0000000000000000 in ?? ()
Issue History
Date Modified Username Field Change
======================================================================
11-08-07 23:13 enst Note Added: 0073426
======================================================================
More information about the asterisk-bugs
mailing list