[Home]

Summary:ASTERISK-12392: multiple "infinite loop" messages being output by AEL compiler.
Reporter:Steve Murphy (murf)Labels:
Date Opened:2008-07-16 08:10:37Date Closed:2008-07-16 12:46:02
Priority:MinorRegression?No
Status:Closed/CompleteComponents:PBX/pbx_ael
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:During AEL load, I see multiple messages:

ael/pval.c:1377 find_pval_goto_item: find_pval_goto in infinite loop!

While they do not seem to affect the compile, they
are irritating, and I intend to find out why and
get rid of them.
Comments:By: Digium Subversion (svnbot) 2008-07-16 12:46:00

Repository: asterisk
Revision: 131242

U   branches/1.4/pbx/pbx_ael.c

------------------------------------------------------------------------
r131242 | murf | 2008-07-16 12:45:57 -0500 (Wed, 16 Jul 2008) | 19 lines

(closes issue ASTERISK-12392)
Reported by: murf

The problem was that, esoteric as it is, because the hangerupper
context immediately preceded the std-priv-extent macro, that
the checking code accidentally would fall from traversing hangerupper
into the std-priv-exten macro, where it would hit the hangerupper
in the 'includes', and proceed into an infinite recursion.

A small fix to traverse into the statements of the context instead
of the context solves this issue.

I also added some commented out printfs for debug, which were pretty
handy in the face of a dorky gdb.

This was a problem around since the package was first written;
but evidently pretty rare in turning up in the field.


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

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