Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3C4C4E3F.A13D603F@windriver.com>
Date: Mon, 21 Jan 2002 18:22:07 +0100
From: Benoit Perrin <benoit.perrin@windriver.com>
Organization: Wind River Systems
X-Mailer: Mozilla 4.78 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Cygwin 1.3.8: bison failed with new dll version
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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/

