[Home]

Summary:ASTERISK-18323: Memory leak in lock.h
Reporter:Jacco van Tuijl (jacco)Labels:
Date Opened:2011-08-23 02:45:46Date Closed:2015-03-13 18:37:14
Priority:MajorRegression?
Status:Closed/CompleteComponents:General
Versions:1.8.5.0 1.8.6.0 Frequency of
Occurrence
Constant
Related
Issues:
is caused byASTERISK-16855 [patch] Loading chan_iax2.so allocates >100M RSS
is duplicated byASTERISK-18765 Memory Leak in lock.h
Environment:debian squeeze + asterisk 1.8.6-rc1 realtime (mysql)Attachments:( 0) gdb
( 1) mem_summary
Description:after running asterisk for a couple of days it consumes way to much memory
Comments:By: Jacco van Tuijl (jacco) 2011-08-23 03:11:56.511-0500

couldn't upload the mem allocations output so here is a link to it : http://www.sendspace.com/file/6jc4s6

By: Jacco van Tuijl (jacco) 2011-08-23 03:13:07.151-0500

before "module unload chan_iax2.so"
110273328 bytes in 71236 allocations in file '/usr/src/asterisk-1.8.6.0-rc1/include/asterisk/lock.h'
after "module unload chan_iax2.so"
8770968 bytes in 5666 allocations in file '/usr/src/asterisk-1.8.6.0-rc1/include/asterisk/lock.h'

By: Jacco van Tuijl (jacco) 2011-08-23 03:15:48.365-0500

loading chan_iax2.so shows:
ccentersip*CLI> module load chan_iax2.so
Loaded chan_iax2.so
 == Parsing '/etc/asterisk/iax.conf':   == Found
 == Parsing '/etc/asterisk/users.conf':   == Found
 == Binding IAX2 to default address 0.0.0.0:4569
 == Registered application 'IAX2Provision'
[Aug 23 10:10:38] DEBUG[23124]: xmldoc.c:1796 xmldoc_build_field: Cannot find variable 'description' in tree 'IAXPEER'
 == Registered custom function 'IAXPEER'
[Aug 23 10:10:38] DEBUG[23124]: xmldoc.c:1796 xmldoc_build_field: Cannot find variable 'description' in tree 'IAXVAR'
 == Registered custom function 'IAXVAR'
 == Manager registered action IAXpeers
 == Manager registered action IAXpeerlist
 == Manager registered action IAXnetstats
 == Manager registered action IAXregistry
 == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
 == 10 helper threads started
 == IAX Ready and Listening
 == Parsing '/etc/asterisk/iaxprov.conf':   == Found
   -- Loaded provisioning template 'default'
Loaded chan_iax2.so => (Inter Asterisk eXchange (Ver 2))


By: Richard Mudgett (rmudgett) 2011-08-23 10:20:34.674-0500

I think this may be caused by the fix for ASTERISK-16855.

By: Joshua C. Colp (jcolp) 2015-03-13 18:37:03.756-0500

It appears the bug you have submitted is against a rather old version of a supported branch of Asterisk. There have been many issues fixed between the version you are using and the current version of your branch. Please test with the latest version in your Asterisk branch and report whether the issue persists.

Please see the Asterisk Versions [1] wiki page for info on which versions of Asterisk are supported.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions