[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:06:35 CST 2011


The following issue has been RESOLVED. 
====================================================================== 
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:                     resolved
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:06 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
====================================================================== 

---------------------------------------------------------------------- 
 (0131753) svnbot (reporter) - 2011-02-09 15:06
 https://issues.asterisk.org/view.php?id=18758#c131753 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 307273

U   branches/1.8/main/astobj2.c

------------------------------------------------------------------------
r307273 | jpeeler | 2011-02-09 15:06:34 -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=307273 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-09 15:06 svnbot         Note Added: 0131753                          
2011-02-09 15:06 svnbot         Status                   ready for review =>
assigned
2011-02-09 15:06 svnbot         Assigned To               => jpeeler         
2011-02-09 15:06 svnbot         Status                   assigned => resolved
2011-02-09 15:06 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list