[asterisk-bugs] [Asterisk 0011818]: Deadlock in chan_zap between zt_request and do_monitor

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jan 24 13:49:41 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11818 
====================================================================== 
Reported By:                michael-fig
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11818
Category:                   Channels/chan_zap
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.16.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-22-2008 13:17 CST
Last Modified:              01-24-2008 13:49 CST
====================================================================== 
Summary:                    Deadlock in chan_zap between zt_request and
do_monitor
Description: 
We have Asterisk installed using SIP internally and a Sangoma T1 PRI card
(AFT101) to the outside world.  Every once in a while, Asterisk would hang,
and when I investigated further, the deadlock detection code found a
deadlock in chan_zap.

I've attached the complete log (from the first Deadlock message to the
point when the connection hung) for you to look at.  In brief, there were a
lot of messages of the form:

[Jan 21 14:36:10] ERROR[4211]:
/usr/src/asterisk-1.4.16.2/include/asterisk/lock.h:338
__ast_pthread_mutex_lock: chan_zap.c line 2722 (zt_hangup): Deadlock?
waited 10 sec for mutex '&iflock'?
[Jan 21 14:36:10] ERROR[4211]:
/usr/src/asterisk-1.4.16.2/include/asterisk/lock.h:342
__ast_pthread_mutex_lock: chan_zap.c line 6804 (do_monitor): '&iflock' was
locked here.

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

---------------------------------------------------------------------- 
 michael-fig - 01-24-08 13:49  
---------------------------------------------------------------------- 
Okay, I've uploaded the output of "core show locks".  I was also getting
many lines like:

XXX ERROR XXX A thread holds more locks than '32'.  Increase
AST_MAX_LOCKS!

Thanks,
Michael. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-24-08 13:49  michael-fig    Note Added: 0081151                          
======================================================================




More information about the asterisk-bugs mailing list