Summary: | ASTERISK-26127: res_pjsip_session: Crash due to race condition between res_pjsip_session unload and timer | ||
Reporter: | Joshua C. Colp (jcolp) | Labels: | |
Date Opened: | 2016-06-20 10:24:55 | Date Closed: | 2016-06-21 18:55:50 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_pjsip_session |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | 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. | ||
Comments: |