[asterisk-bugs] [Asterisk 0018441]: [patch] Deadlock in chan_sip

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 5 14:33:16 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18441 
====================================================================== 
Reported By:                Alric
Assigned To:                jrose
====================================================================== 
Project:                    Asterisk
Issue ID:                   18441
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-12-08 17:10 CST
Last Modified:              2011-05-05 14:33 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 ...
====================================================================== 

---------------------------------------------------------------------- 
 (0134529) svnbot (reporter) - 2011-05-05 14:33
 https://issues.asterisk.org/view.php?id=18441#c134529 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 317334

_U  trunk/
U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r317334 | jrose | 2011-05-05 14:33:12 -0500 (Thu, 05 May 2011) | 16 lines

Merged revisions 317283 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r317283 | jrose | 2011-05-05 14:09:13 -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=317334 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-05 14:33 svnbot         Checkin                                      
2011-05-05 14:33 svnbot         Note Added: 0134529                          
======================================================================




More information about the asterisk-bugs mailing list