[asterisk-bugs] [Asterisk 0011582]: Deadlock? when briging calls on PRI device after sometime

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Dec 17 14:45:29 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11582 
====================================================================== 
Reported By:                bugi
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11582
Category:                   Channels/chan_zap
Reproducibility:            random
Severity:                   block
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-17-2007 12:04 CST
Last Modified:              12-17-2007 14:45 CST
====================================================================== 
Summary:                    Deadlock? when briging calls on PRI device after
sometime
Description: 
Hi, i tried to bridge calls on asterisk on Sangoma PRI 104 (wanpipe 3.2.1).
After sometime (1,2 or 6 hours) asterisk blocks with message: 
[Dec 17 18:34:15] ERROR[20837]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:338
__ast_pthread_mutex_lock: pbx.c line 5862 (pbx_builtin_setvar_helper):
Deadlock? waited 5 sec for mutex '&chan->lock'?
[Dec 17 18:34:15] ERROR[20837]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:342
__ast_pthread_mutex_lock: channel.c line 2194 (__ast_read): '&chan->lock'
was locked here.
[Dec 17 18:34:15] ERROR[20846]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:338
__ast_pthread_mutex_lock: chan_zap.c line 4628 (zt_read): Deadlock? waited
5 sec for mutex '&p->lock'?
[Dec 17 18:34:15] ERROR[20846]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:342
__ast_pthread_mutex_lock: chan_zap.c line 8683 (pri_dchannel): '&p->lock'
was locked here.
[Dec 17 18:34:15] ERROR[21637]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:338
__ast_pthread_mutex_lock: pbx.c line 1138 (pbx_retrieve_variable):
Deadlock? waited 5 sec for mutex '&c->lock'?
[Dec 17 18:34:15] ERROR[21637]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:342
__ast_pthread_mutex_lock: channel.c line 2194 (__ast_read): '&c->lock' was
locked here.
[Dec 17 18:34:15] ERROR[20837]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:338
__ast_pthread_mutex_lock: pbx.c line 5862 (pbx_builtin_setvar_helper):
Deadlock? waited 5 sec for mutex '&chan->lock'?
[Dec 17 18:34:15] ERROR[20837]:
/usr/src/asterisk-1.4.15/include/asterisk/lock.h:342
__ast_pthread_mutex_lock: channel.c line 2194 (__ast_read): '&chan->lock'
was locked here.

I tried to compile asterisk on different distros and machines and this
problem still occur. 

My extensions.conf: 
[from-pstn]
exten => _X.,1,Dial(Zap/g1/${EXTEN})
exten => _X.,n,Hangup

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

---------------------------------------------------------------------- 
 russell - 12-17-07 14:45  
---------------------------------------------------------------------- 
please compile with DEBUG_THREADS enabled.  Then, when this occurs, grab
the output of "core show locks".  Post it here.

$ sudo asterisk -rx "core show locks" > show_locks.txt 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-17-07 14:45  russell        Note Added: 0075599                          
======================================================================




More information about the asterisk-bugs mailing list