[asterisk-bugs] [Asterisk 0012076]: when calling chanspy(, q) deadlocks occurs

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Feb 26 15:02:01 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12076 
====================================================================== 
Reported By:                junky
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12076
Category:                   Applications/app_chanspy
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 104141 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-26-2008 14:46 CST
Last Modified:              02-26-2008 15:02 CST
====================================================================== 
Summary:                    when calling chanspy(,q) deadlocks occurs
Description: 
after ive an IAX2 channel calling a sip channel, the call goes well.


 if im calling chanspy, deadlocks occurs:

    -- Executing [601 at aheeva:1] ChanSpy("SIP/5556-097dfe78", "|q") in new
stack
localhost*CLI> core show locks
localhost*CLI>
=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 3086330784 (listener             started at [ 1063]
asterisk.c ast_makesocket())
=== -------------------------------------------------------------------
===
=== Thread ID: 3086072736 (do_devstate_changes  started at [  386]
devicestate.c ast_device_state_engine_init())
=== -------------------------------------------------------------------
===
=== Thread ID: 3085826976 (do_parking_thread    started at [ 2456]
res_features.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 3085581216 (ctiServerReceiver    started at [ 4161]
app_ahEventsProxy.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 2560842656 (do_monitor           started at [ 6988]
chan_zap.c restart_monitor())
=== -------------------------------------------------------------------
===
=== Thread ID: 2560596896 (scan_thread          started at [  499]
pbx_spool.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 2560351136 (sla_thread           started at [ 4844]
app_meetme.c sla_load_config())
=== -------------------------------------------------------------------
===
=== Thread ID: 2560105376 (do_monitor           started at [15701]
chan_sip.c restart_monitor())
=== -------------------------------------------------------------------
===
=== Thread ID: 2559859616 (wrapupchecker_thread started at [ 7439]
app_AheevaPhoneSimulator.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 2559613856 (recording_sender_thread started at [ 7441]
app_AheevaPhoneSimulator.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 2559368096 (communication_server_thread started at [ 7470]
app_AheevaPhoneSimulator.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 2559122336 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2558876576 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2558630816 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2558385056 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2558139296 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2557893536 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2557647776 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2557402016 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2557156256 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2556910496 (iax2_process_thread  started at [ 8883]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2556664736 (sched_thread         started at [ 8893]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2556418976 (network_thread       started at [ 8894]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 2556132256 (monitor_sig_flags    started at [ 3001]
asterisk.c main())
=== -------------------------------------------------------------------
===
=== Thread ID: 2555886496 (netconsole           started at [ 1005]
asterisk.c listener())
=== -------------------------------------------------------------------
===
=== Thread ID: 2555640736 (pbx_thread           started at [ 2647] pbx.c
ast_pbx_start())
=== ---> Lock http://bugs.digium.com/view.php?id=0 (chan_agent.c): MUTEX 2181
__login_exec &p->app_lock
0x979c060 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 2555390880 (pbx_thread           started at [ 2647] pbx.c
ast_pbx_start())
=== -------------------------------------------------------------------
===
=== Thread ID: 2555145120 (autoservice_run      started at [  194]
autoservice.c ast_autoservice_start())
=== -------------------------------------------------------------------
===
=== Thread ID: 2554895264 (pbx_thread           started at [ 2647] pbx.c
ast_pbx_start())
=== ---> Lock http://bugs.digium.com/view.php?id=0 (app_chanspy.c): MUTEX 401
chanspy_ds_free
&chanspy_ds->lock 0x98484854 (1)
=== ---> Waiting for Lock http://bugs.digium.com/view.php?id=1 (app_chanspy.c):
MUTEX 408 chanspy_ds_free
&chan->lock 0x97dd490 (1)
=== -------------------------------------------------------------------
===
=======================================================================


And when the chanspy and the call ends:
eb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:46] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] NOTICE[23437]: chan_iax2.c:6701 socket_read: Out of idle
IAX2 threads for I/O, pausing!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!
[Feb 26 15:43:47] ERROR[23473]:
/usr/src/asterisk-1.4/include/asterisk/lock.h:370 __ast_pthread_mutex_lock:
app_chanspy.c line 408 (chanspy_ds_free): '&chan->lock' really deep
reentrancy!


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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-26-08 15:02  file           Status                   new => assigned     
02-26-08 15:02  file           Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list