[asterisk-bugs] [Asterisk 0015340]: [patch] Deadlock when performing directed pickup

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Sep 17 17:40:35 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15340 
====================================================================== 
Reported By:                lmsteffan
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   15340
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     closed
Target Version:             1.4.27
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 200477 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-06-16 22:46 CDT
Last Modified:              2009-09-17 17:40 CDT
====================================================================== 
Summary:                    [patch] Deadlock when performing directed pickup
Description: 
When a phone tries to pickup a ringing extension (through SIP INVITE with
Replace) there sometimes occurs a deadlock. The attached file contains a
snapshot of such a deadlock. Two threads have interlocked, each one waiting
on a lock already owned by the other (the first lock protects the channel
clonechan/chan, the other protects its sip_pvt part p/i)

The included patch assumes that it is necessary to unlock the sip_pvt
pointer before hanging up the channel to which it belongs. Can someone
confirm that ?
====================================================================== 

---------------------------------------------------------------------- 
 (0110911) svnbot (reporter) - 2009-09-17 17:40
 https://issues.asterisk.org/view.php?id=15340#c110911 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 219376

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_sip.c

------------------------------------------------------------------------
r219376 | dvossel | 2009-09-17 17:40:34 -0500 (Thu, 17 Sep 2009) | 15
lines

Merged revisions 219371 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r219371 | dvossel | 2009-09-17 17:37:28 -0500 (Thu, 17 Sep 2009) | 9
lines
  
  fixes deadlock when performing directed pickup w Invite/replaces
  
  (closes issue https://issues.asterisk.org/view.php?id=15340)
  Reported by: lmsteffan
  Patches:
        deadlock.patch uploaded by lmsteffan (license 779)
  Tested by: lmsteffan
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=219376 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-17 17:40 svnbot         Checkin                                      
2009-09-17 17:40 svnbot         Note Added: 0110911                          
======================================================================




More information about the asterisk-bugs mailing list