[asterisk-bugs] [Asterisk 0011291]: Latest MySQL CDR crash on start

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 27 00:42:24 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11291 
====================================================================== 
Reported By:                IgorG
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11291
Category:                   Addons/cdr_addon_mysql
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89399 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-19-2007 03:52 CST
Last Modified:              11-27-2007 00:42 CST
====================================================================== 
Summary:                    Latest MySQL CDR crash on start
Description: 
Latest MySQL CDR crash on start, if add noload to modules.conf all is OK.
Back trace attached.
====================================================================== 

---------------------------------------------------------------------- 
 IgorG - 11-27-07 00:42  
---------------------------------------------------------------------- 
I can now understand why this happen only with 'sock' option, but here some
results:
1) Crash caused by ast_verbose (line http://bugs.digium.com/view.php?id=364#1441
in utils.c) by output first
value: (int)(*buf)->len

2) Calling ast_str_make_space make this warning:
WARNING: Realloc of unalloced memory at 0x834ebf8, in ast_str_make_space
of
/usr/src/voip/asterisk-trunk/asterisk-89621.orig/include/asterisk/strings.h,
line 403

3) May be here some memory corruption when calling ast_str_make_space,
because I have no problem with getting value (int)(*buf)->len before call
of this function. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-27-07 00:42  IgorG          Note Added: 0074383                          
======================================================================




More information about the asterisk-bugs mailing list