[asterisk-bugs] [JIRA] (ASTERISK-20656) Deadlock in pthread

Michael Cramer (JIRA) noreply at issues.asterisk.org
Tue Nov 6 19:30:21 CST 2012


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

Michael Cramer updated ASTERISK-20656:
--------------------------------------

    Description: 
I believe I hit this lock a number of times today. Not sure what caused it. There are 31 sip peers on this server. There are 10 phones that subscribe to a lot of blf hints, custom hints. There is a big use of ConfBridge. 
=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0x41c86940 (do_timing            started at [  483] res_timing_pthread.c init_timing_thread())
=== ---> Lock #0 (astobj2.c): MUTEX 1069 internal_ao2_callback c 0x2aaaaca92030 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x508c04]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xf6) [0x500eda]
        /usr/sbin/asterisk(__ao2_lock+0x97) [0x44de1f]
        /usr/sbin/asterisk [0x44f6e4]
        /usr/sbin/asterisk(__ao2_callback+0x59) [0x44fca7]
        /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735ce91]
        /usr/sbin/asterisk [0x593a13]
        /lib64/libpthread.so.0 [0x3b9200677d]
        /lib64/libc.so.6(clone+0x6d) [0x3b918d33ed]
=== ---> Lock #1 (res_timing_pthread.c): MUTEX 441 run_timer timer 0x10ca2950 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x508c04]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xf6) [0x500eda]
        /usr/sbin/asterisk(__ao2_lock+0x97) [0x44de1f]
        /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735cdf1]
        /usr/sbin/asterisk [0x44f814]
        /usr/sbin/asterisk(__ao2_callback+0x59) [0x44fca7]
        /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735ce91]
        /usr/sbin/asterisk [0x593a13]
        /lib64/libpthread.so.0 [0x3b9200677d]
        /lib64/libc.so.6(clone+0x6d) [0x3b918d33ed]
=== -------------------------------------------------------------------
===
=======================================================================

  was:
=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0x41c86940 (do_timing            started at [  483] res_timing_pthread.c init_timing_thread())
=== ---> Lock #0 (astobj2.c): MUTEX 1069 internal_ao2_callback c 0x2aaaaca92030 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x508c04]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xf6) [0x500eda]
        /usr/sbin/asterisk(__ao2_lock+0x97) [0x44de1f]
        /usr/sbin/asterisk [0x44f6e4]
        /usr/sbin/asterisk(__ao2_callback+0x59) [0x44fca7]
        /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735ce91]
        /usr/sbin/asterisk [0x593a13]
        /lib64/libpthread.so.0 [0x3b9200677d]
        /lib64/libc.so.6(clone+0x6d) [0x3b918d33ed]
=== ---> Lock #1 (res_timing_pthread.c): MUTEX 441 run_timer timer 0x10ca2950 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x508c04]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xf6) [0x500eda]
        /usr/sbin/asterisk(__ao2_lock+0x97) [0x44de1f]
        /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735cdf1]
        /usr/sbin/asterisk [0x44f814]
        /usr/sbin/asterisk(__ao2_callback+0x59) [0x44fca7]
        /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735ce91]
        /usr/sbin/asterisk [0x593a13]
        /lib64/libpthread.so.0 [0x3b9200677d]
        /lib64/libc.so.6(clone+0x6d) [0x3b918d33ed]
=== -------------------------------------------------------------------
===
=======================================================================

    
> Deadlock in pthread
> -------------------
>
>                 Key: ASTERISK-20656
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20656
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 11.0.0
>         Environment: CentOS 5.8 Xen
>            Reporter: Michael Cramer
>            Severity: Critical
>
> I believe I hit this lock a number of times today. Not sure what caused it. There are 31 sip peers on this server. There are 10 phones that subscribe to a lot of blf hints, custom hints. There is a big use of ConfBridge. 
> =======================================================================
> === Currently Held Locks ==============================================
> =======================================================================
> ===
> === <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
> ===
> === Thread ID: 0x41c86940 (do_timing            started at [  483] res_timing_pthread.c init_timing_thread())
> === ---> Lock #0 (astobj2.c): MUTEX 1069 internal_ao2_callback c 0x2aaaaca92030 (1)
>         /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x508c04]
>         /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xf6) [0x500eda]
>         /usr/sbin/asterisk(__ao2_lock+0x97) [0x44de1f]
>         /usr/sbin/asterisk [0x44f6e4]
>         /usr/sbin/asterisk(__ao2_callback+0x59) [0x44fca7]
>         /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735ce91]
>         /usr/sbin/asterisk [0x593a13]
>         /lib64/libpthread.so.0 [0x3b9200677d]
>         /lib64/libc.so.6(clone+0x6d) [0x3b918d33ed]
> === ---> Lock #1 (res_timing_pthread.c): MUTEX 441 run_timer timer 0x10ca2950 (1)
>         /usr/sbin/asterisk(ast_bt_get_addresses+0x1a) [0x508c04]
>         /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xf6) [0x500eda]
>         /usr/sbin/asterisk(__ao2_lock+0x97) [0x44de1f]
>         /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735cdf1]
>         /usr/sbin/asterisk [0x44f814]
>         /usr/sbin/asterisk(__ao2_callback+0x59) [0x44fca7]
>         /usr/lib/asterisk/modules/res_timing_pthread.so [0x2aaab735ce91]
>         /usr/sbin/asterisk [0x593a13]
>         /lib64/libpthread.so.0 [0x3b9200677d]
>         /lib64/libc.so.6(clone+0x6d) [0x3b918d33ed]
> === -------------------------------------------------------------------
> ===
> =======================================================================

--
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