[asterisk-bugs] [JIRA] (ASTERISK-19767) dead lock in res_config_pgsl while dialing SIP extension

Sean Bright (JIRA) noreply at issues.asterisk.org
Mon Mar 27 14:42:13 CDT 2017


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

Sean Bright closed ASTERISK-19767.
----------------------------------

    Resolution: Cannot Reproduce

A lot of the locking behavior was changed Asterisk 13.14 and 13.15 that most likely addressed this. If you are able to reproduce with 13.15 or newer, please feel free to re-open.

> dead lock in res_config_pgsl while dialing SIP extension
> --------------------------------------------------------
>
>                 Key: ASTERISK-19767
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19767
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_config_pgsql
>    Affects Versions: 10.3.0
>         Environment: Linux asterisk 3.1.9-1.4-default #1 SMP Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) i686 i686 i386 GNU/Linux
>            Reporter: Marcello Ceschia
>
> {noformat}
> =======================================================================
> === Currently Held Locks ==============================================
> =======================================================================
> ===
> === <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
> ===
> === Thread ID: 0xb5752b70 (do_monitor           started at [26748] chan_sip.c restart_monitor())
> === ---> Lock #0 (chan_sip.c): MUTEX 26720 do_monitor &monlock 0xb6224920 (1)
>         /usr/sbin/asterisk(ast_bt_get_addresses+0x18) [0x8131cf8]
>         /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x87) [0x812cd37]
>         /usr/lib/asterisk/modules/chan_sip.so(+0x627ac) [0xb61ce7ac]
>         /usr/sbin/asterisk() [0x81b0298]
>         /lib/libpthread.so.0(+0x6a7d) [0xb7217a7d]
>         /lib/libc.so.6(clone+0x5e) [0xb7554abe]
> === ---> Lock #1 (res_config_pgsql.c): MUTEX 488 realtime_pgsql &pgsql_lock 0xb7117140 (1)
>         /usr/sbin/asterisk(ast_bt_get_addresses+0x18) [0x8131cf8]
>         /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x87) [0x812cd37]
>         /usr/lib/asterisk/modules/res_config_pgsql.so(+0x4fc1) [0xb710bfc1]
>         /usr/sbin/asterisk() [0x80d5970]
>         /usr/sbin/asterisk(ast_load_realtime+0x14) [0x80dc3a4]
>         /usr/lib/asterisk/modules/chan_sip.so(+0x6406c) [0xb61d006c]
>         /usr/lib/asterisk/modules/chan_sip.so(+0x6e783) [0xb61da783]
>         /usr/lib/asterisk/modules/chan_sip.so(+0x6fabf) [0xb61dbabf]
>         /usr/sbin/asterisk(ast_sched_runq+0x13f) [0x8197a9f]
>         /usr/lib/asterisk/modules/chan_sip.so(+0x627b7) [0xb61ce7b7]
>         /usr/sbin/asterisk() [0x81b0298]
>         /lib/libpthread.so.0(+0x6a7d) [0xb7217a7d]
>         /lib/libc.so.6(clone+0x5e) [0xb7554abe]
> === -------------------------------------------------------------------
> ===
> === Thread ID: 0xb46f3b70 (pbx_thread           started at [ 5512] pbx.c ast_pbx_start())
> === ---> Waiting for Lock #0 (chan_sip.c): MUTEX 26737 restart_monitor &monlock 0xb6224920 (1)
>         /usr/sbin/asterisk(ast_bt_get_addresses+0x18) [0x8131cf8]
>         /usr/sbin/asterisk(__ast_pthread_mutex_lock+0x87) [0x812cd37]
>         /usr/lib/asterisk/modules/chan_sip.so(+0x6ca24) [0xb61d8a24]
>         /usr/sbin/asterisk(ast_request+0x216) [0x80bc566]
>         /usr/lib/asterisk/modules/app_dial.so(+0x9aaf) [0xb6242aaf]
>         /usr/lib/asterisk/modules/app_dial.so(+0xd88f) [0xb624688f]
>         /usr/sbin/asterisk(pbx_exec+0x10e) [0x815a9ee]
>         /usr/sbin/asterisk() [0x8165124]
>         /usr/sbin/asterisk() [0x816a76d]
>         /usr/sbin/asterisk() [0x816c0fe]
>         /usr/sbin/asterisk() [0x81b0298]
>         /lib/libpthread.so.0(+0x6a7d) [0xb7217a7d]
>         /lib/libc.so.6(clone+0x5e) [0xb7554abe]
> === --- ---> Locked Here: chan_sip.c line 26720 (do_monitor)
> === -------------------------------------------------------------------
> ===
> =======================================================================
> {noformat}



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



More information about the asterisk-bugs mailing list