[asterisk-bugs] [Asterisk 0018441]: [patch] Deadlock in chan_sip
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu May 5 14:09:16 CDT 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18441
======================================================================
Reported By: Alric
Assigned To: jpeeler
======================================================================
Project: Asterisk
Issue ID: 18441
Category: Core/General
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
Asterisk Version: SVN
JIRA: SWP-2737
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.8
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-12-08 17:10 CST
Last Modified: 2011-05-05 14:09 CDT
======================================================================
Summary: [patch] Deadlock in chan_sip
Description:
I've been testing T.38 with my SIP provider using a Linksys ATA and a fax
machine behind it.
I initiate the fax with my fax machine and it connects with the other end.
Shortly after the fax machine thinks the call disconnects. If I type a
'core show channels' at this point, I don't see any active channels. At
this point the PBX does not accept any more calls. Commands also seem to
not go through on the CLI until I 'exit' and 'asterisk -vvvvvr' again.
Asterisk is compiled with DONT_OPTIMIZE and DEBUG_THREADS. I have run
this scenario 3 to 5 times now with the same result so I am faithful I can
reproduce it as needed.
Attached is the output from 'core show locks' after the presumed deadlock.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0018403 [patch] Deadlock on SIP blind transfer ...
======================================================================
----------------------------------------------------------------------
(0134528) svnbot (reporter) - 2011-05-05 14:09
https://issues.asterisk.org/view.php?id=18441#c134528
----------------------------------------------------------------------
Repository: asterisk
Revision: 317283
U branches/1.8/channels/chan_sip.c
------------------------------------------------------------------------
r317283 | jrose | 2011-05-05 14:09:14 -0500 (Thu, 05 May 2011) | 10 lines
Resolves a deadlock that occurs during sip_new
This is based on an uncommitted patch by jpeeler for the issue. Instead
of
relocking and then unlocking the channel though, we keep the lock on the
channel
until we are finished doing what we need to the channel.
(closes issue https://issues.asterisk.org/view.php?id=18441)
Reported by: Alric
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=317283
Issue History
Date Modified Username Field Change
======================================================================
2011-05-05 14:09 svnbot Checkin
2011-05-05 14:09 svnbot Note Added: 0134528
======================================================================
More information about the asterisk-bugs
mailing list