[asterisk-bugs] [Asterisk 0015781]: crash: in "ast_fdleak_fclose" at astfd.c:201

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 1 15:40:44 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15781 
====================================================================== 
Reported By:                jensvb
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   15781
Category:                   Core/General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.26.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 duplicate
Duplicate:                  15109
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-26 10:28 CDT
Last Modified:              2009-09-01 15:40 CDT
====================================================================== 
Summary:                    crash: in "ast_fdleak_fclose" at astfd.c:201
Description: 
Random crash experienced today

<snip>
https://issues.asterisk.org/view.php?id=6  0x000000000042f777 in
__ast_fdleak_fclose (ptr=0x2aab441149d0) at
astfd.c:201
        fd = -1
        res = 0
</snip>
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0015109 [patch] Abort by memory allocator, poss...
====================================================================== 

---------------------------------------------------------------------- 
 (0109923) svnbot (reporter) - 2009-09-01 15:40
 https://issues.asterisk.org/view.php?id=15781#c109923 
---------------------------------------------------------------------- 
Repository: asterisk-addons
Revision: 1024

U   branches/1.6.0/formats/format_mp3.c

------------------------------------------------------------------------
r1024 | russell | 2009-09-01 15:40:16 -0500 (Tue, 01 Sep 2009) | 45 lines

Fix memory corruption caused by format_mp3.

format_mp3 claimed that it provided AST_FRIENDLY_OFFSET in frames returned
by
read().  However, it lied.  This means that other parts of the code that
attempted to make use of the offset buffer would end up corrupting the
fields
in the ast_filestream structure.  This resulted in quite a few crashes due
to
unexpected values for fields in ast_filestream.

This patch closes out quite a few bugs.  However, some of these bugs have
been
open for a while and have been an area where more than one bug has been
discussed.  So with that said, anyone that is following one of the issues
closed here, if you still have a problem, please open a new bug report for
the
specific problem you are still having.  If you do, please ensure that the
bug
report is based on the newest version of Asterisk, and that this patch is
applied if format_mp3 is in use.  Thanks!

(closes issue https://issues.asterisk.org/view.php?id=15109)
Reported by: jvandal
Tested by: aragon, russell, zerohalo, marhbere, rgj

(closes issue https://issues.asterisk.org/view.php?id=14958)
Reported by: aragon

(closes issue https://issues.asterisk.org/view.php?id=15123)
Reported by: axisinternet

(closes issue https://issues.asterisk.org/view.php?id=15041)
Reported by: maxnuv

(closes issue https://issues.asterisk.org/view.php?id=15396)
Reported by: aragon

(closes issue https://issues.asterisk.org/view.php?id=15195)
Reported by: amorsen
Tested by: amorsen

(closes issue https://issues.asterisk.org/view.php?id=15781)
Reported by: jensvb

(closes issue https://issues.asterisk.org/view.php?id=15735)
Reported by: thom4fun

(closes issue https://issues.asterisk.org/view.php?id=15460)
Reported by: marhbere

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

http://svn.digium.com/view/asterisk-addons?view=rev&revision=1024 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-01 15:40 svnbot         Note Added: 0109923                          
======================================================================




More information about the asterisk-bugs mailing list