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

Joshua Colp (JIRA) noreply at issues.asterisk.org
Wed Jan 10 07:46:39 CST 2018


Joshua Colp created ASTERISK-27571:
--------------------------------------

             Summary: 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: 15.1.5, 13.18.5
            Reporter: Joshua Colp
            Severity: Minor
         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.



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



More information about the asterisk-bugs mailing list