[antlr-interest] ANTLR cpp-generated example crashes on Cygwin

Ric Klaren klaren at cs.utwente.nl
Fri Dec 19 02:18:17 PST 2003


Hi,

On Thu, Dec 18, 2003 at 05:28:15PM -0000, darioglzl wrote:
> Sorry if you get this message twice (anyway I've added some comments
> that missed in the first one).

Only saw this one...

> Since I need to use the cpp option, I followed another of the
> getting-started examples
> (http://www.merrells.com/john/blog/archives/000100.html) to see if
> everithing was set ok. The build-process works fine
> (cppp/hpp files are generated, compiled, and linked against
> libantlr.a), but the program crashes with segm-fault when typing a
> line that matches an expresion defined in the *.g file (If I typed a
> non-matching expression an error is displayed that looks like
> normal, but the segm-fault is still present).
> 
> As a comment, I'm initializing the ASTFactory (there's a similar
> problem in the group that was solved by inserting such initialization
> in the main program:
> http://groups.yahoo.com/group/antlr-interest/message/8322).

What antlr version are you using? 2.7.2 ? If so please try a development
snapshot first (http://wwwhome.cs.utwente.nl/~klaren/antlr/) Do the bundled
examples work ? Could you provide a backtrace of the error (run the binary
in gdb make it crash en do a 'bt')

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Chaos often breeds life, when order breeds habit.
  --- Henry B. Adams, The Education of Henry Adams


 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/antlr-interest/

To unsubscribe from this group, send an email to:
 antlr-interest-unsubscribe at yahoogroups.com

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list