[asterisk-bugs] [JIRA] (ASTERISK-25455) Deadlock of PJSIP realtime over res_config_pgsql

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Thu Oct 8 15:50:33 CDT 2015


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

Richard Mudgett commented on ASTERISK-25455:
--------------------------------------------

[^core-show-locks.txt] - The file is not showing a classic deadlock.  It is showing a thread that is blocking for an unknown reason holding a lock that other threads want to get.  If you had {{BETTER_BACKTRACES}} enabled using {{make menuselect}} the backtrace in the file would be able to tell us where the thread got the lock and we might be able to infer where the thread is blocked.

[^lock-bt-full.txt] - This file is not showing much.  It would have been better if you had captured the {{thread apply all bt}} command output that can be mapped with the [^core-show-locks.txt] output.  As it is I don't know what the blocked thread shown in [^core-show-locks.txt] is doing.

Please follow [1] to get the needed information for debugging deadlocks.
[1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace

> Deadlock of PJSIP realtime over res_config_pgsql 
> -------------------------------------------------
>
>                 Key: ASTERISK-25455
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25455
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip, Resources/res_config_pgsql, Resources/res_pjsip
>    Affects Versions: 13.5.0, 13.6.0
>         Environment: linux 64bit
> kernel 3.10.17
> distro slackware64 14.1 
>            Reporter: mdu113
>         Attachments: core-show-locks.txt, lock-bt-full.txt
>
>
> Asterisk intermittently deadlocks during initial loading of pjsip endpoints. It seems to depend on number of endpoints loaded. With small number of endpoints (up to a 100) it loads ok most of the time. With several hundreds of endpoints it deadlocks sometimes. With several thousand of endpoints it deadlocks most of the time.
> Attached are backtrace and output of "core show locks". The testing was done on asterisk 13.6.0-rc2



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



More information about the asterisk-bugs mailing list