Subject: Cygwin 1.3.8: bison failed with new dll version
From: Benoit Perrin <[email-masked]>
To: [email-masked]
Date: Mon, 21 Jan 2002 18:22:07 +0100

Hello,

as a "me too" mail, I noted that bison core dumped with this yacc file:

<--->
%{
%}

%token	<val> NUMBER
%token	<str> WORD
%type	<str>	rule
%type	<val>	signed_number

%%

rule:
	WORD		= { $$ = $1; } |
	/* empty */	= { $$ = NULL; };

signed_number:
	NUMBER		= { $$ = $1; } |
	'-' NUMBER	= { $$ = -$2; };

%%
<--->

bison failed only for a command line with the -d option like:

bison -y -d <file>.y

The segmentation fault occured in a malloc, with a desired size of 8 in
my case.

Hope this helps.

Benoit

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/