[asterisk-dev] Lockups in Asterisk 11

Mark Murawski markm-lists at intellasoft.net
Tue Nov 17 15:18:14 CST 2015


On 11/17/15 15:39, Mark Murawski wrote:
> On 11/16/15 10:59, Matthew Jordan wrote:
>>
>SNIP
>> Either way, nothing above makes me think there is a bug in Asterisk.
>>


Here's a completely different box, different arch/hardware/kernel but 
compiled from the same exact asterisk source.

I hit this lockup when i did an attended transfer.  With two total 
channels active.  I'm going to work on reproducing this.


===   ():      (times locked)
===
=== Thread ID: 0x7f5a47dd2700 (do_monitor           started at [26934] 
chan_sip.c restart_monitor())
=== ---> Lock #0 (chan_sip.c): MUTEX 26387 handle_request_do &netlock 
0x7f5a4156c980 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         /usr/lib/asterisk/modules/chan_sip.so(+0x80618) [0x7f5a4131d618]
         /usr/lib/asterisk/modules/chan_sip.so(+0x8041f) [0x7f5a4131d41f]
         asterisk(ast_io_wait+0x193) [0x4e298a]
         /usr/lib/asterisk/modules/chan_sip.so(+0x82209) [0x7f5a4131f209]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== ---> Lock #1 (chan_sip.c): MUTEX 8356 sip_pvt_lock_full chan 
0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         /usr/lib/asterisk/modules/chan_sip.so(+0x2aa20) [0x7f5a412c7a20]
         /usr/lib/asterisk/modules/chan_sip.so(+0x806fe) [0x7f5a4131d6fe]
         /usr/lib/asterisk/modules/chan_sip.so(+0x8041f) [0x7f5a4131d41f]
         asterisk(ast_io_wait+0x193) [0x4e298a]
         /usr/lib/asterisk/modules/chan_sip.so(+0x82209) [0x7f5a4131f209]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== ---> Lock #2 (chan_sip.c): MUTEX 8357 sip_pvt_lock_full pvt 0xb9c6f0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         /usr/lib/asterisk/modules/chan_sip.so(+0x2aa46) [0x7f5a412c7a46]
         /usr/lib/asterisk/modules/chan_sip.so(+0x806fe) [0x7f5a4131d6fe]
         /usr/lib/asterisk/modules/chan_sip.so(+0x8041f) [0x7f5a4131d41f]
         asterisk(ast_io_wait+0x193) [0x4e298a]
         /usr/lib/asterisk/modules/chan_sip.so(+0x82209) [0x7f5a4131f209]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== ---> Waiting for Lock #3 (pbx.c): MUTEX 10576 
