[asterisk-bugs] [Asterisk 0015512]: [patch] Deadlock between ast_cel_report_event and ast_do_masquerade

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 12 16:04:32 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15512 
====================================================================== 
Reported By:                lmsteffan
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   15512
Category:                   Core/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 206768 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-07-16 00:30 CDT
Last Modified:              2011-05-12 16:04 CDT
====================================================================== 
Summary:                    [patch] Deadlock between ast_cel_report_event and
ast_do_masquerade
Description: 
The symptoms are in particular the impossibility to actually perform the
masquerade during a directed pickup (this was previously possible).

The included file, obtained through a "core show locks" command in the
CLI, shows the abovementioned deadlock.


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

---------------------------------------------------------------------- 
 (0134851) svnbot (reporter) - 2011-05-12 16:04
 https://issues.asterisk.org/view.php?id=15512#c134851 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 318636

U   branches/1.6.2/channels/chan_sip.c

------------------------------------------------------------------------
r318636 | rmudgett | 2011-05-12 16:04:31 -0500 (Thu, 12 May 2011) | 20
lines

Merged revision 222981 from
https://origsvn.digium.com/svn/asterisk/branches/1.8

Similar deadlock possible when running the Pickup application internally.

------------------------------------------------------------------------
r222981 | dvossel | 2009-10-08 17:04:41 -0500 (Thu, 08 Oct 2009) | 13
lines

Deadlock between ast_cel_report_event and ast_do_masquerade

chan_sip calls pbx_exec on a pvt's owner channel while only the
pvt lock is held.  Since pbx_exec calls ast_cel_report_event which
attempts to lock the channel, invalid locking order occurs.  Channels
should be locked before pvt's.

(closes issue https://issues.asterisk.org/view.php?id=15512)
Reported by: lmsteffan
Patches:
      ast_cel_deadlock_15512.diff uploaded by dvossel (license 671)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-12 16:04 svnbot         Note Added: 0134851                          
======================================================================




More information about the asterisk-bugs mailing list