[asterisk-bugs] [Asterisk 0013593]: [patch] MALLOC_DEBUG causes crash in chan_h323

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 10 22:30:20 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13593 
====================================================================== 
Reported By:                pj
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   13593
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 145487 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-10-01 14:32 CDT
Last Modified:              2009-03-10 22:30 CDT
====================================================================== 
Summary:                    [patch] MALLOC_DEBUG causes crash in chan_h323
Description: 
When asterisk is compiled also with MALLOC_DEBUG, asterisk crashes after
sip-h323 call is answered. Other debug options like DONT_OPTIMIZE
DEBUG_THREADS DEBUG_CHANNEL_LOCKS doesn't have impact to crash.
Another my asterisk system (SVN-trunk-r141949) is working fine with
chan_h323, even if MALLOC_DEBUG is enabled.

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

---------------------------------------------------------------------- 
 (0101508) svnbot (reporter) - 2009-03-10 22:30
 http://bugs.digium.com/view.php?id=13593#c101508 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 181134

_U  trunk/

------------------------------------------------------------------------
r181134 | jpeeler | 2009-03-10 22:30:19 -0500 (Tue, 10 Mar 2009) | 18
lines

Blocked revisions 181133 via svnmerge

........
  r181133 | jpeeler | 2009-03-10 22:25:04 -0500 (Tue, 10 Mar 2009) | 13
lines
  
  Fix malloc debug macros to work properly with h323.
  
  The main problem here was that cstdlib was undefining free thereby
causing the
  proper debug macros to not be used. ast_h323.cxx has been changed to
call
  ast_free instead to avoid the issue. Because using the ast prefix calls
are
  a better choice, ast_free_ptr is the new wrapper for free to pass to
functions.
  Also, a little bit of clean up was done to avoid the debug macros
intentionally
  being redefined.
  
  (closes issue http://bugs.digium.com/view.php?id=13593)
  Reported by: pj
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-10 22:30 svnbot         Checkin                                      
2009-03-10 22:30 svnbot         Note Added: 0101508                          
======================================================================




More information about the asterisk-bugs mailing list