bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: huge input files, stack size exceeded??


From: Paul Eggert
Subject: Re: huge input files, stack size exceeded??
Date: 06 Oct 2003 09:36:37 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Joerg Hoffmann <address@hidden> writes:

> #0  0x08064744 in ops_pddlparse () at scan-ops_pddl.tab.c:1070
> 1070            YYSTACK_RELOCATE (yyss);

Most likely your hosts has an inadequate check for stack overflow,
i.e. when you call alloca with a large number, it will return a
bad pointer.

If my guess is right, try doing this:

#define YYSTACK_ALLOC malloc
#define YYSTACK_FREE free

This will cause the parser to use 'malloc' and 'free' rather than the
inadequate 'alloca' implementation.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]