[asterisk-bugs] [JIRA] (ASTERISK-24451) chan_iax2: reference leak in sched_delay_remove

Corey Farrell (JIRA) noreply at issues.asterisk.org
Tue Nov 4 07:16:29 CST 2014


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

Corey Farrell commented on ASTERISK-24451:
------------------------------------------

{code}
#define MIN_REUSE_TIME		60	/* Don't reuse a call number within 60 seconds */
{code}

We could be seeing the result of shutdown happening less than 60 seconds after the call to sched_delay_remove.  This still poses an issue for the {{REF_DEBUG}} testsuite, causing 10 tests to fail.  I realize this probably isn't a "real" production leak, but it's existence reduces the effectiveness of brute force leak checking.

Maybe this could be solved by saving the result of {{iax2_sched_add}} to a field in {{struct peercnt}}, iterate peercnts at shutdown and decrement?

> chan_iax2: reference leak in sched_delay_remove
> -----------------------------------------------
>
>                 Key: ASTERISK-24451
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24451
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: 13.0.0-beta3
>            Reporter: Corey Farrell
>            Severity: Minor
>         Attachments: refs.txt
>
>
> {{sched_delay_remove}} seems to leak references to {{peercnt}}.  This issue was found with the testsuite using ASTERISK-24379.  Many tests produce the leak.
> I don't know chan_iax2 but am reporting this in the hopes that someone can address it so we can get the full testsuite leak free.  I have not checked this issue against versions other than 13.



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



More information about the asterisk-bugs mailing list