[asterisk-bugs] [JIRA] (ASTERISK-27571) res_pjsip: If SIP response is received during shutdown a crash may occur

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Jan 31 17:13:13 CST 2018


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

Friendly Automation commented on ASTERISK-27571:
------------------------------------------------

Change 8108 merged by Jenkins2:
res_pjsip_session: Prevent crash during shutdown.

[https://gerrit.asterisk.org/8108|https://gerrit.asterisk.org/8108]

> res_pjsip: If SIP response is received during shutdown a crash may occur
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-27571
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27571
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.18.5, 15.1.5
>            Reporter: Joshua Colp
>            Severity: Minor
>              Labels: pjsip
>         Attachments: backtrace_388.txt, full.txt
>
>
> During shutdown various things are unregistered, including res_pjsip_session. Unfortunately it is unregistered before res_pjsip. This causes a brief window where traffic may come in that is still associated with res_pjsip_session. Attempting to access the session will produce the wrong result as the index value present on res_pjsip_session will have been reset to -1 instead of its true position. This causes a crash.
> Crash caught by testsuite: tests/channels/pjsip/transfers/attended_transfer/nominal/caller_local_app.



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



More information about the asterisk-bugs mailing list