[asterisk-bugs] [JIRA] (ASTERISK-25150) chan_pjsip: RLS subscriptions produce leaks

Corey Farrell (JIRA) noreply at issues.asterisk.org
Thu Sep 13 14:20:54 CDT 2018


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

Corey Farrell updated ASTERISK-25150:
-------------------------------------

    Attachment: debug-force-core-shutdown.patch

debug-force-core-shutdown.patch greatly reduces the number of reported leaks by running all shutdown in main/*.c, ignoring the fact that res_pjsip modules failed to unload.

The patch is not for production use, it allows possible shutdown race where still running modules could can crash by calling core API's that have been cleaned up.

> chan_pjsip: RLS subscriptions produce leaks
> -------------------------------------------
>
>                 Key: ASTERISK-25150
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25150
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip, Resources/res_pjsip_pubsub
>    Affects Versions: 13.18.5, GIT, 15.1.5
>            Reporter: Corey Farrell
>              Labels: patch, pjsip
>         Attachments: debug-force-core-shutdown.patch, rls-lists-off_nominal-large_notify.txt
>
>
> A number of RLS tests produce a large number of reference leaks:
> ||Leaked Objects||Test||
> |789|tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/|
> |790|tests/channels/pjsip/subscriptions/rls/lists/off_nominal/presence/resource_duplication/|
> |790|tests/channels/pjsip/subscriptions/rls/lists/off_nominal/presence/some_list_resources_exist/|
> |791|tests/channels/pjsip/subscriptions/rls/lists/nominal/presence/batched/resubscription_interruption/|
> |794|tests/channels/pjsip/subscriptions/rls/lists/nominal/presence/full_state/|
> |794|tests/channels/pjsip/subscriptions/rls/lists/nominal/presence/initial_notify/|
> |794|tests/channels/pjsip/subscriptions/rls/lists/nominal/presence/partial_state/|
> |794|tests/channels/pjsip/subscriptions/rls/lists/nominal/presence/resubscribe_full_state/|
> |794|tests/channels/pjsip/subscriptions/rls/lists/nominal/presence/subscription_establishment/|
> |794|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/batched/|
> |797|tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/full_state_alice/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/full_state_carol/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/initial_notify/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/partial_state_alice/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/partial_state_carol/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/resubscribe_full_state/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/presence/subscription_establishment/|
> |801|tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/|
> |810|tests/channels/pjsip/subscriptions/rls/lists_of_lists/nominal/mwi/batched/|
> |867|tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/|
> This is based on a test run against:
> [Asterisk 255f6954|https://code.asterisk.org/code/changelog/asterisk?cs=255f695434359c11ff14b0008bf1707435d42a79]
> [Testsuite 13073c2c|https://code.asterisk.org/code/changelog/testsuite-asterisk?cs=13073c2c98f0a3f149661c3e55c1e419391452ff]



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



More information about the asterisk-bugs mailing list