[asterisk-bugs] [Asterisk 0016053]: Crash on deeply nested while/if statements in AEL

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 18 14:28:24 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16053 
====================================================================== 
Reported By:                diLLec
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16053
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.1.6 
JIRA:                       SWP-1414 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-10-11 17:49 CDT
Last Modified:              2010-06-18 14:28 CDT
====================================================================== 
Summary:                    Crash on deeply nested while/if statements in AEL
Description: 
While reloading ael via ael reload the asterisk process runs into SIGSEGV. 

This bug is curios since Asterisk starts and loads the ael very well. Also
if ael reload is typed in at the cli when starting Asterisk with -c is
working fine.

The issue only shows up when using asterisk manager or asterisk -r.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0017430 segfault in for loop embedded switch st...
====================================================================== 

---------------------------------------------------------------------- 
 (0123614) svnbot (reporter) - 2010-06-18 14:28
 https://issues.asterisk.org/view.php?id=16053#c123614 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 271399

U   branches/1.4/pbx/pbx_ael.c

------------------------------------------------------------------------
r271399 | jpeeler | 2010-06-18 14:28:23 -0500 (Fri, 18 Jun 2010) | 11
lines

Fix crash when parsing some heavily nested statements in AEL on reload.

Due to the recursion used when compiling AEL in gen_prios, all the stack
space 
was being consumed when parsing some AEL that contained nesting 13 levels
deep.
Changing a few large buffers to be heap allocated fixed the crash,
although I
did not test how many more levels can now be safely used.

(closes issue https://issues.asterisk.org/view.php?id=16053)
Reported by: diLLec
Tested by: jpeeler

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

http://svn.digium.com/view/asterisk?view=rev&revision=271399 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-18 14:28 svnbot         Checkin                                      
2010-06-18 14:28 svnbot         Note Added: 0123614                          
======================================================================




More information about the asterisk-bugs mailing list