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

Joshua Colp (JIRA) noreply at issues.asterisk.org
Mon Jun 20 10:26:56 CDT 2016


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

Joshua Colp updated ASTERISK-26127:
-----------------------------------

    Status: Open  (was: Triage)

> 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
>
> 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