Ask a Question related to UNIX Programming, Design and Development.
-
Chuck Dillon #1
Re: YACC-LEX parsing overflow
Alvaro Puente wrote:
What does it say if you enter 'limit' at your commandline? Perhaps> Actually, I'm using bison-flex, and I'm afraid the options you mention
> does not appear in manpage.
>
> Regarding the error I get, using purify it shows SOF: Stack overflow
> in function yyparse(), before the process dies (core dump).
> More precisely, the error is found in "bison.simple" file, when calling
> "alloc" function.
your stacksize limit is set too low and the bison code isn't doing
enough error checking to handle it elegantly.
-- ced
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
Chuck Dillon Guest
-
yacc
What package on AIX 4.3.3 contains yacc ? -
Overflow
Hi All I am getting this error. Microsoft VBScript runtime (0x800A0006) Overflow: '' I am using if and case statments a lot, at certain... -
Recommendation: translating a Unix YACC-based program
I'd appreciate suggestions on sensible ways to proceed: I have an old Unix program written in C, much of which was a YACC grammar. I'm going to do... -
searching lex & yacc for foxPro
please ,can someone help me : i want a lex & yacc for generating parser for the programming language foxPro. thanks for all -- Posted via... -
lex+yacc parser for HTTP
Hi all. I need to write a HTTP server for a school assignment, and decided to structure it in the most trivial way possible, i.e. forking on client... -
Martin Jost #2
Re: YACC-LEX parsing overflow
"Alvaro Puente" <alvaro.puente-gonzalez@ece.ericsson.se> schrieb im Newsbeitrag news:bek1ft$dfc$1@newstree.wise.edt.ericsson.se...
Maybe your grammar runs in some sort of (near) endless-recursion.> "Chuck Dillon" <cdillon@nimblegen.com> wrote in message
> news:3F0D7FDB.1080807@nimblegen.com...> Actually, I'm using bison-flex, and I'm afraid the options you mention> > What is the exact error message you are getting? Are you exceeding one
> > of the configurable lex table sizes? See the lex manpage about %p, %n,
> > %o and the like.
> does not appear in manpage.
>
> Regarding the error I get, using purify it shows SOF: Stack overflow
> in function yyparse(), before the process dies (core dump).
> More precisely, the error is found in "bison.simple" file, when calling
> "alloc" function.
Try to track down, what bison is doing at that time.
See "Tracing Your Parser" in the info-file for bison.
HTH
Martin
Martin Jost Guest
-
Alvaro Puente #3
Re: YACC-LEX parsing overflow
"Chuck Dillon" <cdillon@nimblegen.com> wrote in message
news:3F0DD192.3030504@nimblegen.com...limit showed a stacksize of 8192 kbytes. I increased it to 81920 kbytes> Alvaro Puente wrote:>> > Actually, I'm using bison-flex, and I'm afraid the options you mention
> > does not appear in manpage.
> >
> > Regarding the error I get, using purify it shows SOF: Stack overflow
> > in function yyparse(), before the process dies (core dump).
> > More precisely, the error is found in "bison.simple" file, when calling
> > "alloc" function.
> What does it say if you enter 'limit' at your commandline? Perhaps
> your stacksize limit is set too low and the bison code isn't doing
> enough error checking to handle it elegantly.
>
(%> limit stacksize 81920 kbytes)
and now it works! THANKS!!
Do you know how can I increase stack size from C code? I can use
a "system" call, but I would prefer it to do it using some function.
/Alvaro
Alvaro Puente Guest



Reply With Quote

