[asterisk-bugs] [Asterisk 0019191]: [patch] deadlock in chan_sip

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 20 09:32:22 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19191 
====================================================================== 
Reported By:                byronclark
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19191
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.6.2.17.3 
JIRA:                       SWP-3393 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-27 11:16 CDT
Last Modified:              2011-05-20 09:32 CDT
====================================================================== 
Summary:                    [patch] deadlock in chan_sip
Description: 
I've only seen this happen twice, both instances separated by about a
month.  
The only symptom is that Asterisk stops responding to SIP packets.

This time I ran 'pkill -11 asterisk' when it happened so I could get a
core dump. So, when looking at the backtrace, the segfault isn't the
problem.
====================================================================== 

---------------------------------------------------------------------- 
 (0135186) byronclark (reporter) - 2011-05-20 09:32
 https://issues.asterisk.org/view.php?id=19191#c135186 
---------------------------------------------------------------------- 
issue_19191.patch (generated against trunk, but also needed for 1.8 and
1.6.2) is a far simpler patch that seems to be avoiding the deadlock on our
production systems.  The real issue is that
https://issues.asterisk.org/view.php?id=18310 changes the locking
order for hints and contexts.  This patch just makes sure that the hints
lock is taken before the contexts lock on the path where we were seeing the
deadlock. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-20 09:32 byronclark     Note Added: 0135186                          
======================================================================




More information about the asterisk-bugs mailing list