[asterisk-bugs] [JIRA] (ASTERISK-24321) SIP deadlock when running automated queues tests

Steve Pitts (JIRA) noreply at issues.asterisk.org
Fri Sep 12 10:28:29 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222633#comment-222633 ] 

Steve Pitts commented on ASTERISK-24321:
----------------------------------------

=======================================================================
=== SVN-branch-13-r422905
=== Currently Held Locks
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0xb6242b90 LWP:10843 (do_monitor           started at [28775] chan_sip.c restart_monitor())
=== ---> Lock #0 (chan_sip.c): MUTEX 28149 handle_request_do &netlock 0xae8ca0 (1)
        main/backtrace.c:59 __ast_bt_get_addresses() (0x80a3379+19)
        main/lock.c:218 __ast_pthread_mutex_lock() (0x8166df8+B1)
        channels/chan_sip.c:28152 handle_request_do()
        channels/chan_sip.c:28111 sipsock_read()
        main/io.c:292 ast_io_wait() (0x815f310+14D)
        channels/chan_sip.c:28742 do_monitor()
        main/utils.c:1201 dummy_start()
        libpthread.so.0 <unknown>()
        libc.so.6 clone() (0x610770+5E)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xb244bb90 LWP:11408 (netconsole           started at [ 1624] asterisk.c listener())
=== ---> Lock #0 (loader.c): MUTEX 850 ast_module_reload &reloadlock 0x8324260 (1)
        main/backtrace.c:59 __ast_bt_get_addresses() (0x80a3379+19)
        main/lock.c:358 __ast_pthread_mutex_trylock() (0x81671b7+B1)
        main/loader.c:850 ast_module_reload() (0x816493a+6D)
        main/cli.c:291 handle_reload()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        res/res_clialiases.c:153 cli_alias_passthrough()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        main/cli.c:2743 ast_cli_command_multiple_full() (0x810d0b6+67)
        main/asterisk.c:1517 netconsole()
        main/utils.c:1201 dummy_start()
        libpthread.so.0 <unknown>()
        libc.so.6 clone() (0x610770+5E)
=== ---> Lock #1 (loader.c): MUTEX 891 ast_module_reload &(&module_list)->lock 0x83241e8 (1)
        main/backtrace.c:59 __ast_bt_get_addresses() (0x80a3379+19)
        main/lock.c:218 __ast_pthread_mutex_lock() (0x8166df8+B1)
        main/loader.c:892 ast_module_reload() (0x816493a+2C1)
        main/cli.c:291 handle_reload()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        res/res_clialiases.c:153 cli_alias_passthrough()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        main/cli.c:2743 ast_cli_command_multiple_full() (0x810d0b6+67)
        main/asterisk.c:1517 netconsole()
        main/utils.c:1201 dummy_start()
        libpthread.so.0 <unknown>()
        libc.so.6 clone() (0x610770+5E)
=== ---> Lock #2 (pbx_config.c): MUTEX 2031 pbx_load_module &reload_lock 0x168360 (1)
        main/backtrace.c:59 __ast_bt_get_addresses() (0x80a3379+19)
        main/lock.c:218 __ast_pthread_mutex_lock() (0x8166df8+B1)
        pbx/pbx_config.c:2033 pbx_load_module()
        pbx/pbx_config.c:2088 reload()
        main/loader.c:918 ast_module_reload() (0x816493a+3A2)
        main/cli.c:291 handle_reload()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        res/res_clialiases.c:153 cli_alias_passthrough()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        main/cli.c:2743 ast_cli_command_multiple_full() (0x810d0b6+67)
        main/asterisk.c:1517 netconsole()
        main/utils.c:1201 dummy_start()
        libpthread.so.0 <unknown>()
        libc.so.6 clone() (0x610770+5E)
=== ---> Lock #3 (pbx.c): WRLOCK 11470 pbx_builtin_setvar_helper &globalslock 0x8325a00 (1)
        main/backtrace.c:59 __ast_bt_get_addresses() (0x80a3379+19)
        main/lock.c:999 __ast_rwlock_wrlock() (0x8168f11+B1)
        main/pbx.c:11471 pbx_builtin_setvar_helper() (0x81b670d+141)
        pbx/pbx_config.c:1677 pbx_load_config()
        pbx/pbx_config.c:2036 pbx_load_module()
        pbx/pbx_config.c:2088 reload()
        main/loader.c:918 ast_module_reload() (0x816493a+3A2)
        main/cli.c:291 handle_reload()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        res/res_clialiases.c:153 cli_alias_passthrough()
        main/cli.c:2719 ast_cli_command_full() (0x810cdb3+234)
        main/cli.c:2743 ast_cli_command_multiple_full() (0x810d0b6+67)
        main/asterisk.c:1517 netconsole()
        main/utils.c:1201 dummy_start()
        libpthread.so.0 <unknown>()
        libc.so.6 clone() (0x610770+5E)
=== -------------------------------------------------------------------
===
=======================================================================


> SIP deadlock when running automated queues tests
> ------------------------------------------------
>
>                 Key: ASTERISK-24321
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24321
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General, General
>    Affects Versions: 13.0.0-beta1
>         Environment: Asterisk SVN-branch-13-r422905 
> Digium Phone Module for Asterisk Version 13.0_2.1.0-rc1
>            Reporter: Steve Pitts
>         Attachments: backtrace-20140911-162040.txt
>
>
> when running asterisk_queue_test_two, the sequence of tests which exercise joinempty and leavewhenempty always cause SIP to deadlock. I.E., all phones become unregistered and no calls can be placed. I don't know the exact cause just yet.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list