[Home]

Summary:ASTERISK-26150: Memory leakage in stringfields.c and logger.c
Reporter:Denis S.Davydov (denis.davydov)Labels:
Date Opened:2016-06-26 00:03:07Date Closed:2016-06-26 14:24:19
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:13.9.1 Frequency of
Occurrence
Related
Issues:
duplicatesASTERISK-26078 core: Memory leak in logging
Environment:Virtual Machine on ESXi6 (VM Version 11, 4vCPU, 16Gb RAM), OS: CentOS release 6.8 (Final) x86_84Attachments:( 0) ast_memory_dump.txt
( 1) capture-20160626-081012.png
( 2) capture-20160626-081506.png
( 3) memory_usage_alloc.png
( 4) memory_usage_bytes.png
Description:I found on Asterisk 13.9.1 constantly leaking memory. When memory is too low, I've got from employees complaints about loss of sound on ms, its something like ``sticking'. Last two days I tried to find module which caused memory leakage. Asterisk was compiled with MALLOC_DEBUG flag. Every hour I've run script to report memory usage:

#!/bin/sh
PATH=/bin:/usr/sbin
(date; asterisk -rx 'memory show summary') >> /data/tmp/ast_memory_dump.log

Also, I've write script that parse and load memory summary into Elasticsearch. And I build memory usage graphs by bytes and allocations. Please, look at memory usage on stringfields.c and logger.c. I think this is not normal.

I've got last three crashes described on ASTERISK-26149.
Comments:By: Asterisk Team (asteriskteam) 2016-06-26 00:03:07.993-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Denis S.Davydov (denis.davydov) 2016-06-26 00:08:52.658-0500

On memory usage by allocation first two modules stringfields.c and logger.c have the same value.

By: Denis S.Davydov (denis.davydov) 2016-06-26 00:13:55.342-0500

Zabbix sceenshot has been added. (time is GMT+3). On the other charts time is on GMT+0.

By: Denis S.Davydov (denis.davydov) 2016-06-26 00:17:31.997-0500

htop screenshot has been added

By: Denis S.Davydov (denis.davydov) 2016-06-26 00:19:40.905-0500

Memory usage report (ast_memory_dump.txt) has been added.