[antlr-interest] Segmentation Fault under Cygwin 1.5.18-1

McCall, Kurt Kurt.E.McCall at nasa.gov
Wed Sep 7 13:28:39 PDT 2005


Here is a gdb stack trace after a mystifying segmentation fault in my C++
ANTLR parser running under Cygwin 1.5.18.1.  It seems to be crashing the in
the Cygwin dll.   Does this look familiar to anyone?  The ANTLR version is
2.7.5.

Program received signal SIGSEGV, Segmentation fault.
0x610aaee9 in setstate () from /usr/bin/cygwin1.dll
(gdb) where
#0  0x610aaee9 in setstate () from /usr/bin/cygwin1.dll
#1  0x6104ed0a in lsearch () from /usr/bin/cygwin1.dll
#2  0x610844ff in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#3  0x006159cc in antlr::TokenRef::getRef ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/limits:673
#4  0x00624628 in antlr::CommonToken::factory ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/limits:673
#5  0x00649db6 in antlr::CharScanner::makeToken (this=0x6e1ddf0, t=4)
    at /opt/antlr-2.7.5/include/antlr/CharScanner.hpp:495
#6  0x0057a294 in ExprLexer::mSEMI (this=0x6e1ddf0, _createToken=true)
    at ExprLexer.cpp:444
#7  0x00578470 in ExprLexer::nextToken (this=0x6e1ddf0) at ExprLexer.cpp:99
#8  0x0062320c in antlr::TokenBuffer::fill ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/limits:673
#9  0x00623401 in antlr::TokenBuffer::LA ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/limits:673
#10 0x0064ede5 in antlr::LLkParser::LA (this=0x6ecccb0, i=2)
    at /opt/antlr-2.7.5/include/antlr/LLkParser.hpp:46
#11 0x005862e8 in ExprParser::primary_expression (this=0x6ecccb0)
    at ExprParser.cpp:1179
< Rest of Stack Trace not shown  >

-------------------------------------
Kurt McCall
Modeling and Simulation Branch / EV43
NASA MSFC
(256) 961-4501






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050907/abea5680/attachment.html


More information about the antlr-interest mailing list