pbx_builtin_setvar_helper chan 0x7f5a20843590 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk(pbx_builtin_setvar_helper+0xfc) [0x525b49]
         /usr/lib/asterisk/modules/chan_sip.so(+0x6e725) [0x7f5a4130b725]
         /usr/lib/asterisk/modules/chan_sip.so(+0x7f1d2) [0x7f5a4131c1d2]
         /usr/lib/asterisk/modules/chan_sip.so(+0x807f8) [0x7f5a4131d7f8]
         /usr/lib/asterisk/modules/chan_sip.so(+0x8041f) [0x7f5a4131d41f]
         asterisk(ast_io_wait+0x193) [0x4e298a]
         /usr/lib/asterisk/modules/chan_sip.so(+0x82209) [0x7f5a4131f209]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: channel.c line 4598 (__ast_read)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1bf83700 (handle_tcptls_connection started at [ 
736] tcptls.c ast_tcptls_server_root())
=== ---> Waiting for Lock #0 (manager.c): MUTEX 4847 
action_coreshowchannels c 0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1bf07700 (handle_tcptls_connection started at [ 
736] tcptls.c ast_tcptls_server_root())
=== ---> Waiting for Lock #0 (manager.c): MUTEX 4847 
action_coreshowchannels c 0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1bb27700 (pbx_thread           started at [ 5868] 
pbx.c ast_pbx_start())
=== ---> Lock #0 (channel.c): MUTEX 4598 __ast_read chan 0x7f5a20843590 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x476c2e]
         asterisk(ast_read+0x1d) [0x478f04]
         /usr/lib/asterisk/modules/app_dial.so(+0x8846) [0x7f5a296f4846]
         /usr/lib/asterisk/modules/app_dial.so(+0xe658) [0x7f5a296fa658]
         /usr/lib/asterisk/modules/app_dial.so(+0x11126) [0x7f5a296fd126]
         asterisk(pbx_exec+0x1c8) [0x508b51]
         /usr/lib/asterisk/modules/res_agi.so(+0xb263) [0x7f5a46cfb263]
         /usr/lib/asterisk/modules/res_agi.so(+0xdb3d) [0x7f5a46cfdb3d]
         /usr/lib/asterisk/modules/res_agi.so(+0xe5c9) [0x7f5a46cfe5c9]
         /usr/lib/asterisk/modules/res_agi.so(+0xf7ae) [0x7f5a46cff7ae]
         /usr/lib/asterisk/modules/res_agi.so(+0xf8ec) [0x7f5a46cff8ec]
         asterisk(pbx_exec+0x1c8) [0x508b51]
         asterisk() [0x512e24]
         asterisk(ast_spawn_extension+0x64) [0x514a1b]
         asterisk() [0x5153b6]
         asterisk() [0x516e6e]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1bc9b700 (netconsole           started at [ 1437] 
asterisk.c listener())
=== ---> Waiting for Lock #0 (cli.c): MUTEX 904 handle_chanlist c 
0x7f5a20843590 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk(pbx_builtin_setvar_helper+0xfc) [0x525b49]
         /usr/lib/asterisk/modules/chan_sip.so(+0x6e725) [0x7f5a4130b725]
         /usr/lib/asterisk/modules/chan_sip.so(+0x7f1d2) [0x7f5a4131c1d2]
         /usr/lib/asterisk/modules/chan_sip.so(+0x807f8) [0x7f5a4131d7f8]
         /usr/lib/asterisk/modules/chan_sip.so(+0x8041f) [0x7f5a4131d41f]
         asterisk(ast_io_wait+0x193) [0x4e298a]
         /usr/lib/asterisk/modules/chan_sip.so(+0x82209) [0x7f5a4131f209]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: channel.c line 4598 (__ast_read)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1bd17700 (netconsole           started at [ 1437] 
asterisk.c listener())
=== ---> Waiting for Lock #0 (cli.c): MUTEX 904 handle_chanlist c 
0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1b9b3700 (handle_tcptls_connection started at [ 
736] tcptls.c ast_tcptls_server_root())
=== ---> Waiting for Lock #0 (manager.c): MUTEX 4847 
action_coreshowchannels c 0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1b937700 (handle_tcptls_connection started at [ 
736] tcptls.c ast_tcptls_server_root())
=== ---> Waiting for Lock #0 (manager.c): MUTEX 4847 
action_coreshowchannels c 0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1b8bb700 (handle_tcptls_connection started at [ 
736] tcptls.c ast_tcptls_server_root())
=== ---> Waiting for Lock #0 (manager.c): MUTEX 4847 
action_coreshowchannels c 0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f5a1b83f700 (handle_tcptls_connection started at [ 
736] tcptls.c ast_tcptls_server_root())
=== ---> Waiting for Lock #0 (manager.c): MUTEX 4847 
action_coreshowchannels c 0xba1db0 (1)
         asterisk(ast_bt_get_addresses+0x1d) [0x4efb00]
         asterisk(__ast_pthread_mutex_lock+0xc9) [0x4e8949]
         asterisk(__ao2_lock+0x57) [0x44838b]
         asterisk() [0x4fc47c]
         asterisk() [0x4fd1d9]
         asterisk() [0x4fdaeb]
         asterisk() [0x4fdfe6]
         asterisk() [0x55d7b3]
         asterisk() [0x56e7c8]
         /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50) [0x7f5a4e9d8b50]
         /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5a4f22d95d]
=== --- ---> Locked Here: chan_sip.c line 8356 (sip_pvt_lock_full)
=== -------------------------------------------------------------------
===
=======================================================================





More information about the asterisk-dev mailing list