[asterisk-bugs] [Asterisk 0012780]: logger.c may random crash asterisk on module unload for some OS

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jun 3 08:13:37 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12780 
====================================================================== 
Reported By:                ys
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12780
Category:                   PBX/pbx_config
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 119891 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-03-2008 08:13 CDT
Last Modified:              06-03-2008 08:13 CDT
====================================================================== 
Summary:                    logger.c may random crash asterisk on module unload
for some OS
Description: 

logmsg structure contain file and function pointer, which hold pointer to
file name and function name accordingly.
But memory, which these pointer refer, may be already freed and
inaccessible by logger thread - logger_thread(), if the module is already
unloaded at moment that logger thread call function to print this log
entry.

This mainly affected OS that use constructor/destructor.


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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-03-08 08:13  ys             Asterisk Version          => SVN             
06-03-08 08:13  ys             SVN Branch (only for SVN checkou =>  trunk       
  
06-03-08 08:13  ys             SVN Revision (number only!) => 119891          
======================================================================




More information about the asterisk-bugs mailing list