[asterisk-bugs] [Asterisk 0013235]: Memory leak in Asterisk 1.4 and Trunk

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 11 12:27:32 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13235 
====================================================================== 
Reported By:                falves11
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13235
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 13058 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-04 18:31 CDT
Last Modified:              2008-08-11 12:27 CDT
====================================================================== 
Summary:                    Memory leak in Asterisk 1.4 and Trunk
Description: 
Both versions of Asterisk have a huge memory leak. I thought that it was
Trunk only and ported my app to 1.4. After 1 day and 17 hours the memory
has gone up 1.2 GB. I only have 300 open calls. My machine is open for
inspection. I am not using "malloc debug" and "don't optimize", for
performance reasons,but I will restart tonight the server. if somebody
wants to suggest any diagnostic technique, please let me know before I
restart.
====================================================================== 

---------------------------------------------------------------------- 
 (0091307) murf (administrator) - 2008-08-11 12:27
 http://bugs.digium.com/view.php?id=13235#c91307 
---------------------------------------------------------------------- 
OK, then, on to step 2.

I have taken your dialplan code and converted it to AEL.
I notice that you are using a function I am not familiar with,
MINIXEL_ROUTING. Since I do not have this func, please give
me some example values for:
CARRIERLIST,Z,NANI,CLIST,PLIST
with which I can simulate your environment.

Also, while I'm doing this at my end, can you please
try running your asterisk with valgrind? It involves these
sorts of steps:

1. run "valgrind --leak-check=full --show-reachable=yes asterisk -cgv"

I don't think you'll be able to run this in a production setting. It will
slow down asterisk tremendously.

2. Let Asterisk run for a while, and process a series of calls. Maybe 5 or
10
   should suffice.

3. then, enter the command "stop gracefully"

4. Take all console output from beginning to end, and attach to this bug
report.
 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-11 12:27 murf           Note Added: 0091307                          
======================================================================




More information about the asterisk-bugs mailing list