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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 10 22:25:05 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:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 145487 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-01 14:32 CDT
Last Modified:              2009-03-10 22:25 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.

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

---------------------------------------------------------------------- 
 (0101507) svnbot (reporter) - 2009-03-10 22:25
 http://bugs.digium.com/view.php?id=13593#c101507 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 181133

U   branches/1.4/apps/app_meetme.c
U   branches/1.4/channels/chan_iax2.c
U   branches/1.4/channels/chan_sip.c
U   branches/1.4/channels/h323/ast_h323.cxx
U   branches/1.4/include/asterisk/astmm.h
U   branches/1.4/include/asterisk/threadstorage.h
U   branches/1.4/include/asterisk/utils.h
U   branches/1.4/pbx/pbx_ael.c
U   branches/1.4/pbx/pbx_config.c
U   branches/1.4/res/res_features.c

------------------------------------------------------------------------
r181133 | jpeeler | 2009-03-10 22:25:05 -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=181133 

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




More information about the asterisk-bugs mailing list