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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 8 17:08:06 CDT 2009


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:                     ready for testing
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:              
====================================================================== 
Date Submitted:             2009-07-16 00:30 CDT
Last Modified:              2009-10-08 17:08 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.


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

---------------------------------------------------------------------- 
 (0112086) svnbot (reporter) - 2009-10-08 17:08
 https://issues.asterisk.org/view.php?id=15512#c112086 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 222981

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r222981 | dvossel | 2009-10-08 17:08:05 -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=222981 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-08 17:08 svnbot         Checkin                                      
2009-10-08 17:08 svnbot         Note Added: 0112086                          
======================================================================




More information about the asterisk-bugs mailing list