[asterisk-bugs] [Asterisk 0013452]: skinny memory leak

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Sep 13 01:13:29 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13452 
====================================================================== 
Reported By:                pj
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   13452
Category:                   Channels/chan_skinny
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 141949 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-10 04:31 CDT
Last Modified:              2008-09-13 01:13 CDT
====================================================================== 
Summary:                    skinny memory leak
Description: 
memory allocations continuously growing,
asterisk has only two idle 7920 phones during monitoring period,
no skinny calls during this time window (about 15hours), 
perhaps some leak in keepalives handling?

  176148 bytes in 3284 allocations in file 'chan_skinny.c'
  307800 bytes in 7523 allocations in file 'chan_skinny.c'






======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013294 crash after "Hard hangup called wh...
====================================================================== 

---------------------------------------------------------------------- 
 (0092460) pj (reporter) - 2008-09-13 01:13
 http://bugs.digium.com/view.php?id=13452#c92460 
---------------------------------------------------------------------- 
Asterisk SVN-trunk-r142992 +  memleak3.diff 
sometimes crashes after skinny hangup (gdb attached),
mmlog:
WARNING: Freeing unused memory at 0x831a348, in skinny_hangup of
chan_skinny.c, line 3690
WARNING: Freeing unused memory at 0x830c9b0, in skinny_hangup of
chan_skinny.c, line 3690


(gdb) bt
http://bugs.digium.com/view.php?id=0  0xb7d8c26f in ?? () from
/lib/i686/libc.so.6
http://bugs.digium.com/view.php?id=1  0xb7c3e9ab in _Unwind_Backtrace () from
/lib/libgcc_s.so.1
http://bugs.digium.com/view.php?id=2  0xb7d8c428 in backtrace () from
/lib/i686/libc.so.6
http://bugs.digium.com/view.php?id=3  0x080f8036 in ast_bt_get_addresses
(bt=0xc250362c) at logger.c:1190
http://bugs.digium.com/view.php?id=4  0xb78c9783 in __ast_pthread_mutex_lock
(filename=0xb78e0274
"chan_skinny.c", lineno=3680, func=0xb78e2a9e "skinny_hangup",
mutex_name=0xb78e1731 "&sub->lock", t=0x82fa9e8)
    at /root/src/asterisk143030/include/asterisk/lock.h:501
http://bugs.digium.com/view.php?id=5  0xb78d2b7e in skinny_hangup
(ast=0x82f8ab8) at chan_skinny.c:3680
http://bugs.digium.com/view.php?id=6  0x080955ea in ast_hangup (chan=0x82f8ab8)
at channel.c:1623
http://bugs.digium.com/view.php?id=7  0x08114fc5 in __ast_pbx_run (c=0x82f8ab8)
at pbx.c:3898
http://bugs.digium.com/view.php?id=8  0x08115bae in ast_pbx_run (c=0x82f8ab8) at
pbx.c:4024
http://bugs.digium.com/view.php?id=9  0xb78d19a9 in skinny_newcall
(data=0x82f8ab8) at chan_skinny.c:3446
http://bugs.digium.com/view.php?id=10 0xb78d1eab in skinny_ss (data=0x82f8ab8)
at chan_skinny.c:3513
http://bugs.digium.com/view.php?id=11 0x0816d6f0 in dummy_start (data=0x82ca0f0)
at utils.c:1024
http://bugs.digium.com/view.php?id=12 0xb7c8a315 in start_thread () from
/lib/i686/libpthread.so.0
http://bugs.digium.com/view.php?id=13 0xb7d78dde in clone () from
/lib/i686/libc.so.6 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-13 01:13 pj             Note Added: 0092460                          
======================================================================




More information about the asterisk-bugs mailing list