dcsimg
Why am I getting SIGABRTs from a C++ ANTLR-generated parser?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ryan_Saunders
Posted On:   Sunday, April 25, 2004 04:03 PM

My first attempt at an ANTLR parser is giving me unfriendly errors when I run it. It seems to be dying inside of the nextToken() method. GDB ouput follows. Starting program: /home/jediry/Desktop/Terrainlib/terrainlib_test test.ttl Program received signal SIGABRT, Aborted. 0xffffe410 in ?? () (gdb) bt #0 0xffffe410 in ?? () #1 0xbfffeb1c in ?? () #2 0x00000006 in ?? () #3 0x40145149 in abort () from /lib/tls/libc.so.6 #4 0x400c40f5 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5 #5 0x400c4132 in std::terminate() () from /usr/lib/libstdc++.so.5 #6 0x400c42b2 in __cxa_throw () from /usr/lib/libstdc++.so.5   More>>

My first attempt at an ANTLR parser is giving me unfriendly errors when I run it. It seems to be dying inside of the nextToken() method.


GDB ouput follows.



			
Starting program: /home/jediry/Desktop/Terrainlib/terrainlib_test test.ttl

Program received signal SIGABRT, Aborted.
0xffffe410 in ?? ()
(gdb) bt
#0 0xffffe410 in ?? ()
#1 0xbfffeb1c in ?? ()
#2 0x00000006 in ?? ()
#3 0x40145149 in abort () from /lib/tls/libc.so.6
#4 0x400c40f5 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#5 0x400c4132 in std::terminate() () from /usr/lib/libstdc++.so.5
#6 0x400c42b2 in __cxa_throw () from /usr/lib/libstdc++.so.5
#7 0x0804d411 in terrainosaurus::TerrainLibraryLexer::nextToken() () at stl_bvector.h:105
#8 0x0805e862 in antlr::TokenBuffer::fill(unsigned) (this=0x4025f800, amount=1) at TokenBuffer.cpp:50
#9 0x0805e909 in antlr::TokenBuffer::LA(unsigned) (this=0x8071f38, i=1) at TokenBuffer.cpp:57
#10 0x0804bf4c in antlr::LLkParser::LA(unsigned) () at stl_bvector.h:105
#11 0x0805be73 in antlr::Parser::match(int) (this=0xbfffef40, t=5) at Parser.cpp:101
#12 0x0804a49d in terrainosaurus::TerrainLibraryParser::terrainTypeDeclaration() ()
#13 0x0804a177 in terrainosaurus::TerrainLibraryParser::terrainTypeRecord() ()
#14 0x0804a022 in terrainosaurus::TerrainLibraryParser::recordList() ()
#15 0x08052baa in main () at stl_bvector.h:105
(gdb)
   <<Less

Re: Why am I getting SIGABRTs from a C++ ANTLR-generated parser?

Posted By:   Ryan_Saunders  
Posted On:   Sunday, April 25, 2004 05:08 PM

I'm retarded. ANTLRException doesn't subclass the C++ standard library exception, and that was all I was catch()ing in my main(). Nevermind.
About | Sitemap | Contact