YACC-LEX parsing overflow

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Re: YACC-LEX parsing overflow

    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.

    -- ced




    --
    Chuck Dillon
    Senior Software Engineer
    NimbleGen Systems Inc.

    Chuck Dillon Guest

  2. Similar Questions and Discussions

    1. yacc
      What package on AIX 4.3.3 contains yacc ?
    2. Overflow
      Hi All I am getting this error. Microsoft VBScript runtime (0x800A0006) Overflow: '' I am using if and case statments a lot, at certain...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > "Chuck Dillon" <cdillon@nimblegen.com> wrote in message
    > news:3F0D7FDB.1080807@nimblegen.com...
    > > 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.
    > 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.
    Maybe your grammar runs in some sort of (near) endless-recursion.
    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

  4. #3

    Default Re: YACC-LEX parsing overflow


    "Chuck Dillon" <cdillon@nimblegen.com> wrote in message
    news:3F0DD192.3030504@nimblegen.com...
    > 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 showed a stacksize of 8192 kbytes. I increased it to 81920 kbytes
    (%> 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139