[antlr-interest] Crash in consumeUntil()

Andrew Bell andrew.bell.ia at gmail.com
Tue Jan 24 09:22:48 PST 2006


Hi,

I am throwing a SemanticException in a parser action.  It gets caught
by the default handler which catches the exception as a
RecognitionException.  The exception handler calls reportError() and
then dies when it calls recover().  Here's the stack trace:

#0  0x0000000000523cdd in antlr::TokenBuffer::LA ()
#1  0x000000000043d343 in antlr::Parser::consumeUntil ()
#2  0x00000000004bd227 in StageParser::stagename ()
#3  0x00000000004bd975 in StageParser::stage ()
#4  0x00000000004bdc3c in StageParser::lang ()

I'm generating C++ on a 64bit x86 machine running linux:

$ uname -a
Linux galaga.cssm.iastate.edu 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18
18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

Any help appreciated,

--
Andrew Bell
andrew.bell.ia at gmail.com


More information about the antlr-interest mailing list