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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 12 12:01:38 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-12 12:01 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0134845) byronclark (reporter) - 2011-05-12 12:01
 https://issues.asterisk.org/view.php?id=19191#c134845 
---------------------------------------------------------------------- 
The original version of this patch exposed a deadlock in queue handling. 
handle_statechange_deadlock_fix_v2.patch adds the same locking semantics to
queues (take the contexts lock before locking the queues container) as is
used for hints.

Patch is against svn trunk but applies fairly cleanly to 1.8 (I'm testing
it against 1.8.4 and 1.6.2.17.3). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-12 12:01 byronclark     Note Added: 0134845                          
======================================================================




More information about the asterisk-bugs mailing list