Thank you very much for your efforts. You helped me a lot.
> However, the gcc 3.x builds did trigger lots of valgrind errors (over
> ten million!); so there's definitely serious problems with the code
> (just nothing that causes a fatal crash).
I knew about the errors but I didn't talk about it,
Jonas Stahl wrote:
>> Try running the application under valgrind or some other memory debugger.
>> If possible also try slightly different releases of gcc (4.1.1 or 4.2);
>> there's an outside chance that it's a bug in gcc.
>
> Thanks. I think this isolated the fault a bit more.
> I tried debuggin
El jue, 15-11-2007 a las 21:30 +0100, [EMAIL PROTECTED] escribió:
> I will stick my neck out and say `YYLEX' is a macro, because I think I
> was
> overly cautious before. I don't know anything else it could be.
> (Just my
> opinion, but I loathe the term "method". Why they had to invent a new
>
>> Try running the application under valgrind or some other memory
>> debugger.
>> If possible also try slightly different releases of gcc (4.1.1 or 4.2);
>> there's an outside chance that it's a bug in gcc.
>
> Thanks. I think this isolated the fault a bit more.
> I tried debugging under valgrind.
> Try running the application under valgrind or some other memory debugger.
> If possible also try slightly different releases of gcc (4.1.1 or 4.2);
> there's an outside chance that it's a bug in gcc.
Thanks. I think this isolated the fault a bit more.
I tried debugging under valgrind. The result
Jonas Stahl wrote:
> In the version with segmentation fault (gcc 4.1.2):
>
> 33117 if (yychar == YYEMPTY)
> (gdb)
> 33120 yychar = YYLEX;
> (gdb)
>
> Program received signal SIGSEGV, Segmentation fault.
> yyparse () at fullParser.tab.c:33120
> 33120 yychar = YYLEX;
>
>
> I
> The result of debugging in short:
> In the version with segmentation fault (gcc 4.1.2):
>
> 33117 if (yychar == YYEMPTY)
> (gdb)
> 33120 yychar = YYLEX;
> (gdb)
>
> Program received signal SIGSEGV, Segmentation fault.
> yyparse () at fullParser.tab.c:33120
> 33120 yychar = YYL
> Well, is the use of bison/flex required? My initial reaction when I saw
> the code was "Why the hell is he writing a parser for a very specific
> XML file format with bison/flex?". Unless the use of bison/flex is
> required, I would strongly recommend using libxml2 to parse the XML
> (heck, given
Ok, first thanks for the replies. I already debugged it with gdb before
writing to the mailing list. Cause I'm not very used to debugging C Code it
didn't help me very much.
The result of debugging in short:
The debugger jumps from main() to yyparse() and the error occurs at the
first time the c