[asterisk-bugs] [Asterisk 0019266]: [regression] Deadlock in chan_sip

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jun 4 10:08:43 CDT 2011


The following issue has been set as RELATED TO issue 0018028. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19266 
====================================================================== 
Reported By:                junky
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19266
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.4 
JIRA:                       SWP-3452 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-05-10 15:39 CDT
Last Modified:              2011-06-04 10:08 CDT
====================================================================== 
Summary:                    [regression] Deadlock in chan_sip
Description: 
Hi,
by testing 1.8.4 this morning, i've got a deadlock after 48 minutes.
That machine just getting SIP calls, launching MeetMe() and nothing else.



yankee*CLI> core show locks 

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock
name> <lock addr> (times locked)
===
=== Thread ID: 140112174364944 (do_monitor           started at [24712]
chan_sip.c restart_monitor())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_sip.c): MUTEX
24684 do_monitor &monlock
0x7f6e6e8c9fe0 (1)
	/usr/sbin/asterisk(ast_bt_get_addresses+0x1d) [0x4ef2a4]
	/usr/sbin/asterisk(__ast_pthread_mutex_lock+0xd9) [0x4e7df8]
	/usr/lib/asterisk/modules/chan_sip.so [0x7f6e6e67dda9]
	/usr/sbin/asterisk [0x570f25]
	/lib/libpthread.so.0 [0x7f6e76e25a04]
	/lib/libc.so.6(clone+0x6d) [0x7f6e7766ed4d]
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=1
(chan_sip.c): MUTEX 3756
__sip_autodestruct p->owner 0x24195f8 (0)
	/usr/sbin/asterisk(ast_bt_get_addresses+0x1d) [0x4ef2a4]
	/usr/sbin/asterisk(__ast_pthread_mutex_trylock+0xd9) [0x4e81b6]
	/usr/sbin/asterisk(__ao2_trylock+0x5a) [0x44884e]
	/usr/lib/asterisk/modules/chan_sip.so [0x7f6e6e610c49]
	/usr/sbin/asterisk(ast_sched_runq+0x18e) [0x5540fc]
	/usr/lib/asterisk/modules/chan_sip.so [0x7f6e6e67ddbb]
	/usr/sbin/asterisk [0x570f25]
	/lib/libpthread.so.0 [0x7f6e76e25a04]
	/lib/libc.so.6(clone+0x6d) [0x7f6e7766ed4d]
=== -------------------------------------------------------------------
===
=== Thread ID: 140111955966224 (pbx_thread           started at [ 5038]
pbx.c ast_pbx_start())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (channel.c): MUTEX 3661
__ast_read chan 0x24195f8 (1)
	/usr/sbin/asterisk(ast_bt_get_addresses+0x1d) [0x4ef2a4]
	/usr/sbin/asterisk(__ast_pthread_mutex_lock+0xd9) [0x4e7df8]
	/usr/sbin/asterisk(__ao2_lock+0x5a) [0x44878c]
	/usr/sbin/asterisk [0x47681a]
	/usr/sbin/asterisk(ast_read+0x1d) [0x478d77]
	/usr/lib/asterisk/modules/app_meetme.so [0x7f6e6b560e25]
	/usr/lib/asterisk/modules/app_meetme.so [0x7f6e6b56753a]
	/usr/sbin/asterisk(pbx_exec+0x1fb) [0x508b59]
	/usr/sbin/asterisk [0x512cc2]
	/usr/sbin/asterisk(ast_spawn_extension+0x65) [0x51479c]
	/usr/sbin/asterisk [0x51520b]
	/usr/sbin/asterisk [0x516e2b]
	/usr/sbin/asterisk [0x570f25]
	/lib/libpthread.so.0 [0x7f6e76e25a04]
	/lib/libc.so.6(clone+0x6d) [0x7f6e7766ed4d]
=== -------------------------------------------------------------------
===
=== Thread ID: 140111957489936 (netconsole           started at [ 1344]
asterisk.c listener())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (cli.c):
MUTEX 900 handle_chanlist c
0x24195f8 (1)
	/usr/sbin/asterisk(ast_bt_get_addresses+0x1d) [0x4ef2a4]
	/usr/sbin/asterisk(__ast_pthread_mutex_trylock+0xd9) [0x4e81b6]
	/usr/sbin/asterisk(__ao2_trylock+0x5a) [0x44884e]
	/usr/lib/asterisk/modules/chan_sip.so [0x7f6e6e610c49]
	/usr/sbin/asterisk(ast_sched_runq+0x18e) [0x5540fc]
	/usr/lib/asterisk/modules/chan_sip.so [0x7f6e6e67ddbb]
	/usr/sbin/asterisk [0x570f25]
	/lib/libpthread.so.0 [0x7f6e76e25a04]
	/lib/libc.so.6(clone+0x6d) [0x7f6e7766ed4d]
=== --- ---> Locked Here: channel.c line 3661 (__ast_read)
=== -------------------------------------------------------------------
===
=======================================================================

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0018028 [patch] Exceptionally long queue length...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-06-04 10:08 lmadsen        Relationship added       related to 0018028  
======================================================================




More information about the asterisk-bugs mailing list