[asterisk-bugs] [JIRA] (ASTERISK-21129) Lock on do_monitor

c0rnoTa (JIRA) noreply at issues.asterisk.org
Mon Feb 18 03:09:58 CST 2013


c0rnoTa created ASTERISK-21129:
----------------------------------

             Summary: Lock on do_monitor
                 Key: ASTERISK-21129
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21129
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/General
    Affects Versions: 1.8.20.1
         Environment: Gentoo Linux 3.2.12-gentoo #2 SMP Mon Jun 4 14:49:23 MSK 2012 x86_64 Intel(R) Xeon(R) CPU X5660 @ 2.80GHz GenuineIntel GNU/Linux, based on VMWare virtual system, Phones: Cisco SPA502, Cisco SPA525 with SPA 500S panels. Using SIP realtime. 
            Reporter: c0rnoTa


After a while of working, system stop to process calls from sip subscribers. If I call to someone from console, I didn't set that system is 'Calling SIP/...' and INVITE pockets are not sent.
Asterisk was compiled without optimization.

But here is only 'show locks' output:

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0x7f2d5495e700 (do_monitor           started at [26511] chan_sip.c restart_monitor())
=== ---> Lock #0 (chan_sip.c): MUTEX 26481 do_monitor &monlock 0x7f2d40ac2020 (1)
	asterisk(ast_bt_get_addresses+0x1d) [0x4ee0c0]
	asterisk(__ast_pthread_mutex_lock+0xd9) [0x4e6f16]
	/usr/lib/asterisk/modules/chan_sip.so(+0x83312) [0x7f2d40875312]
	asterisk() [0x56ca8c]
	/lib64/libpthread.so.0(+0x7aea) [0x7f2d57de5aea]
	/lib64/libc.so.6(clone+0x6d) [0x7f2d574481bd]
=== ---> Waiting for Lock #1 (chan_sip.c): MUTEX 8425 sip_pvt_lock_full pvt 0x1b47c70 (1)
	asterisk(ast_bt_get_addresses+0x1d) [0x4ee0c0]
	asterisk(__ast_pthread_mutex_lock+0xd9) [0x4e6f16]
	asterisk(__ao2_lock+0x5a) [0x447ff1]
	/usr/lib/asterisk/modules/chan_sip.so(+0x2b09d) [0x7f2d4081d09d]
	/usr/lib/asterisk/modules/chan_sip.so(+0x183b9) [0x7f2d4080a3b9]
	/usr/lib/asterisk/modules/chan_sip.so(+0x1859b) [0x7f2d4080a59b]
	asterisk(ast_sched_runq+0x18e) [0x54fe18]
	/usr/lib/asterisk/modules/chan_sip.so(+0x83324) [0x7f2d40875324]
	asterisk() [0x56ca8c]
	/lib64/libpthread.so.0(+0x7aea) [0x7f2d57de5aea]
	/lib64/libc.so.6(clone+0x6d) [0x7f2d574481bd]
=== -------------------------------------------------------------------
===
=== Thread ID: 0x7f2d38808700 (pbx_thread           started at [ 5597] pbx.c ast_pbx_start())
=== ---> Waiting for Lock #0 (chan_sip.c): MUTEX 26500 restart_monitor &monlock 0x7f2d40ac2020 (1)
	asterisk(ast_bt_get_addresses+0x1d) [0x4ee0c0]
	asterisk(__ast_pthread_mutex_lock+0xd9) [0x4e6f16]
	/usr/lib/asterisk/modules/chan_sip.so(+0x8344e) [0x7f2d4087544e]
	/usr/lib/asterisk/modules/chan_sip.so(+0x875de) [0x7f2d408795de]
	asterisk(ast_request+0x27e) [0x47b7b6]
	/usr/lib/asterisk/modules/app_dial.so(+0xc7f7) [0x7f2d447d97f7]
	/usr/lib/asterisk/modules/app_dial.so(+0x1107b) [0x7f2d447de07b]
	asterisk(pbx_exec+0x1fb) [0x507b47]
	asterisk() [0x511ae5]
	asterisk(ast_spawn_extension+0x65) [0x513723]
	asterisk() [0x51417a]
	asterisk() [0x515e8d]
	asterisk() [0x56ca8c]
	/lib64/libpthread.so.0(+0x7aea) [0x7f2d57de5aea]
	/lib64/libc.so.6(clone+0x6d) [0x7f2d574481bd]
=== --- ---> Locked Here: chan_sip.c line 26481 (do_monitor)
=== -------------------------------------------------------------------
===
=======================================================================


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list