[asterisk-bugs] [JIRA] (ASTERISK-26127) res_pjsip_session: Crash due to race condition between res_pjsip_session unload and timer

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:16:01 CDT 2016


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

Asterisk Team updated ASTERISK-26127:
-------------------------------------

    Target Release Version/s: 14.0.0

> res_pjsip_session: Crash due to race condition between res_pjsip_session unload and timer
> -----------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26127
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26127
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_session
>            Reporter: Joshua Colp
>            Assignee: Joshua Colp
>      Target Release: 13.10.0, 14.0.0
>
>
> When shutting down res_pjsip_session will get unloaded before res_pjsip. The act of unloading unregisters all the PJSIP services and sets their module IDs to -1. In some cases it is possible for a timer to occur after this happens which calls into res_pjsip_session. The res_pjsip_session module can then try to get the session from the INVITE session using the module ID. Since the module ID is now -1 this fails and it goes into baddddddd memory.



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



More information about the asterisk-bugs mailing list