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

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


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

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

I also had a valgrind output from a previous run, so I'll also attach it even though I'm not sure if it helps (that said, we do see something related to logger.c and stringfields.c, e.g.):

{code}
==11069== 1,409,504 (626,672 direct, 782,832 indirect) bytes in 39,167 blocks are definitely lost in loss record 9,148 of 9,151
==11069==    at 0x402B0D5: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==11069==    by 0x820ECF6: _ast_calloc (in /usr/sbin/asterisk)
==11069==    by 0x81F9203: calloc_wrapper (in /usr/sbin/asterisk)
==11069==    by 0x81F9CB2: __ast_calloc_with_stringfields (in /usr/sbin/asterisk)
==11069==    by 0x816328A: ast_log_full (in /usr/sbin/asterisk)
==11069==    by 0x8163ED8: ast_log_callid (in /usr/sbin/asterisk)
==11069==    by 0x8164235: __ast_verbose_ap (in /usr/sbin/asterisk)
==11069==    by 0x816429A: __ast_verbose (in /usr/sbin/asterisk)
==11069==    by 0x8191D33: pbx_extension_helper (in /usr/sbin/asterisk)
==11069==    by 0x8194DF6: ast_spawn_extension (in /usr/sbin/asterisk)
==11069==    by 0x8195A9F: __ast_pbx_run (in /usr/sbin/asterisk)
==11069==    by 0x81971CA: pbx_thread (in /usr/sbin/asterisk)
{code}

My tests were done on Asterisk 13.9.1.

> 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