[asterisk-bugs] [Asterisk 0018210]: Deadlock in chan_sip

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 25 16:47:42 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18210 
====================================================================== 
Reported By:                atis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18210
Category:                   Channels/chan_sip/General
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.14-rc1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-10-25 16:47 CDT
Last Modified:              2010-10-25 16:47 CDT
====================================================================== 
Summary:                    Deadlock in chan_sip
Description: 
Using Asterisk 1.6.2.14-rc1, suddenly SIP packets stopped (both inbound and
outbound).

I killed asterisk with -6 and examined coredump.

What looks suspicios is Thread 39 and Thread 35 both having pointer to the
same peer structure - 0x7f5bb01c8898 (peer 90877 in full log).

Thread 39
sip_send_mwi_to_peer (peer=0x7f5bb01c8898, ...) at chan_sip.c:22638
mwi_event_cb (..., userdata=0x7f5bb01c8898) at chan_sip.c:12988

Thread 35:
ao2_lock (user_data=0x7f5bb01c8898) at astobj2.c:164
update_call_counter(...) at chan_sip.c:5783

Apparently sip_send_mwi_to_peer held lock to the same peer already.

Attached "thread apply all bt full"


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-25 16:47 atis           New Issue                                    
2010-10-25 16:47 atis           Asterisk Version          => 1.6.2.14-rc1    
2010-10-25 16:47 atis           Regression                => No              
2010-10-25 16:47 atis           SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list