[Top][All Lists]

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

Re: Bison 1.28 & SunOS 5.8

From: Hans Aberg
Subject: Re: Bison 1.28 & SunOS 5.8
Date: Wed, 2 May 2001 19:34:55 +0200

At 17:23 +0200 2001/05/02, address@hidden wrote:
>After configuring, making and installing both products, I compile my small
>project and get the executable, how ever as soon as flex&bison start to work
>(inmediately!) it
>exists with the error: Segmentation fault. I've gone through all the mailing
>lists I've seen in Internet reading previous posted messages but I haven't
>my problem there.
>Maybe my .l and .y files are not well programmed, but they work perfectly for
>lex & yacc (with the prob that lex cannot handle it and its internal table is
>out of memory while
>processing my .l).

Segmentation fault means that you have some problems with the memory
allocations in your program, but it could be anything (like trying to write
in an unallocated space or running out of stack).

So you need to post a small example of your code, if you should expect
anybody here helping you: Checking others code for memory allocation
problems is not one of the more exiting things on this planet.

One way to pin down the problem might be using a good (visual) debugger
which can catch the it. It may stop at a point where the memory allocation
problem is. From that point on, a clever guess might do the trick.

Another way is to try to make a small example out of your .l and .y files,
and see if the problem persists. If does not, you know the problem is in
the rest, if it persist and is small, you could try post it here. If you
cut down the program in halves, you rather quickly get down to a spot where
it occurs.

  Hans Aberg

reply via email to

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