[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Segmentation Fault in yyparse() method
From: |
Jonas Stahl |
Subject: |
Segmentation Fault in yyparse() method |
Date: |
Tue, 13 Nov 2007 17:07:35 +0100 |
Hi,
I'm a german student (so sorry for my bad english).
I'm working at my bachelor thesis and I'm having a little problem with
Bison/Flex.
I'm using a Bison/Flex application, that was written by another student for
his bachelor thesis. The application runs without any trouble, if it is
compiled with gcc version 3.3.6, but with every other gcc version (e.g.
4.1.2) I tested, it throws a "segmentation fault" error.
I debugged it and it crashes in the bison generated yyparse() method in the
yybackup section.
/* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
yychar = YYLEX; <---
}
In the gcc-3.3.6 compiled version it jumps into the yylex() method and runs
through without complaints.
Because I don't really understand exactly what happens in this piece of
code, I have no idea what is going wrong.
Does Anybody have a good hint for me?
More Detailed information in the Attached Readme file.
The File is quite big. The bison generated code is about 39000 lines of
code(The "Segmentation fault is in line 33120)
I worked with:
bison 2.3
flex 2.5.33
gcc 4.1.2
Jonas Stahl
fullParser.rar
Description: Binary data
- Segmentation Fault in yyparse() method,
Jonas Stahl <=
- Re: Segmentation Fault in yyparse() method, Claudio Saavedra, 2007/11/13
- Re: Segmentation Fault in yyparse() method, lfinsto1, 2007/11/13
- AW: Segmentation Fault in yyparse() method, Jonas Stahl, 2007/11/14
- Re: AW: Segmentation Fault in yyparse() method, lfinsto1, 2007/11/14
- Re: AW: Segmentation Fault in yyparse() method, Tim Van Holder, 2007/11/15
- AW: AW: Segmentation Fault in yyparse() method, Jonas Stahl, 2007/11/15
- Re: AW: AW: Segmentation Fault in yyparse() method, lfinsto1, 2007/11/15
- Re: AW: AW: Segmentation Fault in yyparse() method, Claudio Saavedra, 2007/11/15
- Re: AW: AW: Segmentation Fault in yyparse() method, Tim Van Holder, 2007/11/16
- AW: AW: AW: Segmentation Fault in yyparse() method, Jonas Stahl, 2007/11/16