[asterisk-bugs] [JIRA] (ASTERISK-26078) Memory leak

Etienne Lessard (JIRA) noreply at issues.asterisk.org
Tue May 31 17:19:56 CDT 2016


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

Etienne Lessard commented on ASTERISK-26078:
--------------------------------------------

It seems like the logmsg_free function in logger.c is missing a call to "ast_string_field_free_memory".

I'm guessing this memory leak was a side effect of [commit f6f4cf459f43f072604927209b39646f84aaa2e2|https://github.com/asterisk/asterisk/commit/f6f4cf459f43f072604927209b39646f84aaa2e2]. I don't know if other parts of the source code are affected by a similar issue.

> Memory leak
> -----------
>
>                 Key: ASTERISK-26078
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26078
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 13.8.0, 13.9.1
>         Environment: Debian 8 amd64
>            Reporter: Etienne Lessard
>         Attachments: mmlog, mmsummary1, mmsummary2, valgrind.txt
>
>
> There seems to be a new memory leak since Asterisk 13.8 or 13.9.
> Running a simple call center scenario with sipp (a new call into a queue every few seconds, that is answered by a queue member, etc), I'm seeing asterisk memory usage grow noticeably (a little bit less than 100 MB/hour).
> Looking at a diff from two "memory show summary" commands taken 30 minutes apart, it looks like the leak comes from logger.c / stringfields.c. I've attached the output of two "memory show summary".
> I've also attached the mmlog file, but I doubt this will be useful since it's mostly empty (guess I've done something wrong).
> I'm already aware of ASTERISK-25262, but this is not it: I've explicitly disabled the CEL in my current tests. I've also seen ASTERISK-25905, but this is not it (I've also try manually running malloc_trim, it gave nothing). Maybe it's similar to ASTERISK-26020, but there's not much info in that ticket.
> Thank you



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



More information about the asterisk-bugs mailing list