[asterisk-bugs] [JIRA] (ASTERISK-28609) Memory Leak in res_rtp_asterisk.c

George Joseph (JIRA) noreply at issues.asterisk.org
Tue Dec 17 16:35:32 CST 2019


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

George Joseph commented on ASTERISK-28609:
------------------------------------------

Yeah, there's only an approximate relationship.  We just wanted to get an idea of how busy the system was.

The patch does plug a few holes in the exact place shown in the debug information so I'm fairly confident that you won't see any increase over time but yeah feel free to re-open the issue if you do see them.

The patch was just officially too late for the next release but we're going to have to do another set of release candidates anyway so I'll see if we can get this in.


> Memory Leak in res_rtp_asterisk.c
> ---------------------------------
>
>                 Key: ASTERISK-28609
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28609
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 16.3.0
>            Reporter: Ted G
>            Assignee: Unassigned
>            Severity: Minor
>              Labels: fax, patch
>         Attachments: ASTERISK-28609-1.patch, frame-malloc-debug.patch, leak.txt, mem-20191216.txt
>
>
> Hello,
>   There appears to be a memory leak in frame.c.
> Sometimes I received these errors in my logs:
> [Nov  5 21:14:49] WARNING[14918][C-00028a27]: file.c:258 ast_writestream: Translated frame write failed
> I believe this happenes because of some issues between my carrier and the asterisk system and most of the time these errors are not frequent.
> However sometimes these errors are produced thousands of times per day and when that happens the memory usage for asterisk shoots up and never recovers:
> ...
>    1073986 bytes in       5455 allocations in file xmldoc.c
>    1327380 bytes in       1819 allocations in file chan_sip.c
>    1351770 bytes in        840 allocations in file res_rtp_asterisk.c
>    1707720 bytes in        105 allocations in file smoother.c
>    2409853 bytes in        255 allocations in file file.c
>    2988480 bytes in        163 allocations in file bridge_softmix.c
>    7310456 bytes in        633 allocations in file translate.c
>    7434868 bytes in       2773 allocations in file confbridge/conf_config_parser.c
>  899355372 bytes ( 899355372 cache) in    2046261 allocations in file frame.c         <----
>  933339512 bytes allocated (899355372 in caches) in 2102261 selected allocations
>  933339512 bytes in all allocations
>  934016850 bytes in all allocations and deferred free allocations
> axis/root# top -b -n 1 | grep asterisk
> 19727 root      20   0 3353860 1.314g   8256 S 111.8  2.1  16620:19 asterisk     1.3GB :(
> System uptime: 1 week, 3 days, 23 hours, 34 minutes, 42 seconds
> 1 week, 3 days worth of frame write failed error counts:
> mmdd errors
> 1027 2218
> 1028 1426
> 1029 5275
> 1030 2454
> 1031 1612
> 1101 2797
> 1102 1635
> 1103 3278
> 1104 743
> 1105 1117



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



More information about the asterisk-bugs mailing list