Peter Jay Salzman said :
> dosemu consistantly segfaults on one of my machines.
> 
> 
> the area of code:
> 
>    (gdb) l 707
>    702     {STRQUOTELESS}          MAY_BEFORME {
>    703                               yylval->s_value = strdup(yytext);
>    704                               EXPRTYPE(yylval->s_value) = TYPE_STRQUOTELESS;
>    705                               return(STRING); }
> [snip]
Hi,

I encounter the same bug using gcc 3.2.2, bison 1.75 and flex 2.5.4

I found that parser.c calls yylex without arguments, whereas lex.yy.c defines 
yylex to be of type yylex(YYTYPE *yylval).

That means that bison does not build a pure parser, although YYPURE 
was defined.

I do not know exactly whether it is gcc or bison that is behaving wrong,
but inserting the line : 

%pure-parser

in the file parser.y.in (after the line: %start lines, for example)
was sufficient for me to solve this problem.

Regards,
Emmanuel
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to