[asterisk-bugs] [Asterisk 0016538]: memory leak in confic.c

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 4 03:40:35 CST 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16538 
====================================================================== 
Reported By:                sdaniels
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16538
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           Older 1.4 - please test a newer version 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-04 03:40 CST
Last Modified:              2010-01-04 03:40 CST
====================================================================== 
Summary:                    memory leak in confic.c
Description: 
Asterisk is using more and more memory (up to 2GB), even when no calls are
placed.

Versions: 1.4.19.2 -1.4.22
1.4.28 not usable in my case.

After a few days Asterisk is using so much memory, that only a restart
make it usable again, because it is getting dead slow and all RTP data,
that passes asterisk is choppy.

After a restart astersik uses around 11MB. As soon as the first phones
reregisters, memory usage is increasing. Reboot of all phones makes it even
faster.

Memory is allocated by config.c in ast_variable_new at line 194

memory show allocations

45 bytes allocated in     ast_variable_new at line   194 of config.c 

After a few hours I had 358194 of the above.

Running asterisk like that: 

valgrind --leak-check=full --show-reachable=yes asterisk -cgv 

used over 200MB of memory after around 4h and all together 4 calls!

stop gracefully did not work any more.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-04 03:40 sdaniels       Asterisk Version          => Older 1.4 - please
test a newer version
2010-01-04 03:40 sdaniels       Regression                => No              
2010-01-04 03:40 sdaniels       SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list