[asterisk-bugs] [JIRA] (ASTERISK-24731) res_pjsip_session cannot be unloaded

Corey Farrell (JIRA) noreply at issues.asterisk.org
Thu Mar 12 20:40:34 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225379#comment-225379 ] 

Corey Farrell commented on ASTERISK-24731:
------------------------------------------

So this PJSIP thread issue effected 5 of the 27 backtraces.  I just moved most of {{res_pjsip.c:module_unload}} to {{unload_pjsip}}, it resolved the {{pjsip_endpt_unregister_module}} crash.  Unfortunately 4 of the 5 went on to crash at {{pjsip_endpt_destroy(ast_pjsip_endpoint)}}.

> res_pjsip_session cannot be unloaded
> ------------------------------------
>
>                 Key: ASTERISK-24731
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24731
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_session
>    Affects Versions: SVN, 13.1.0
>            Reporter: Corey Farrell
>         Attachments: backtrace_3296.txt, backtrace_7937.txt, chan_pjsip-ref-fixes.patch
>
>
> res_pjsip_session cannot be unloaded or shutdown, causing huge numbers of leaks to be reported by REF_DEBUG or valgrind. This makes it impossible to do automated checks for memory leaks against chan_pjsip.  All testsuite tests to fail if REF_DEBUG is enabled and res_pjsip_session is loaded.
> This is follow up to ASTERISK-24485.  As with that bug it's important for the module to clean itself up on graceful shutdown, less important to allow users to unload the module without shutdown.



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



More information about the asterisk-bugs mailing list