[asterisk-bugs] [JIRA] (ASTERISK-27287) Cyclic reference between res_pjsip and res_pjsip_session
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Fri Sep 22 06:33:07 CDT 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-27287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Traud updated ASTERISK-27287:
---------------------------------------
Comment: was deleted
(was: Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].)
> Cyclic reference between res_pjsip and res_pjsip_session
> --------------------------------------------------------
>
> Key: ASTERISK-27287
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27287
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip
> Affects Versions: 13.17.2, 14.6.2, GIT, 15.0.0-rc1
> Reporter: Alexander Traud
>
> Since Asterisk 13.13, the module res_pjsip requires the module res_pjsip_session because it inits a {{pjsip_message_filter}} (formerly {{pjsip_message_ip_updater}}).
> The call stack is as follows:
> * res_pjsip → load_module → ast_res_pjsip_init_message_filter → ast_sip_session_register_supplement
> * unload_pjsip → ast_res_pjsip_cleanup_message_filter → ast_sip_session_unregister_supplement
> This issue has two symptoms:
> * In the build configuration (menuselect), when {{res_pjsip_session}} is disabled but {{res_pjsip}} stays enabled, Asterisk crashes with {{/usr/lib/asterisk/modules/res_pjsip.so: undefined symbol: ast_sip_session_register_supplement}}.
> * In the Command-Line Interface (CLI), {{core stop gracefully}} and {{core stop when convenient}} give the error {{Some modules could not be unloaded, switching to fast shutdown}}.
> Consequently, that {{pjsip_message_filter}} introduces a cyclic reference and the module {{res_pjsip_session}} can never be unloaded, because the reference count never drops to zero. Furthermore, menuselect shows an incorrect build dependency between those modules.
> I have no idea how to fix this, because I am not into the architecture of res_pjsip enough to understand why {{ast_sip_session_(un)register_supplement}} is required at all. Therefore, I am just reporting this issue and cannot contribute any patch or suggestion.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list