[asterisk-bugs] [Asterisk 0018758]: [patch] astobj2.c does not report ref changes during internal_ao2_callback for refcounter util

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 9 15:08:24 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18758 
====================================================================== 
Reported By:                rgagnon
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   18758
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           1.8.2.3 
JIRA:                       SWP-3038 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!): 306540 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-02-06 20:23 CST
Last Modified:              2011-02-09 15:08 CST
====================================================================== 
Summary:                    [patch] astobj2.c does not report ref changes during
internal_ao2_callback for refcounter util
Description: 
While using the refcounter utility to find memory leaks in chan_sip.c, I
recognized some ref counter increases and decreases were not being recorded
in /tmp/refs

There is one call to __ao2_link() within internal_ao2_callback that is the
cause of this tag not getting written to /tmp/refs
====================================================================== 

---------------------------------------------------------------------- 
 (0131754) svnbot (reporter) - 2011-02-09 15:08
 https://issues.asterisk.org/view.php?id=18758#c131754 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 307274

_U  trunk/
U   trunk/main/astobj2.c

------------------------------------------------------------------------
r307274 | jpeeler | 2011-02-09 15:08:23 -0600 (Wed, 09 Feb 2011) | 15
lines

Merged revisions 307273 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r307273 | jpeeler | 2011-02-09 15:06:33 -0600 (Wed, 09 Feb 2011) | 8
lines
  
  Add missing debug info for ao2_link for use with REF_DEBUG in ao2
callback.
  
  (closes issue https://issues.asterisk.org/view.php?id=18758)
  Reported by: rgagnon
  Patches: 
        branch-1.8-r306540-astobj-fix.diff uploaded by rgagnon (license
1202)
        trunk-r306540-astobj-fix.diff uploaded by rgagnon (license 1202)
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=307274 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-09 15:08 svnbot         Checkin                                      
2011-02-09 15:08 svnbot         Note Added: 0131754                          
======================================================================




More information about the asterisk-bugs mailing list