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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 2 07:31:25 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
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:                     acknowledged
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-11-02 07:31 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"


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

---------------------------------------------------------------------- 
 (0128541) lmadsen (administrator) - 2010-11-02 07:31
 https://issues.asterisk.org/view.php?id=18210#c128541 
---------------------------------------------------------------------- 
Was there a previous version of Asterisk that didn't have this issue? (like
1.6.2.13 or something?) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-02 07:31 lmadsen        Note Added: 0128541                          
======================================================================




More information about the asterisk-bugs mailing list