Summary: | ASTERISK-14100: huge memory leak - sip_alloc | ||
Reporter: | pj (pj) | Labels: | |
Date Opened: | 2009-05-09 08:03:18 | Date Closed: | 2009-05-28 09:56:59 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | It seems, that every sip qualify allocates more and memory, after about 10hours of operation, my asterisk eats >120MB of ram asterisk was almost idle all this time, only about 6 sip devices was registered fragment of memory statistics is attached ****** ADDITIONAL INFORMATION ****** memory summary: 11397 bytes in 413 allocations in file 'ael/pval.c' 718217 bytes in 1923 allocations in file 'pbx.c' 137661 bytes in 85 allocations in file 'loader.c' 82465866 bytes in 41271 allocations in file 'chan_sip.c' 84251891 bytes allocated in 46043 allocations memory allocations: 2000 bytes allocated in sip_alloc at line 6805 of chan_sip.c 2000 bytes allocated in sip_alloc at line 6805 of chan_sip.c 2000 bytes allocated in sip_alloc at line 6805 of chan_sip.c 2000 bytes allocated in sip_alloc at line 6805 of chan_sip.c .... sort -k 5 sipalloc.txt | grep sip_alloc | wc -l 41205 | ||
Comments: | By: Joshua C. Colp (jcolp) 2009-05-12 09:26:42 Looks like this actually involves 1.6.1 and 1.6.2 as well from my quick testing. By: pj (pj) 2009-05-22 11:19:38 I would like to ask, if you have sufficient informations to solve this issue, or if I should supply some additional debugs/traces. By: Leif Madsen (lmadsen) 2009-05-26 10:57:55 Just assigned this to file for feedback. Please feel free to set this back to New once you've commented (if necessary). Thanks! By: Digium Subversion (svnbot) 2009-05-28 09:51:43 Repository: asterisk Revision: 197538 U trunk/main/utils.c ------------------------------------------------------------------------ r197538 | file | 2009-05-28 09:51:43 -0500 (Thu, 28 May 2009) | 5 lines Fix a bug in stringfields where it did not actually free the pools of memory. (closes issue ASTERISK-14100) Reported by: pj ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=197538 By: Digium Subversion (svnbot) 2009-05-28 09:52:40 Repository: asterisk Revision: 197539 _U branches/1.6.0/ U branches/1.6.0/main/utils.c ------------------------------------------------------------------------ r197539 | file | 2009-05-28 09:52:39 -0500 (Thu, 28 May 2009) | 12 lines Merged revisions 197538 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r197538 | file | 2009-05-28 11:51:43 -0300 (Thu, 28 May 2009) | 5 lines Fix a bug in stringfields where it did not actually free the pools of memory. (closes issue ASTERISK-14100) Reported by: pj ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=197539 By: Digium Subversion (svnbot) 2009-05-28 09:54:26 Repository: asterisk Revision: 197540 _U branches/1.6.1/ U branches/1.6.1/main/utils.c ------------------------------------------------------------------------ r197540 | file | 2009-05-28 09:54:26 -0500 (Thu, 28 May 2009) | 12 lines Merged revisions 197538 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r197538 | file | 2009-05-28 11:51:43 -0300 (Thu, 28 May 2009) | 5 lines Fix a bug in stringfields where it did not actually free the pools of memory. (closes issue ASTERISK-14100) Reported by: pj ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=197540 By: Digium Subversion (svnbot) 2009-05-28 09:56:58 Repository: asterisk Revision: 197542 _U branches/1.6.2/ U branches/1.6.2/main/utils.c ------------------------------------------------------------------------ r197542 | file | 2009-05-28 09:56:57 -0500 (Thu, 28 May 2009) | 12 lines Merged revisions 197538 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r197538 | file | 2009-05-28 11:51:43 -0300 (Thu, 28 May 2009) | 5 lines Fix a bug in stringfields where it did not actually free the pools of memory. (closes issue ASTERISK-14100) Reported by: pj ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=197542 |