[asterisk-bugs] [JIRA] (ASTERISK-22857) Deadlock: Locked Here: chan_iax2.c line 9756 (socket_read)

David Brillert (JIRA) noreply at issues.asterisk.org
Mon Nov 18 09:44:03 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Brillert updated ASTERISK-22857:
--------------------------------------

    Status: Waiting for Feedback  (was: Waiting for Feedback)

No custom patches to chan_iax2.
Using iaxmodem and hylafax and faxopts...

Just ran into another lock but not a full deadlock.  Asterisk is able to process calls.


=== Currently Held Locks
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0xb755bb90 (tps_processing_function started at [  471] taskprocessor.c ast_taskprocessor_get())
=== ---> Lock #0 (chan_iax2.c): MUTEX 4316 transmit_frame &iaxsl[fr->callno] 0x13689e0 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x812830a]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x96) [0x8123d06]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12a4c1d]
        /usr/sbin/asterisk [0x8199483]
        /usr/sbin/asterisk [0x81a9d71]
        /lib/libpthread.so.0 [0x2ef912]
        /lib/libc.so.6(clone+0x5e) [0x2197ce]
=== -------------------------------------------------------------------
===
=== Thread ID: 0xb73c3b90 (iax2_process_thread  started at [12469] chan_iax2.c start_network_thread())
=== ---> Waiting for Lock #0 (chan_iax2.c): MUTEX 12224 __iax2_poke_noanswer &iaxsl[callno] 0x13689e0 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x812830a]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x96) [0x8123d06]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12b94e3]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12c9b19]
        /usr/sbin/asterisk(ast_module_reload+0x36a) [0x812155a]
        /usr/sbin/asterisk [0x80c824e]
        /usr/sbin/asterisk(ast_cli_command_full+0x159) [0x80c9a69]
        /usr/sbin/asterisk [0x8137fe8]
        /usr/sbin/asterisk [0x8134c42]
        /usr/sbin/asterisk [0x814272a]
        /usr/sbin/asterisk [0x819a6b9]
        /usr/sbin/asterisk [0x81a9d71]
        /lib/libpthread.so.0 [0x2ef912]
        /lib/libc.so.6(clone+0x5e) [0x2197ce]
=== --- ---> Locked Here: chan_iax2.c line 4316 (transmit_frame)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xb71e3b90 (iax2_process_thread  started at [12469] chan_iax2.c start_network_thread())
=== ---> Waiting for Lock #0 (chan_iax2.c): MUTEX 2911 __find_callno &iaxsl[dcallno] 0x13689e0 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x812830a]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x96) [0x8123d06]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12b94e3]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12c9b19]
        /usr/sbin/asterisk(ast_module_reload+0x36a) [0x812155a]
        /usr/sbin/asterisk [0x80c824e]
        /usr/sbin/asterisk(ast_cli_command_full+0x159) [0x80c9a69]
        /usr/sbin/asterisk [0x8137fe8]
        /usr/sbin/asterisk [0x8134c42]
        /usr/sbin/asterisk [0x814272a]
        /usr/sbin/asterisk [0x819a6b9]
        /usr/sbin/asterisk [0x81a9d71]
        /lib/libpthread.so.0 [0x2ef912]
        /lib/libc.so.6(clone+0x5e) [0x2197ce]
=== --- ---> Locked Here: chan_iax2.c line 4316 (transmit_frame)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xb693fb90 (handle_tcptls_connection started at [  322] tcptls.c ast_tcptls_server_root())
=== ---> Lock #0 (loader.c): MUTEX 739 ast_module_reload &reloadlock 0x821b420 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x812830a]
        /usr/sbin/asterisk(__ast_pthread_mutex_trylock+0x97) [0x8125b87]
        /usr/sbin/asterisk(ast_module_reload+0xfc) [0x81212ec]
        /usr/sbin/asterisk [0x80c824e]
        /usr/sbin/asterisk(ast_cli_command_full+0x159) [0x80c9a69]
        /usr/sbin/asterisk [0x8137fe8]
        /usr/sbin/asterisk [0x8134c42]
        /usr/sbin/asterisk [0x814272a]
        /usr/sbin/asterisk [0x819a6b9]
        /usr/sbin/asterisk [0x81a9d71]
        /lib/libpthread.so.0 [0x2ef912]
        /lib/libc.so.6(clone+0x5e) [0x2197ce]
=== ---> Lock #1 (loader.c): MUTEX 779 ast_module_reload &(&module_list)->lock 0x821b3a8 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x812830a]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x96) [0x8123d06]
        /usr/sbin/asterisk(ast_module_reload+0x1eb) [0x81213db]
        /usr/sbin/asterisk [0x80c824e]
        /usr/sbin/asterisk(ast_cli_command_full+0x159) [0x80c9a69]
        /usr/sbin/asterisk [0x8137fe8]
        /usr/sbin/asterisk [0x8134c42]
        /usr/sbin/asterisk [0x814272a]
        /usr/sbin/asterisk [0x819a6b9]
        /usr/sbin/asterisk [0x81a9d71]
        /lib/libpthread.so.0 [0x2ef912]
        /lib/libc.so.6(clone+0x5e) [0x2197ce]
=== ---> Waiting for Lock #2 (chan_iax2.c): MUTEX 12277 iax2_poke_peer &iaxsl[callno] 0x13689e0 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x812830a]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x96) [0x8123d06]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12b94e3]
        /usr/lib/asterisk/modules/chan_iax2.so [0x12c9b19]
        /usr/sbin/asterisk(ast_module_reload+0x36a) [0x812155a]
        /usr/sbin/asterisk [0x80c824e]
        /usr/sbin/asterisk(ast_cli_command_full+0x159) [0x80c9a69]
        /usr/sbin/asterisk [0x8137fe8]
        /usr/sbin/asterisk [0x8134c42]
        /usr/sbin/asterisk [0x814272a]
        /usr/sbin/asterisk [0x819a6b9]
        /usr/sbin/asterisk [0x81a9d71]
        /lib/libpthread.so.0 [0x2ef912]
        /lib/libc.so.6(clone+0x5e) [0x2197ce]
=== --- ---> Locked Here: chan_iax2.c line 4316 (transmit_frame)

                
> Deadlock: Locked Here: chan_iax2.c line 9756 (socket_read)
> ----------------------------------------------------------
>
>                 Key: ASTERISK-22857
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22857
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: SVN, 11.6.0
>         Environment: 64 bit CentOS, 4GB RAM
>            Reporter: David Brillert
>            Assignee: David Brillert
>            Severity: Critical
>         Attachments: core show locks_gdb thread apply all bt full.txt
>
>
> Full deadlock no call processing, no SIP traffic.
> GDB output DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES thread apply all bt full.txt attached.  The deadlock occurred overnight while the system was idle.
> It is happening on multiple production servers.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list