[Home]

Summary:ASTERISK-17645: Memory leak in utils.c
Reporter:Frank DiGennaro (cbbs70a)Labels:
Date Opened:2011-04-04 11:35:30Date Closed:2011-04-19 10:05:57
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:General
Versions:1.8.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Running a standard install of Asterisk 1.8.2.3, memory leak grows unbounded, with Asterisk using up 3GB of memory. The load average consistently stayed in the range of about 40, when it normally is less than 2. I saw this error:

[Apr  4 11:18:08] ERROR[23602]: /usr/src/asterisk-1.8.2.3/include/asterisk/utils.h:477 _ast_calloc: Memory Allocation Failure in function __ast_calloc_with_stringfields at line 1791 of utils.c
Comments:By: David Woolley (davidw) 2011-04-05 09:23:40

utils.c tells one very little, because that's simply where memory is allocated!

What do you mean by a standard build?  What gets installed depends on what else was installed at the time ./configure was run, even if you don't customise.  

For a start, you will need to build from source with no optimisation, and obtain back traces of all running threads.

You may well need to run it under valgrind.

By: Leif Madsen (lmadsen) 2011-04-05 17:09:47

Set to Feedback per davidw.

By: Leif Madsen (lmadsen) 2011-04-19 10:05:57

No response from reporter.