[asterisk-bugs] [Asterisk 0015735]: Asterisk Chrashes Daily

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


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15735 
====================================================================== 
Reported By:                thom4fun
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   15735
Category:                   Channels/chan_agent
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.26 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-18 05:44 CDT
Last Modified:              2009-09-01 15:42 CDT
====================================================================== 
Summary:                    Asterisk Chrashes Daily
Description: 
We use asterisk with lot of IAX and Sip Accounts, Agents and Queues. Daily
chrashes the asterisk. It seems that the reason is an agent login, because
GDB / Backtrace said in every dump that an agent will login!

So I changed the asterisk versions, the hardware, and the extensions.conf
to set the agentlogin to a different priority, but in every crash is the
actually priority at the agentlogin.
  
Short time before the asterisk crashes, we get the following lines:
[Aug 18 11:41:57] WARNING[7356] codec_gsm.c: Invalid GSM data (1)
[Aug 18 11:41:57] WARNING[7356] translate.c: gsmtolin did not update
samples 0

We also get a lot of:
[Aug 18 11:35:04] NOTICE[7837] chan_iax2.c: I should never be called!

Nothing else on notices or errors.
But we dont use GSM!

We store the CDR in a pgsql database. Before we change the database server
to the local asterisk machine, asterisk crashes up to 10 times a day. 
So it seems to be an timing problem??

Do you have any Idea why the asterisk crashes? 
Regards
Thomas

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015109 [patch] Abort by memory allocator, poss...
====================================================================== 

---------------------------------------------------------------------- 
 (0109933) svnbot (reporter) - 2009-09-01 15:42
 https://issues.asterisk.org/view.php?id=15735#c109933 
---------------------------------------------------------------------- 
Repository: asterisk-addons
Revision: 1025

U   branches/1.6.1/formats/format_mp3.c

------------------------------------------------------------------------
r1025 | russell | 2009-09-01 15:42:24 -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=1025 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-01 15:42 svnbot         Checkin                                      
2009-09-01 15:42 svnbot         Note Added: 0109933                          
======================================================================




More information about the asterisk-bugs mailing list