[asterisk-bugs] [JIRA] (ASTERISK-26145) pjsip: Deadlock with suspend + masquerade + indicate

Joshua Colp (JIRA) noreply at issues.asterisk.org
Thu Aug 4 04:57:57 CDT 2016


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

Joshua Colp commented on ASTERISK-26145:
----------------------------------------

Your backtraces already show why it is piling up, and the title of this issue includes that.

A masquerade operation is happening which is suspending the distributor from continuing, the masquerade operation deadlocks when doing an indicate, the distributor is never unsuspended. Why that's happening requires deep investigation into things with masquerades being one of the most complex operations in Asterisk.

> pjsip: Deadlock with suspend + masquerade + indicate
> ----------------------------------------------------
>
>                 Key: ASTERISK-26145
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26145
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip, Resources/res_pjsip
>    Affects Versions: 13.10.0-rc1
>         Environment: Fedora 23
>            Reporter: Ross Beer
>            Assignee: Unassigned
>         Attachments: 2016-06-28_backtrace-threads.txt, 2016-06-28_taksprocessor.txt, 2016-06-28_threads.txt, backtrace-threads_20160627_CLEAN.txt, backtrace-threads_2016-06-30_CLEAN.txt, backtrace-threads_2016-07-06_CLEAN.txt, backtrace-threads_2016-07-07_12_00_CLEAN.txt, backtrace-threads_20160711_CLEAN.txt, backtrace-threads_2016-07-12_CLEAN.txt, backtrace-threads_Deadlock_CLEAN.txt, core-show-taskprocessors_2016-06-30_CLEAN.txt, core-show-taskprocessors_2016-07-06_CLEAN.txt, core-show-taskprocessors_2016-07-07_12_00_CLEAN.txt, core-show-taskprocessors_20160711_CLEAN.txt, core-show-threads_2016-06-30.txt, core-show-threads_2016-07-06_CLEAN.txt, core-show-threads_2016-07-07_12_00.txt, core-show-threads_20160711.txt, TaskProcessor_20160803.txt, taskprocessor_CLEAN.txt, taskprocessors_CLEAN.txt, threads_CLEAN.txt
>
>
> Asterisk stops processing SIP packets due to the task processor exceeding 500 tasks.
> From the below, it looks like the RTP streams are not closing tasks related to RTP timeouts. 
> [2016-06-24 11:35:39] WARNING[313]: taskprocessor.c:887 taskprocessor_push: The 'subm:rtp_topic-000000de' task processor queue reached 500 scheduled tasks.
> [2016-06-24 11:36:08] NOTICE[313]: res_pjsip_sdp_rtp.c:165 rtp_check_timeout: Disconnecting channel 'PJSIP/<<Username>>-000040dd' for lack of RTP activity in 65 seconds
> No core dump is created as asterisk doesn't crash.



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



More information about the asterisk-bugs mailing list