[root@sip ~]# asterisk -rx "core show locks" ======================================================================= === Currently Held Locks ============================================== ======================================================================= === === (times locked) === === Thread ID: 15584144 (do_monitor started at [20252] chan_sip.c restart_monitor()) === ---> Tried and failed to get Lock #0 (chan_sip.c): MUTEX 20192 do_monitor dialog 0xa293f290 (0) === ------------------------------------------------------------------- === === Thread ID: 27806608 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Lock #0 (channel.c): MUTEX 2580 __ast_read (channel lock) 0xa54c253c (1) === ---> Lock #1 (chan_sip.c): MUTEX 6141 sip_read p 0xa293f290 (1) === ------------------------------------------------------------------- === === Thread ID: 112065424 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 80923536 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 24746896 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 106797968 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 97762192 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 91683728 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 99089296 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 27315088 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 87333776 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 25484176 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 74935184 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 137776016 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 123505552 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 30063504 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 143092624 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 71080848 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 23522192 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 59530128 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 76295056 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 61328272 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 65309584 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 30419856 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 25729936 (pbx_thread started at [ 4027] pbx.c ast_pbx_start()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 89521040 (netconsole started at [ 1087] asterisk.c listener()) === ---> Lock #0 (channel.c): RDLOCK 491 ast_begin_shutdown &(&channels)->lock 0x81dd968 (1) === ---> Waiting for Lock #1 (channel.c): MUTEX 1632 ast_softhangup (channel lock) 0xa54c253c (1) === --- ---> Locked Here: channel.c line 2580 (__ast_read) === ------------------------------------------------------------------- === === Thread ID: 26823568 (attempt_thread started at [ 370] pbx_spool.c launch_service()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 107625360 (attempt_thread started at [ 370] pbx_spool.c launch_service()) === ---> Waiting for Lock #0 (channel.c): WRLOCK 1685 ast_hangup &(&channels)->lock 0x81dd968 (1) === ------------------------------------------------------------------- === === Thread ID: 22748048 (netconsole started at [ 1087] asterisk.c listener()) === ---> Tried and failed to get Lock #0 (channel.c): MUTEX 1215 channel_find_locked (channel lock) 0xa54c253c (0) === ------------------------------------------------------------------- === === Thread ID: 100539280 (netconsole started at [ 1087] asterisk.c listener()) === ---> Lock #0 (channel.c): RDLOCK 491 ast_begin_shutdown &(&channels)->lock 0x81dd968 (1) === ---> Waiting for Lock #1 (channel.c): MUTEX 1632 ast_softhangup (channel lock) 0xa54c253c (1) === --- ---> Locked Here: channel.c line 2580 (__ast_read) === ------------------------------------------------------------------- === =======================================================================