[asterisk-bugs] [Asterisk 0017216]: Deadlock between ast_hangup and pri_dchannel

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 20 19:49:23 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17216 
====================================================================== 
Reported By:                lmsteffan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17216
Category:                   Channels/chan_dahdi
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 236802 
Request Review:              
====================================================================== 
Date Submitted:             2010-04-20 19:49 CDT
Last Modified:              2010-04-20 19:49 CDT
====================================================================== 
Summary:                    Deadlock between ast_hangup and pri_dchannel
Description: 
I think what causes the deadlock is the following :

Ast_hangup performs a lock of the channel then, through dahdi_hangup,
tries to lock the private (Dahdi) part of the channel.

Meanwhile, pri_dchannel first seizes the private part of the channel,
then, in ast_softhangup_nolock, tries to lock the channel that owns this
private part.

A deadlock occurs as both threads attempt to seize both deadlocks in
reverse order.

I include a full trace and a snapshot of the locks.


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-20 19:49 lmsteffan      New Issue                                    
2010-04-20 19:49 lmsteffan      Asterisk Version          => SVN             
2010-04-20 19:49 lmsteffan      Regression                => No              
2010-04-20 19:49 lmsteffan      SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
2010-04-20 19:49 lmsteffan      SVN Revision (number only!) => 236802          
======================================================================




More information about the asterisk-bugs mailing list