[asterisk-bugs] [Asterisk 0018694]: Memory Leak in chan_sip.c with Asterisk Version 1.8.2.x

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jan 30 08:49:32 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18694 
====================================================================== 
Reported By:                zircon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18694
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-01-28 02:51 CST
Last Modified:              2011-01-30 08:49 CST
====================================================================== 
Summary:                    Memory Leak in chan_sip.c with Asterisk Version
1.8.2.x
Description: 
Hello,

I think there is a critical memory leak in the current version.

We must restart Asterisk every 1 - 2 days because the memory is over 600
MB of RAM.

Also if there is no calls done in this time.

Yesturday I installed the 1.8.2.3 Version with memory debugging.

Attached you will find some 
memory show summary
output.

Thank you for your help.

If you need further information please ask.

Best Regards
Thomas



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

---------------------------------------------------------------------- 
 (0131240) zircon (reporter) - 2011-01-30 08:49
 https://issues.asterisk.org/view.php?id=18694#c131240 
---------------------------------------------------------------------- 
voip01*CLI> core show uptime 
System uptime: 2 days, 21 hours, 33 minutes, 53 seconds 
Last reload: 2 days, 21 hours, 33 minutes, 53 seconds 
voip01*CLI> memory show summary
      3384 bytes in 1 allocations in file 'res_calendar.c'
     28472 bytes in 2 allocations in file 'app_followme.c'
       784 bytes in 2 allocations in file 'res_crypto.c'
      6240 bytes in 1 allocations in file 'tcptls.c'
       248 bytes in 1 allocations in file 'iax2-provision.c'
      3096 bytes in 1 allocations in file 'chan_local.c'
     37120 bytes in 2 allocations in file 'stdtime/localtime.c'
       240 bytes in 2 allocations in file 'cdr.c'
      3104 bytes in 1 allocations in file 'pbx_ael.c'
      3672 bytes in 1 allocations in file 'func_dialgroup.c'
    117624 bytes in 1 allocations in file 'ssl.c'
     12513 bytes in 6 allocations in file 'logger.c'
       280 bytes in 5 allocations in file 'devicestate.c'
         1 bytes in 1 allocations in file 'app_dial.c'
      9720 bytes in 2 allocations in file 'features.c'
      4632 bytes in 1 allocations in file 'cel.c'
        15 bytes in 3 allocations in file 'http.c'
       100 bytes in 5 allocations in file 'chan_misdn.c'
      3160 bytes in 5 allocations in file 'timing.c'
     12088 bytes in 1 allocations in file 'res_timing_pthread.c'
     22840 bytes in 6 allocations in file 'mpool/mpool.c'
     40423 bytes in 19 allocations in file 'taskprocessor.c'
     12248 bytes in 1 allocations in file 'pbx_realtime.c'
     28312 bytes in 11 allocations in file 'channel.c'
      6768 bytes in 6 allocations in file 'ccss.c'
      3928 bytes in 1 allocations in file 'app_confbridge.c'
     36576 bytes in 44 allocations in file 'hashtab.c'
    188905 bytes in 53 allocations in file 'data.c'
      3626 bytes in 4 allocations in file 'chan_oss.c'
      6072 bytes in 23 allocations in file 'file.c'
     27638 bytes in 9 allocations in file 'dnsmgr.c'
     19665 bytes in 26 allocations in file 'res_odbc.c'
     36011 bytes in 10 allocations in file 'app_minivm.c'
     45879 bytes in 32 allocations in file 'app_voicemail.c'
     24688 bytes in 13 allocations in file 'io.c'
      1578 bytes in 38 allocations in file 'cdr_mysql.c'
     23299 bytes in 13 allocations in file 'func_odbc.c'
    264312 bytes in 64 allocations in file 'chan_dahdi.c'
      3096 bytes in 1 allocations in file 'bridge_multiplexed.c'
     32160 bytes in 30 allocations in file 'sig_pri.c'
      3176 bytes in 43 allocations in file 'utils.c'
    127689 bytes in 108 allocations in file 'manager.c'
      5252 bytes (      5252 cache) in 13 allocations in file 'frame.c'
     12694 bytes in 322 allocations in file 'asterisk.c'
      7861 bytes in 4 allocations in file 'res_musiconhold.c'
      9224 bytes in 3 allocations in file 'netsock.c'
     81745 bytes in 33 allocations in file 'app_queue.c'
     58744 bytes in 20 allocations in file 'app_meetme.c'
     30528 bytes in 106 allocations in file 'acl.c'
   1292238 bytes in 1199 allocations in file 'indications.c'
    569089 bytes in 542 allocations in file 'loader.c'
      3238 bytes in 89 allocations in file 'misdn_config.c'
     14752 bytes in 93 allocations in file
'/usr/src/asterisk-1.8.2.3/include/asterisk/threadstorage.h'
    171172 bytes in 233 allocations in file 'config.c'
 101698408 bytes in 32951 allocations in file 'chan_iax2.c'
     10866 bytes in 555 allocations in file 'cli.c'
     38505 bytes in 1479 allocations in file 'ael/pval.c'
     84594 bytes in 917 allocations in file 'xmldoc.c'
   4431434 bytes in 7644 allocations in file 'pbx.c'
    487286 bytes in 546 allocations in file
'/usr/src/asterisk-1.8.2.3/include/asterisk/strings.h'
    467342 bytes in 5433 allocations in file 'res_config_mysql.c'
    186760 bytes in 1548 allocations in file 'sched.c'
   1805712 bytes in 75238 allocations in file 'astobj2.c'
   2469486 bytes in 1600 allocations in file 'event.c'
 453378898 bytes in 165724 allocations in file 'chan_sip.c'
568521210 bytes allocated (5252 in caches) in 296891 allocations
voip01*CLI> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-30 08:49 zircon         Note Added: 0131240                          
======================================================================




More information about the asterisk-bugs mailing list