From murthy@deccanetworld.com Sat Aug 03 08:49:01 2002
Received: from mail.deccanetworld.com ([203.196.146.50])
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17ayL5-000397-00; Sat, 03 Aug 2002 08:49:00 -0400
Received: (from root@localhost)
	by mail.deccanetworld.com (8.11.0/8.11.0) id g73D8e627420;
	Sat, 3 Aug 2002 18:38:40 +0530
Received: from Murthy (bgkanth.software [192.168.1.66])
	by mail.deccanetworld.com (8.11.0/8.11.0) with SMTP id g73D8dj27378;
	Sat, 3 Aug 2002 18:38:40 +0530
From: "G S Murthy" <murthy@deccanetworld.com>
To: <help-bison@gnu.org>
Cc: <bug-bison@gnu.org>
Subject: Query
Date: Sat, 3 Aug 2002 18:28:05 +0530
Message-ID: <00d301c23aed$68845b80$4201a8c0@Murthy>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_00D4_01C23B1B.823C9780"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

This is a multi-part message in MIME format.

------=_NextPart_000_00D4_01C23B1B.823C9780
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

Dear friend,

I have been working with the Bison and Flex in the Win NT environment
and now, am required to port the same Y and the I files for the Bison and
Flex
respectively in the Unix (Solaris) environment.

I use some c++ statements like cls * name = new cls (..,..,..) etc in the
action part
of my Y file..
Is it possible for me to just port the same Flex generated lex.yy.c and the
Bison generated
tab.cpp file in Unix too (Ofcourse with Unix Flex and Bison). If yes! Do I
use some options to do so.

I am facing some problems here. It does not work.

Can you pls help me out with a solution.


Thanks and Regards,
Murthy




********************************DISCLAIMER**********************************

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege of Deccanet Designs Ltd.
If you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that
you are strictly prohibited from retaining, using, copying, altering or
disclosing the contents of this message.

****************************************************************************
------=_NextPart_000_00D4_01C23B1B.823C9780
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>Dear=20
friend,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>I have =
been working=20
with the Bison and Flex in the Win NT environment </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>and =
now,=20
a</SPAN></FONT><FONT face=3DArial size=3D2><SPAN =
class=3D917475012-03082002>m required=20
to port the same Y and the I files for the Bison and Flex =
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D917475012-03082002>respectively in the=20
Unix (Solaris) environment.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>I use =
some c++=20
statements like cls * name =3D new cls (..,..,..) etc in the action=20
part</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>of my =
Y=20
file..</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>Is it =
possible for=20
me to just port the same Flex generated lex.yy.c and the Bison=20
generated</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D917475012-03082002>tab.cpp file=20
</SPAN></FONT><FONT face=3DArial size=3D2><SPAN =
class=3D917475012-03082002>in Unix too=20
(Ofcourse with Unix Flex and Bison). If yes! Do I use some options to do =

so.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>I am =
facing some=20
problems here. It does not work. </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>Can =
you pls help me=20
out with a solution.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D917475012-03082002>Thanks =
and=20
Regards,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002>Murthy</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D917475012-03082002></SPAN></FONT>&nbsp;</DIV>
<PRE>

********************************DISCLAIMER**********************************

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege of Deccanet Designs Ltd.
If you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that
you are strictly prohibited from retaining, using, copying, altering or
disclosing the contents of this message.

****************************************************************************
</pre>
</BODY></HTML>

------=_NextPart_000_00D4_01C23B1B.823C9780--



From haberg@matematik.su.se Sat Aug 03 09:14:19 2002
Received: from vir.tninet.se ([195.100.94.108] helo=smtp.tninet.se)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17ayja-0005hq-00; Sat, 03 Aug 2002 09:14:18 -0400
Received: from  [195.100.226.128] (du128-226.ppp.su-anst.tninet.se [195.100.226.128])
 by vir.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP
 id 495016.380455.1028.0s8029556vir
 ; Sat, 03 Aug 2002 15:14:15 +0200
X-Sender: haberg@pop.matematik.su.se
Message-Id: <v03110708b97185402d90@[195.100.226.128]>
In-Reply-To: <00d301c23aed$68845b80$4201a8c0@Murthy>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sat, 3 Aug 2002 15:10:20 +0200
To: "G S Murthy" <murthy@deccanetworld.com>
From: Hans Aberg <haberg@matematik.su.se>
Subject: Re: Query
Cc: <help-bison@gnu.org>, <bug-bison@gnu.org>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

It is a bad idea to have the kind of disclaimers as below attached to your
letters, because then people will not want to reply.

***************** Copyright notice **************************
* Anyone reading this letter must send the originator $500. *
*************************************************************

Flex questions should be directed to:
  Help-flex mailing list
  Help-flex@gnu.org
  http://mail.gnu.org/mailman/listinfo/help-flex

At 18:28 +0530 2002/08/03, G S Murthy wrote:
>    Dear  friend,   I have been working  with the Bison and Flex in the
>Win NT environment  and now,  am required  to port the same Y and the I
>files for the Bison and Flex  respectively in the  Unix (Solaris)
>environment.   I use some c++  statements like cls * name = new cls
>(..,..,..) etc in the action  part of my Y  file.. Is it possible for  me
>to just port the same Flex generated lex.yy.c and the Bison  generated
>tab.cpp file  in Unix too  (Ofcourse with Unix Flex and Bison). If yes! Do
>I use some options to do  so.   I am facing some  problems here. It does
>not work.    Can you pls help me  out with a solution.     Thanks and
>Regards, Murthy    
>********************************DISCLAIMER**********************************
>This e-mail and any attachment is for authorised use by the intended
>recipient(s) only. It may contain proprietary material, confidential
>information and/or be subject to legal privilege of Deccanet Designs Ltd.
>If you have received this message in error, please notify the originator
>immediately. If you are not the intended recipient, you are notified that
>you are strictly prohibited from retaining, using, copying, altering or
>disclosing the contents of this message.
>****************************************************************************
>





From haberg@matematik.su.se Wed Aug 07 08:30:54 2002
Received: from lennier.tninet.se ([195.100.94.105] helo=smtp.tninet.se)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17cPxl-000743-00
	for <bug-bison@gnu.org>; Wed, 07 Aug 2002 08:30:54 -0400
Received: from  [195.100.226.128] (du128-226.ppp.su-anst.tninet.se [195.100.226.128])
 by lennier.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP
 id 871575.723451.1028.1s5020605lennier for <bug-bison@gnu.org>
 ; Wed, 07 Aug 2002 14:30:51 +0200
X-Sender: haberg@pop.matematik.su.se (Unverified)
Message-Id: <v03110700b976be2ba115@[195.100.226.128]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 7 Aug 2002 14:29:34 +0200
To: Bison Bugs <bug-bison@gnu.org>
From: Hans Aberg <haberg@matematik.su.se>
Subject: Manual bugs?
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Isn't the manual (version 1.49 & 1.35, section 9) muddled with respect to
the description of options
  --name-prefix=<filename>
  --verbose
Does the first option pretend that the second one was invoked? And which
option generates verbose error messages?

(And %verbose does not seem to be mentioned in the Appendix A summary --
but I think I pointed this out before.)

Also, if I write rules without a terminating ";", Bison 1.35 issues a
warning. Should the manual not indicate a way to turn those warnings off?
Or was the decision that the Bison not-";" phased out.

-- Perhaps the Bison manual should add have a section on incompatibilities
and workarounds, like:
  The current Bison version supports warnings when rules are not terminated
by ";" as in [example]. In the future, support for non-";" terminated rules
will be deprecated, so it is prudent to terminate all rules by ";".

This idea comes from the C++ standard, which has an Appendix C on
incompatibilities, but which fails to indicate workarounds.

  Hans Aberg




From eggert@twinsun.com Mon Aug 12 14:35:18 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eK2A-0000j3-00
	for bug-bison@gnu.org; Mon, 12 Aug 2002 14:35:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eK28-0000id-00
	for bug-bison@gnu.org; Mon, 12 Aug 2002 14:35:17 -0400
Received: from alcor.twinsun.com ([198.147.65.9])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eK22-0000gw-00; Mon, 12 Aug 2002 14:35:10 -0400
Received: from sic.twinsun.com ([192.54.239.17]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g7CIZ6Ge009864; Mon, 12 Aug 2002 11:35:06 -0700 (PDT)
Received: (from eggert@localhost)
	by sic.twinsun.com (8.11.6+Sun/8.11.6) id g7CIZ6Q08705;
	Mon, 12 Aug 2002 11:35:06 -0700 (PDT)
Date: Mon, 12 Aug 2002 11:35:06 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200208121835.g7CIZ6Q08705@sic.twinsun.com>
To: bug-bison@gnu.org, help-bison@gnu.org, bug-gnu-utils@gnu.org
CC: vincent@debian.org
Subject: Bison 1.49b released
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

The Bison team is happy to present its 1.49b test release.  Akim
Demaille has done a yeoman's job in preparing this new version, and we
feel that we're getting much closer to an official release.  Also,
we'd like to draw your attention to the new GLR parser-generator
contributed by Paul Hilfinger.

Here are the URLs:

ftp://alpha.gnu.org/gnu/bison/bison-1.49b.tar.gz
ftp://alpha.gnu.org/gnu/bison/bison-1.49b.tar.bz2

Here are MD5 and SHA1 checksums:

b627ff22a6dac3028d0f274f77133fc3  bison-1.49b.tar.bz2
8023b9b02ed8dc00e8658045e57f28de  bison-1.49b.tar.gz
f143bde9c18d96ef76d4c1e4dbb766a22d8fd452  bison-1.49b.tar.bz2
9f560d6e56fc4916ad8065af7a2c110fbdd5d2f7  bison-1.49b.tar.gz

Here are the new entries in version 1.49b's NEWS file:

* GLR parsing
  The declaration
     %glr-parser
  causes Bison to produce a Generalized LR (GLR) parser, capable of handling
  almost any context-free grammar, ambiguous or not.  The new declarations
  %dprec and %merge on grammar rules allow parse-time resolution of
  ambiguities.  Contributed by Paul Hilfinger.

* Output Directory
  When not in Yacc compatibility mode, when the output file was not
  specified, runnning `bison foo/bar.y' created `foo/bar.c'.  It
  now creates `bar.c'.

* Verbose error messages
  They no longer report `..., expecting error or...' for state where
  error recovery is possible.

* End token
  Defaults to `$end' instead of `$'.

* Error recovery now conforms to documentation and to POSIX
  When a Bison-generated parser encounters a syntax error, it now pops
  the stack until it finds a state that allows shifting the error
  token.  Formerly, it popped the stack until it found a state that
  allowed some non-error action other than a default reduction on the
  error token.  The new behavior has long been the documented behavior,
  and has long been required by POSIX.  For more details, please see
  <http://mail.gnu.org/pipermail/bug-bison/2002-May/001452.html>.

* Traces
  Popped tokens and nonterminals are now reported.

* Useless rules, useless nonterminals
  They are now reported, as a warning, with their locations.

* Rules never reduced
  Rules that can never be reduced because of conflicts are now
  reported.

* Default locations
  By an accident of design, the default computation of @$ was
  performed after another default computation was performed: @$ = @1.
  The latter is now removed: YYLLOC_DEFAULT is fully responsible of
  the computation of @$.

* Semantic parser
  This old option, which has been broken for ages, is removed.

* New translations
  Brazilian Portuguese, thanks to Alexandre Folle de Menezes.
  Croatian, thanks to Denis Lackovic.

* Incorrect token definitions
  When fed with `%token 'a' "A"', Bison used to output `#define 'a' 65'.

* Token definitions as enums
  Tokens are output both as the traditional #define's, and, provided
  the compiler supports ANSI C or is a C++ compiler, as enums.
  This helps debuggers producing symbols instead of values.

* Reports
  In addition to --verbose, bison supports --report=THINGS, which
  produces additional information:
  - itemset
    complete the core item sets with their closure
  - lookahead
    explicitly associate lookaheads to items
  - solved
    describe shift/reduce conflicts solving.
    Bison used to systematically output this information on top of
    the report.  Solved conflicts are now attached to their states.

* Type clashes
  Previous versions don't complain when there is a type clash on
  the default action if the rule has a mid-rule action, such as in:

      %type <foo> bar
      %%
      bar: '0' {} '0';

  This is fixed.

* GNU M4 is now required when using Bison.



From hagai_sela@yahoo.com Mon Aug 19 08:25:57 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17glbZ-0005sh-00
	for bug-bison@gnu.org; Mon, 19 Aug 2002 08:25:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17glbV-0005nH-00
	for bug-bison@gnu.org; Mon, 19 Aug 2002 08:25:56 -0400
Received: from web11504.mail.yahoo.com ([216.136.172.36])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17glbU-0005l5-00
	for bug-bison@gnu.org; Mon, 19 Aug 2002 08:25:52 -0400
Message-ID: <20020819122551.71232.qmail@web11504.mail.yahoo.com>
Received: from [62.219.173.210] by web11504.mail.yahoo.com via HTTP; Mon, 19 Aug 2002 05:25:51 PDT
Date: Mon, 19 Aug 2002 05:25:51 -0700 (PDT)
From: Hagai Sela <hagai_sela@yahoo.com>
Subject: assertion failure
To: bug-bison@gnu.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-1423636259-1029759951=:71117"
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

--0-1423636259-1029759951=:71117
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

The attached file produces the following error
message:
Assertion failed: actions_dumped == 1, file output.c,
line 1236

abnormal program termination

The command line was:
bison -v -d html.ypp -o html.tab.cpp

The Bison version is 1.35. I am running it on windows
2000 Professional.

Thanks,
Hagai Sela.






__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--0-1423636259-1029759951=:71117
Content-Type: text/plain; name="html.ypp"
Content-Description: html.ypp
Content-Disposition: inline; filename="html.ypp"

%{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void yyerror(const char *msg);
int yylex(void);

#define FALSE		(0)
#define TRUE		(!FALSE)
#include "types.h"

int yydebug = 1;
int g_InTag = FALSE;
Att_Type gAtt;

%}

%pure_parser

%union
{
	char* pChar;
	Att_Type Att;
}

%token <pChar> STRING TAG_START TAG_END EQUALS
%type <pChar> attribute_value 
%type <Att> attribute

%%
	document:	field_list;

	field_list:	field_list field
				|;


	field:	tag

			| STRING
			{
				int i=1;
			};



	tag:	TAG_START STRING attribute_list TAG_END
		{
			/* if the list has src, find it */
			
		}
		|	TAG_START error
		{
			/* in case of error read characters until tag end */

			while (yychar != TAG_END)
				yychar = yylex();

			yychar = yylex();
		};

	attribute_list:	attribute_list attribute
	|;

	attribute:	STRING attribute_value	
		{
			$$.Name = strdup($1);
			$$.Val = strdup($2);
		};

	attribute_value:	EQUALS STRING
		{
			$$ = strdup($2);
		}
		|
		
		{
			$$ = NULL;
		};

%%



int main(int argc, char** argv)
{
	extern FILE* yyin;

	yyin = fopen(argv[1], "r");

	/* If we could not open the input file, print an error and exit.*/
	if (yyin == NULL)
	{
		fprintf(stderr, "Could not open file %s. aborting.\n", argv[1]);
		exit(-1);
	}

	if (yyparse())
		fprintf(stderr, "Parse failed.\n");
	else
	{
	}
	return 0;
}

--0-1423636259-1029759951=:71117--



From return@xonair.com Sat Aug 24 16:12:49 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ihH1-0006vZ-00
	for bug-bison@gnu.org; Sat, 24 Aug 2002 16:12:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ihGk-0006mE-00
	for bug-bison@gnu.org; Sat, 24 Aug 2002 16:12:31 -0400
Received: from gnuftp.gnu.org ([199.232.41.6])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ihGk-0006m6-00
	for bug-bison@gnu.org; Sat, 24 Aug 2002 16:12:26 -0400
Received: from w243.z206111095.lax-ca.dsl.cnc.net ([206.111.95.243] helo=xonair.com)
	by gnuftp.gnu.org with smtp (Exim 4.10)
	id 17ihGk-00033Z-00
	for bug-bison@gnu.org; Sat, 24 Aug 2002 16:12:26 -0400
Content-Type: text/html; charset="US-ASCII"
Date: Sat, 24 Aug 2002 13:12:25 -0700
To: bug-bison@gnu.org
From: return@xonair.com
X-Mailer: Version 5.0
Subject: X on Air Magazine 34:  Sale !   $14.50  D-Mode , Red Hot, AV Queen
Organization: return@xonair.com
Message-Id: <E17ihGk-00033Z-00@gnuftp.gnu.org>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

<html>
<head>
<title>Xonair.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#990000">
<p><b><font size="2"><a href="http://www.xonair.com/home_jp.cfm"><b><font 
color=#cc3300 size=4>www.Xonair.com<br>
  <br>
  </font></b></a></font></b><a href="http://www.xonair.com/home_jp.cfm"><img src="http://ds3.imageservers.com/vs/www.xonair.com/magazine/graphic_btn_34_new.gif" border="0"></a></p>
<p><font size="2" color="#0000FF"><b>注意！</b><br>
  このページは１８歳未満の方の閲覧が禁止されているアダルト画像・表現を含んでおります。<br>
  １８歳以下の方、または成人用画像や表現に相応しくないと思われる方は</font><b><font size="2"><a href="http://www.msn.co.jp/home.htm"><font color="#0000FF"><b>こちら</b></font></a></font></b><font size="2" color="#0000FF">からご退場ください。</font></p>
<p> 
<p> <font size="2">注 ) 現 金 / 国 際 為 替 で の 購 入 希 望 の 方 は 、 週 末 中 に 連 絡 を メ ー ル 又 
  は フ ァ ッ ク ス に て お 願 い し ま す 。 セ ー ル 商 品 は 確 保 し て お か な い と、在 庫 が 売 り 切 れ セ 
  ー ル 価 格 で は 販 売 で き な く な り ま す 。 お 早 目 に 購 入 さ れ る こ と を お 勧 め し ま す 。</font>
<p>
<p><font size="2">このメールを受け取りたくない場合は、<a href="mailto:remove@xonair.com">remove@xonair.com</a> 
  まで件名に 『remove』と書いてお送り下さい。</font></p>
<p><b><font size="2"><a href="http://www.xonair.com/home_jp.cfm"><b><font 
color=#cc3300 size=4>www.Xonair.com</font></b></a></font></b></p>
</body>
</html>




From miko@TTI-TELECOM.COM Sun Aug 25 05:09:45 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17itOy-0002Bf-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 05:09:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17itOd-0002A2-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 05:09:44 -0400
Received: from [212.150.211.163] (helo=exchange.tti-telecom.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17itOd-00029l-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 05:09:23 -0400
Received: by exchange.tti-telecom.com with Internet Mail Service (5.5.2653.19)
	id <RSKRBWZS>; Sun, 25 Aug 2002 12:11:34 +0200
Message-ID: <8AABB7C1CB60BD4CB07A1976035C429D4C50C9@exchange.tti-telecom.com>
From: Miko Nahum <miko@TTI-TELECOM.COM>
To: "'bug-bison@gnu.org'" <bug-bison@gnu.org>
Subject: "parser stack overflow" in bison-1.35, bad "#if" in bison.simple
Date: Sun, 25 Aug 2002 12:11:31 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="windows-1255"
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Hi All,

Here is a description of a problem: I am using bison to implement an
interpreter.
This is a pure_parser combined with flex and I compile everything in C++
compiler
as part of a class. This is of course in multi-platform env'. (Win, HP,
Sun.,,,).

Under Windows currently use bison-1.28 whereas under all Unix platforms
using bison-1.35. Recently, UNDER UNIX, when run the parser on large scripts
with very long 'if statement' with many 'else if', got from bison "parser
stack overflow".
Under Windows same script does not make such problem.

After dig in to the details, found this in
"/usr/local/share/bison/bison.simple", line 72:

#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
         || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

I'm not define yyoverflow,  so "! defined (yyoverflow)" put true.
In addition, using C++, so "(! defined (__cplusplus)" put false.
YYSTYPE_IS_TRIVIAL is true because I do have YYSTYPE (the "%union").
However, I do NOT have any location stuff, YYLTYPE is not defined, so
we got YYLTYPE_IS_TRIVIAL = false.

The result, stack enlargement code does not activated when needed and
all I have is the YYINITDEPTH which is 200 (which isnot enough).

To workaround this, I put in the following in the ".y:" file to satisfy the
condition:
#define YYLTYPE_IS_TRIVIAL      1

What should I do to have stack relocation code work if I working in C++,
using %union and not use location info ?


Regards,
Miko




From haberg@matematik.su.se Sun Aug 25 07:51:20 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ivvM-0006Ej-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 07:51:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ivvJ-0006DW-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 07:51:19 -0400
Received: from lennier.tninet.se ([195.100.94.105] helo=smtp.tninet.se)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ivvI-0006Bz-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 07:51:17 -0400
Received: from  [195.100.226.128] (du128-226.ppp.su-anst.tninet.se [195.100.226.128])
 by lennier.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP
 id 706803.276272.1030.1s11476404lennier
 ; Sun, 25 Aug 2002 13:51:12 +0200
X-Sender: haberg@pop.matematik.su.se
Message-Id: <v03110701b98e6fa2d49b@[195.100.226.130]>
In-Reply-To: 
 <8AABB7C1CB60BD4CB07A1976035C429D4C50C9@exchange.tti-telecom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sun, 25 Aug 2002 13:38:21 +0200
To: Miko Nahum <miko@TTI-TELECOM.COM>
From: Hans Aberg <haberg@matematik.su.se>
Subject: Re: "parser stack overflow" in bison-1.35, bad "#if" in
 bison.simple
Cc: "'bug-bison@gnu.org'" <bug-bison@gnu.org>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

At 12:11 +0200 2002/08/25, Miko Nahum wrote:
>Hi All,

Hi yourself, :-)

>Here is a description of a problem: I am using bison to implement an
>interpreter.
>This is a pure_parser combined with flex and I compile everything in C++
>compiler
>as part of a class. This is of course in multi-platform env'. (Win, HP,
>Sun.,,,).
>
>Under Windows currently use bison-1.28

The latest news about this version is probably that some Druids used it at
Stonehenge. :-)

> whereas under all Unix platforms
>using bison-1.35.

And this one is not supported either, I think.

>The result, stack enlargement code does not activated when needed and
>all I have is the YYINITDEPTH which is 200 (which isnot enough).

This is only one problem with older version under C++; another is that the
C stack enlargement does not invoke the C++ copy constructors as it should.
Therefore, the proper thing is to use a C++ container.

There is a Bison beta that does just that:
    ftp://alpha.gnu.org/gnu/bison/  (bison-1.49x)
Try this one; compile with option -S c++.bison (or was it bison.c++?) or
something like that (to choose the right skeleton file.

  Hans Aberg





From miko@TTI-TELECOM.COM Sun Aug 25 08:48:20 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17iwoW-0006dP-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 08:48:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17iwoT-0006cx-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 08:48:19 -0400
Received: from [212.150.211.163] (helo=exchange.tti-telecom.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17iwoT-0006cl-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 08:48:17 -0400
Received: by exchange.tti-telecom.com with Internet Mail Service (5.5.2653.19)
	id <RSKRBX9H>; Sun, 25 Aug 2002 15:50:35 +0200
Message-ID: <8AABB7C1CB60BD4CB07A1976035C429D4C50CE@exchange.tti-telecom.com>
From: Miko Nahum <miko@TTI-TELECOM.COM>
To: 'Hans Aberg' <haberg@matematik.su.se>
Cc: "'bug-bison@gnu.org'" <bug-bison@gnu.org>
Subject: RE: "parser stack overflow" in bison-1.35, bad "#if" in bison.sim
	ple
Date: Sun, 25 Aug 2002 15:50:35 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="windows-1255"
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

I knew that 1.28 is old. However, 1.35 is the last one
from GNU site (http://ftp.gnu.org/) whereas 1.49x is at alpha
stage (not even beta). So what version IS supported ?

OK, C stack enlargement does not invoke the C++ copy constructors as it
should it, but look at the condition in "bison.simple":

#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
         || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

That is, you have either:
	NOT C++ or (YYLTYPE and YYSTYPE)

So if someone is using the "%union" and location, it will cause the C stack
enralgement to be used - EVEN WHEN COMPILED WITH C++ compiler, right ?? So
in such case C++ copy constructors does NOT invoked. What than ??

For the meantime, till I shift to 1.49++ I'll have to workaround it as I
did.


Regards,
Miko

-----Original Message-----
From: Hans Aberg [mailto:haberg@matematik.su.se]
Sent: Sunday, August 25, 2002 1:38 PM
To: Miko Nahum
Cc: 'bug-bison@gnu.org'
Subject: Re: "parser stack overflow" in bison-1.35, bad "#if" in
bison.simple


At 12:11 +0200 2002/08/25, Miko Nahum wrote:
>Hi All,

Hi yourself, :-)

>Here is a description of a problem: I am using bison to implement an
>interpreter.
>This is a pure_parser combined with flex and I compile everything in C++
>compiler
>as part of a class. This is of course in multi-platform env'. (Win, HP,
>Sun.,,,).
>
>Under Windows currently use bison-1.28

The latest news about this version is probably that some Druids used it at
Stonehenge. :-)

> whereas under all Unix platforms
>using bison-1.35.

And this one is not supported either, I think.

>The result, stack enlargement code does not activated when needed and
>all I have is the YYINITDEPTH which is 200 (which isnot enough).

This is only one problem with older version under C++; another is that the
C stack enlargement does not invoke the C++ copy constructors as it should.
Therefore, the proper thing is to use a C++ container.

There is a Bison beta that does just that:
    ftp://alpha.gnu.org/gnu/bison/  (bison-1.49x)
Try this one; compile with option -S c++.bison (or was it bison.c++?) or
something like that (to choose the right skeleton file.

  Hans Aberg




From haberg@matematik.su.se Sun Aug 25 10:18:18 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17iyDa-0008I6-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 10:18:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17iyDY-0008Hu-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 10:18:17 -0400
Received: from lennier.tninet.se ([195.100.94.105] helo=smtp.tninet.se)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17iyDX-0008Hp-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 10:18:15 -0400
Received: from  [195.100.226.133] (du133-226.ppp.su-anst.tninet.se [195.100.226.133])
 by lennier.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP
 id 246469.285093.1030.0s11871411lennier
 ; Sun, 25 Aug 2002 16:18:13 +0200
X-Sender: haberg@pop.matematik.su.se
Message-Id: <v03110700b98e96bf562a@[195.100.226.128]>
In-Reply-To: 
 <8AABB7C1CB60BD4CB07A1976035C429D4C50CE@exchange.tti-telecom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sun, 25 Aug 2002 16:18:05 +0200
To: Miko Nahum <miko@TTI-TELECOM.COM>
From: Hans Aberg <haberg@matematik.su.se>
Subject: RE: "parser stack overflow" in bison-1.35, bad "#if" in bison.sim
 	ple
Cc: "'bug-bison@gnu.org'" <bug-bison@gnu.org>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

At 15:50 +0200 2002/08/25, Miko Nahum wrote:
>I knew that 1.28 is old. However, 1.35 is the last one
>from GNU site (http://ftp.gnu.org/) whereas 1.49x is at alpha
>stage (not even beta). So what version IS supported ?

I think only the latest beta (I'm not a Bison developer).

>OK, C stack enlargement does not invoke the C++ copy constructors as it
>should it, but look at the condition in "bison.simple":
>
>#if (! defined (yyoverflow) \
>     && (! defined (__cplusplus) \
>         || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
>
>That is, you have either:
>	NOT C++ or (YYLTYPE and YYSTYPE)

That's just some experimental stuff. Earliser verson were never correct
with C++, only compilable.

>So if someone is using the "%union" and location, it will cause the C stack
>enralgement to be used - EVEN WHEN COMPILED WITH C++ compiler, right ?? So
>in such case C++ copy constructors does NOT invoked. What than ??

Unions cannot be used under C++ with types that have nontrival constructors.

>For the meantime, till I shift to 1.49++ I'll have to workaround it as I
>did.

It's not 1.49++, just 1.49x with C/C++ support, depending on which skeleton
file you choose.

  Hans Aberg





From rac@tenzing.org Sun Aug 25 11:21:26 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17izCg-00009A-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 11:21:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17izCe-00008y-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 11:21:25 -0400
Received: from 132bus36.tampabay.rr.com ([24.94.132.36] helo=tenzing.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17izCd-00008t-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 11:21:23 -0400
Received: (from rac@localhost) by tenzing.org (8.11.0/SCO5)
	id g7PFLM510681 for bug-bison@gnu.org; Sun, 25 Aug 2002 11:21:22 -0400 (EDT)
Message-Id: <200208251521.g7PFLM510681@tenzing.org>
From: rac@tenzing.org (Roger Cornelius)
X-Mailer: SCO OpenServer Mail Release 5.0
To: bug-bison@gnu.org
Subject: bison 1.35 build fails on SCO Openserver
Date: Sun, 25 Aug 2002 11:21:22 -0400 (EDT)
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

On SCO Openserver 5.0.6, configure fails during the config.status step
when building bison 1.35.  Here's an edited typescript with the error
message:


Script started on Sun Aug 25 10:46:35 2002
$ ./configure prefix=/u/gnu

[ all the "Checking..." messages deleted ]

configure: creating ./config.status
mkdir: cannot make directory: tests: File exists (error 17)
config.status: error: cannot create directory "tests"
$

script done on Sun Aug 25 10:47:14 2002


The problem is caused by the variable $as_mkdir_p not being exported for
use by config.status.  Unlike what I think is the Linux behavour, mkdir
-p on an existing directory fails on Openserver.  In this circumstance,
$as_mkdir_p is (correctly) set to "false" in the first few lines of
configure.  But $as_mkdir_p is not exported or otherwise made available
for use by config.status, and the above failure occurs.  On systems
where mkdir -p on an existing directory does not fail, I don't believe
this would be an issue.

One fix would be to export the $as_mkdir_p variable in configure.
Another would be to write the assignment to config.status when it is
created.  Here is a brief patch to configure for the former:


*** configure.old	Mon Mar 25 04:37:52 2002
--- configure	Sun Aug 25 11:18:50 2002
***************
*** 14,19 ****
--- 14,20 ----
    as_expr=false
  fi
  
+ export as_mkdir_p
  if mkdir -p . 2>/dev/null; then
    as_mkdir_p=:
  else



From haberg@matematik.su.se Sun Aug 25 19:18:43 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j6eZ-0006ve-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 19:18:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j6eX-0006vR-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 19:18:42 -0400
Received: from lennier.tninet.se ([195.100.94.105] helo=smtp.tninet.se)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j6eW-0006vM-00
	for bug-bison@gnu.org; Sun, 25 Aug 2002 19:18:41 -0400
Received: from  [195.100.226.128] (du128-226.ppp.su-anst.tninet.se [195.100.226.128])
 by lennier.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP
 id 622095.317505.1030.0s12037496lennier
 ; Mon, 26 Aug 2002 01:18:25 +0200
X-Sender: haberg@pop.matematik.su.se
Message-Id: <v03110700b98f06ee51c1@[195.100.226.133]>
In-Reply-To: <200208251521.g7PFLM510681@tenzing.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 26 Aug 2002 00:14:35 +0200
To: rac@tenzing.org (Roger Cornelius)
From: Hans Aberg <haberg@matematik.su.se>
Subject: Re: bison 1.35 build fails on SCO Openserver
Cc: bug-bison@gnu.org
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

At 11:21 -0400 2002/08/25, Roger Cornelius wrote:
>On SCO Openserver 5.0.6, configure fails during the config.status step
>when building bison 1.35.

I think this version is no longer developed (I am not a Bison developer
though). So I think you should try out the latest Bison beta:
    ftp://alpha.gnu.org/gnu/bison/  (bison-1.49x.tar.gz)
And then report back here if the problem persists.

  Hans Aberg





From kladit@t-online.de Mon Aug 26 10:56:47 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jLIM-0001lN-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 10:56:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jLGG-0001Xi-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 10:56:40 -0400
Received: from mailout02.sul.t-online.com ([194.25.134.17])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jLGF-0001XO-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 10:54:36 -0400
Received: from fwd00.sul.t-online.de 
	by mailout02.sul.t-online.com with smtp 
	id 17jLGC-0007kj-09; Mon, 26 Aug 2002 16:54:32 +0200
Received: from df1tlpc.local.here (520047166872-0001@[80.131.9.156]) by fwd00.sul.t-online.com
	with esmtp id 17jLFt-0mJenQC; Mon, 26 Aug 2002 16:54:13 +0200
Received: from df1tlpc.local.here (klaus@localhost [127.0.0.1])
	by df1tlpc.local.here (8.12.3/8.12.3) with ESMTP id g7QEs8s9000529
	for <bug-bison@gnu.org>; Mon, 26 Aug 2002 16:54:08 +0200
Received: (from klaus@localhost)
	by df1tlpc.local.here (8.12.3/8.12.1/Submit) id g7QEs7gF000457
	for bug-bison@gnu.org; Mon, 26 Aug 2002 16:54:07 +0200
Date: Mon, 26 Aug 2002 16:54:07 +0200
From: kladit@t-online.de (Klaus Dittrich)
To: bison mailing-list <bug-bison@gnu.org>
Subject: bison-149b torture-test
Message-ID: <20020826145407.GA4133@df1tlpc.local.here>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-Virus-Scanned: by amavisd-milter (http://amavis.org/)
X-Sender: 520047166872-0001@t-dialin.net
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

hppa2.0-hp-hpux10.20 (300Mhz)
gcc-3.1.1

Since half an hour make check of bison-1.49b shows ..

Torture Tests.

61: torture.at:140    ok
62: torture.at:231    ok
63: torture.at:367

How long this test is expected to run, or is that a bug ?

I am not on this mailing list, sp please cc to me.

-- 
Regards Klaus



From rac@tenzing.org Mon Aug 26 11:41:17 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jLzN-0008Es-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 11:41:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jLy9-0007oq-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 11:40:45 -0400
Received: from gnudist.gnu.org ([199.232.41.7])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jLy4-0007gu-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 11:39:52 -0400
Received: from 132bus36.tampabay.rr.com ([24.94.132.36] helo=tenzing.org)
	by gnudist.gnu.org with esmtp (Exim 4.10)
	id 17jKD9-0005pn-00
	for bug-bison@gnu.org; Mon, 26 Aug 2002 09:47:20 -0400
Received: (from rac@localhost) by tenzing.org (8.11.0/SCO5)
	id g7QDfZC28556; Mon, 26 Aug 2002 09:41:35 -0400 (EDT)
Date: Mon, 26 Aug 2002 09:41:35 -0400
From: Roger Cornelius <rac@tenzing.org>
To: Hans Aberg <haberg@matematik.su.se>
Cc: bug-bison@gnu.org
Subject: Re: bison 1.35 build fails on SCO Openserver
Message-ID: <20020826134135.GA28540@tenzing.org>
References: <200208251521.g7PFLM510681@tenzing.org> <v03110700b98f06ee51c1@[195.100.226.133]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <v03110700b98f06ee51c1@[195.100.226.133]>
User-Agent: Mutt/1.4i
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

On Mon Aug 26 00:14, Hans Aberg wrote:
> At 11:21 -0400 2002/08/25, Roger Cornelius wrote:
> >On SCO Openserver 5.0.6, configure fails during the config.status step
> >when building bison 1.35.
> 
> I think this version is no longer developed (I am not a Bison developer
> though). So I think you should try out the latest Bison beta:
>     ftp://alpha.gnu.org/gnu/bison/  (bison-1.49x.tar.gz)
> And then report back here if the problem persists.
> 
>   Hans Aberg

1.35 is the most recent non-alpha version at ftp://ftp.gnu.org/gnu/bison.
I tried 1.49b from ftp://alpha.gnu.org.gnu/bison and the problem as I
reported it is still present.
--
Roger Cornelius        rac@tenzing.org



From akim@lrde.epita.fr Tue Aug 27 06:13:57 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jdMD-0005Oe-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:13:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jdMB-0005OD-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:13:56 -0400
Received: from colt.epita.fr ([62.23.180.27])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jdMA-0005MG-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:13:54 -0400
Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10])
	by colt.epita.fr id g7RAJhp04099
	Tue, 27 Aug 2002 12:19:44 +0200 (MEST)
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id g7R7xEW27733
	Tue, 27 Aug 2002 09:59:14 +0200 (MEST)
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian))
	id 17jbFt-0004II-00; Tue, 27 Aug 2002 09:59:17 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.35 #1 (Debian))
	id 17jbGB-0001FC-00; Tue, 27 Aug 2002 09:59:35 +0200
To: Hagai Sela <hagai_sela@yahoo.com>
Cc: bug-bison@gnu.org
Subject: Re: assertion failure
References: <20020819122551.71232.qmail@web11504.mail.yahoo.com>
From: Akim Demaille <akim@epita.fr>
Date: 27 Aug 2002 09:59:34 +0200
In-Reply-To: <20020819122551.71232.qmail@web11504.mail.yahoo.com>
Message-ID: <mv465xwvijd.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

>>>>> "Hagai" == Hagai Sela <hagai_sela@yahoo.com> writes:

Hagai> The attached file produces the following error message:
Hagai> Assertion failed: actions_dumped == 1, file output.c, line 1236

Hagai> abnormal program termination

Hagai> The command line was: bison -v -d html.ypp -o html.tab.cpp

Hagai> The Bison version is 1.35. I am running it on windows 2000
Hagai> Professional.

Bison did not find the lone `%% action' in bison.simple.  Make sure it
reads the right file, not an old version.



From akim@lrde.epita.fr Tue Aug 27 06:13:57 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jdMD-0005Od-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:13:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jdMB-0005OI-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:13:56 -0400
Received: from colt.epita.fr ([62.23.180.27])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jdMA-0005MH-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:13:54 -0400
Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10])
	by colt.epita.fr id g7RAJhp04096
	Tue, 27 Aug 2002 12:19:43 +0200 (MEST)
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id g7R7uqW27096
	Tue, 27 Aug 2002 09:56:52 +0200 (MEST)
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian))
	id 17jbDb-0004Gr-00; Tue, 27 Aug 2002 09:56:55 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.35 #1 (Debian))
	id 17jbDt-0001Et-00; Tue, 27 Aug 2002 09:57:13 +0200
To: kladit@t-online.de (Klaus Dittrich)
Cc: bison mailing-list <bug-bison@gnu.org>
Subject: Re: bison-149b torture-test
References: <20020826145407.GA4133@df1tlpc.local.here>
From: Akim Demaille <akim@epita.fr>
Date: 27 Aug 2002 09:57:13 +0200
In-Reply-To: <20020826145407.GA4133@df1tlpc.local.here>
Message-ID: <mv4adn8vina.fsf@nostromo.lrde.epita.fr>
Lines: 16
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

| hppa2.0-hp-hpux10.20 (300Mhz)
| gcc-3.1.1
| 
| Since half an hour make check of bison-1.49b shows ..
| 
| Torture Tests.
| 
| 61: torture.at:140    ok
| 62: torture.at:231    ok
| 63: torture.at:367
| 
| How long this test is expected to run, or is that a bug ?

It is very long on memory starved and/or slow machines.  But it should
end some day :)



From akim@lrde.epita.fr Tue Aug 27 06:14:08 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jdMO-0005Ua-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:14:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jdMM-0005RP-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:14:08 -0400
Received: from colt.epita.fr ([62.23.180.27])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jdML-0005Pf-00; Tue, 27 Aug 2002 06:14:05 -0400
Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10])
	by colt.epita.fr id g7RAJsp04157
	Tue, 27 Aug 2002 12:19:54 +0200 (MEST)
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id g7R80qW28112
	Tue, 27 Aug 2002 10:00:55 +0200 (MEST)
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian))
	id 17jbHT-0004JX-00; Tue, 27 Aug 2002 10:00:55 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.35 #1 (Debian))
	id 17jbHk-0001FP-00; Tue, 27 Aug 2002 10:01:12 +0200
To: rac@tenzing.org (Roger Cornelius)
Cc: bug-bison@gnu.org, "Autoconf has no bugs! list" <bug-autoconf@gnu.org>
Subject: Re: bison 1.35 build fails on SCO Openserver
References: <200208251521.g7PFLM510681@tenzing.org>
From: Akim Demaille <akim@epita.fr>
Date: 27 Aug 2002 10:01:12 +0200
In-Reply-To: <200208251521.g7PFLM510681@tenzing.org>
Message-ID: <mv41y8kvign.fsf@nostromo.lrde.epita.fr>
Lines: 50
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

| On SCO Openserver 5.0.6, configure fails during the config.status step
| when building bison 1.35.  Here's an edited typescript with the error
| message:
| 
| 
| Script started on Sun Aug 25 10:46:35 2002
| $ ./configure prefix=/u/gnu
| 
| [ all the "Checking..." messages deleted ]
| 
| configure: creating ./config.status
| mkdir: cannot make directory: tests: File exists (error 17)
| config.status: error: cannot create directory "tests"
| $
| 
| script done on Sun Aug 25 10:47:14 2002
| 
| 
| The problem is caused by the variable $as_mkdir_p not being exported for
| use by config.status.  Unlike what I think is the Linux behavour, mkdir
| -p on an existing directory fails on Openserver.  In this circumstance,
| $as_mkdir_p is (correctly) set to "false" in the first few lines of
| configure.  But $as_mkdir_p is not exported or otherwise made available
| for use by config.status, and the above failure occurs.  On systems
| where mkdir -p on an existing directory does not fail, I don't believe
| this would be an issue.
| 
| One fix would be to export the $as_mkdir_p variable in configure.
| Another would be to write the assignment to config.status when it is
| created.  Here is a brief patch to configure for the former:
| 
| 
| *** configure.old	Mon Mar 25 04:37:52 2002
| --- configure	Sun Aug 25 11:18:50 2002
| ***************
| *** 14,19 ****
| --- 14,20 ----
|     as_expr=false
|   fi
|   
| + export as_mkdir_p
|   if mkdir -p . 2>/dev/null; then
|     as_mkdir_p=:
|   else

Thanks a lot for the report.  It turns out to be an Autoconf bug.  I
leave this in the Autoconf bug mail box.

Thanks!



From gri@netcom.es Tue Aug 27 06:32:19 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jddy-0007ku-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:32:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jdds-0007iq-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:32:16 -0400
Received: from yuha.menta.net ([212.78.128.42])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jddr-0007gU-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 06:32:12 -0400
Received: from gibson.menta.net ([212.78.128.22]) by
          yuha.menta.net (Netscape Messaging Server 4.15) with ESMTP id
          H1HZXG02.PBX for <bug-bison@gnu.org>; Tue, 27 Aug 2002 12:32:04 +0200 
Received: from netcom.es ([62.57.109.127]) by gibson.menta.net
          (Netscape Messaging Server 4.15 gibson Mar 14 2002 21:29:48)
          with ESMTP id H1HZX300.7SP for <bug-bison@gnu.org>; Tue, 27 Aug
          2002 12:31:51 +0200 
Message-ID: <3D6B55A4.3090104@netcom.es>
Date: Tue, 27 Aug 2002 10:34:12 +0000
From: Ignasi Villagrasa <gri@netcom.es>
Organization: gri
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: es-es
MIME-Version: 1.0
To: bug-bison@gnu.org
Subject: Memory leak in bison 1.35
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Hi everyone,

I'm using bison version 1.35 that comes with cygwin package for Windows 
enviroments.

I detect a memory leak in generated C code. Function yyparse loses 
periodically 4K chunks memory.

Because of the unclear generated code, I'd like to know if there's a 
known solution for this problem before getting into the source code.


Thanks in advance, Ignasi Villagrasa.







From tim.van.holder@pandora.be Tue Aug 27 07:37:54 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jefR-0003fF-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 07:37:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jefO-0003Wt-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 07:37:53 -0400
Received: from riker.skynet.be ([195.238.3.89])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jefN-0003VM-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 07:37:49 -0400
Received: from Bender ([194.78.64.238])
	by riker.skynet.be (8.11.6/8.11.6/Skynet-OUT-2.20) with ESMTP id g7RBbcI01846;
	Tue, 27 Aug 2002 13:37:38 +0200 (MET DST)
	(envelope-from <tim.van.holder@pandora.be>)
Subject: Re: Memory leak in bison 1.35
From: Tim Van Holder <tim.van.holder@pandora.be>
To: Ignasi Villagrasa <gri@netcom.es>
Cc: bug-bison@gnu.org
In-Reply-To: <3D6B55A4.3090104@netcom.es>
References: <3D6B55A4.3090104@netcom.es>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 
Date: 27 Aug 2002 13:36:26 +0200
Message-Id: <1030448190.1006.3.camel@bender.falconsoft.be>
Mime-Version: 1.0
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

On Tue, 2002-08-27 at 12:34, Ignasi Villagrasa wrote:
> Hi everyone,
> 
> I'm using bison version 1.35 that comes with cygwin package for Windows 
> enviroments.
> 
> I detect a memory leak in generated C code. Function yyparse loses 
> periodically 4K chunks memory.
> 
> Because of the unclear generated code, I'd like to know if there's a 
> known solution for this problem before getting into the source code.

Are you also using flex?
At startup, flex allocates a buffer that is never freed; it's not really
a memory leak (flex merely has no point at which it can free the buffer
normally, so it relies on the normal 'at end' cleanup), but will be
reported as such by many memory checkers.
It allocates chunks of 16k tho, not 4k.





From akim@lrde.epita.fr Tue Aug 27 10:41:10 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jhWn-0006ZU-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 10:41:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jhWl-0006YO-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 10:41:09 -0400
Received: from colt.epita.fr ([62.23.180.27])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jhWk-0006Y3-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 10:41:06 -0400
Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10])
	by colt.epita.fr id g7REkop05721
	Tue, 27 Aug 2002 16:46:50 +0200 (MEST)
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id g7REHxW24745
	Tue, 27 Aug 2002 16:17:59 +0200 (MEST)
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian))
	id 17jhAj-0008L7-00; Tue, 27 Aug 2002 16:18:21 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.35 #1 (Debian))
	id 17jhAf-0000U2-00; Tue, 27 Aug 2002 16:18:17 +0200
To: Tim Van Holder <tim.van.holder@pandora.be>
Cc: Ignasi Villagrasa <gri@netcom.es>, bug-bison@gnu.org
Subject: Re: Memory leak in bison 1.35
References: <3D6B55A4.3090104@netcom.es>
	<1030448190.1006.3.camel@bender.falconsoft.be>
From: Akim Demaille <akim@epita.fr>
Date: 27 Aug 2002 16:18:16 +0200
In-Reply-To: <1030448190.1006.3.camel@bender.falconsoft.be>
Message-ID: <mv43ct0s7vb.fsf@nostromo.lrde.epita.fr>
Lines: 24
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

>>>>> "Tim" == Tim Van Holder <tim.van.holder@pandora.be> writes:

Tim> On Tue, 2002-08-27 at 12:34, Ignasi Villagrasa wrote:
>> Hi everyone,
>> 
>> I'm using bison version 1.35 that comes with cygwin package for
>> Windows enviroments.
>> 
>> I detect a memory leak in generated C code. Function yyparse loses
>> periodically 4K chunks memory.
>> 
>> Because of the unclear generated code, I'd like to know if there's
>> a known solution for this problem before getting into the source
>> code.

Tim> Are you also using flex?  At startup, flex allocates a buffer
Tim> that is never freed; it's not really a memory leak (flex merely
Tim> has no point at which it can free the buffer normally, so it
Tim> relies on the normal 'at end' cleanup), but will be reported as
Tim> such by many memory checkers.  It allocates chunks of 16k tho,
Tim> not 4k.

Hm, are you sure it is really yyparse per se which is guilty, and not
the user actions themselves?



From gri@netcom.es Tue Aug 27 11:00:46 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jhpm-0008TN-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:00:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jhpk-0008Si-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:00:46 -0400
Received: from yuha.menta.net ([212.78.128.42])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jhpj-0008SV-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:00:43 -0400
Received: from gibson.menta.net ([212.78.128.22]) by
          yuha.menta.net (Netscape Messaging Server 4.15) with ESMTP id
          H1ICD200.M9R for <bug-bison@gnu.org>; Tue, 27 Aug 2002 17:00:38 +0200 
Received: from netcom.es ([62.57.109.127]) by gibson.menta.net
          (Netscape Messaging Server 4.15 gibson Mar 14 2002 21:29:48)
          with ESMTP id H1ICCO01.S3D; Tue, 27 Aug 2002 17:00:24 +0200 
Message-ID: <3D6B9495.1080401@netcom.es>
Date: Tue, 27 Aug 2002 15:02:45 +0000
From: Ignasi Villagrasa <gri@netcom.es>
Organization: gri
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: es-es
MIME-Version: 1.0
To: Tim Van Holder <tim.van.holder@pandora.be>
CC: bug-bison@gnu.org
Subject: Re: Memory leak in bison 1.35
References: <3D6B55A4.3090104@netcom.es> <1030448190.1006.3.camel@bender.falconsoft.be>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Thanks for answering at first, Tim.

Yes. I use flex also.

I've built the corresponding files for bison and flex, and have an 
application that runs yyparse many times, using the corresponding rules.

In fact, the application runs sql sentences continously. I notice that 
memory leak is growing continuosly every time yyparse is called. It 
seems to grow in 4Kb  chunks. I've only tested it using Windows task 
administrator, without any other checker, but it always fails when 
calling yyparse. If I comment this function, the memory leak dissapears. 
Obviously I don't have the desired program behaviour, but I can isolate 
the problem.

Does flex allocate a buffer every time yyparse is called, or it does 
only the first time  ?

Thanks in advance, Ignasi Villagrasa.


Tim Van Holder wrote:

>On Tue, 2002-08-27 at 12:34, Ignasi Villagrasa wrote:
>
>>Hi everyone,
>>
>>I'm using bison version 1.35 that comes with cygwin package for Windows 
>>enviroments.
>>
>>I detect a memory leak in generated C code. Function yyparse loses 
>>periodically 4K chunks memory.
>>
>>Because of the unclear generated code, I'd like to know if there's a 
>>known solution for this problem before getting into the source code.
>>
>
>Are you also using flex?
>At startup, flex allocates a buffer that is never freed; it's not really
>a memory leak (flex merely has no point at which it can free the buffer
>normally, so it relies on the normal 'at end' cleanup), but will be
>reported as such by many memory checkers.
>It allocates chunks of 16k tho, not 4k.
>
>
>
>






From gri@netcom.es Tue Aug 27 11:19:13 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ji7d-0002xM-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:19:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ji7b-0002xA-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:19:12 -0400
Received: from yuha.menta.net ([212.78.128.42])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ji7a-0002x6-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:19:10 -0400
Received: from gibson.menta.net ([212.78.128.22]) by
          yuha.menta.net (Netscape Messaging Server 4.15) with ESMTP id
          H1ID7T00.7HA for <bug-bison@gnu.org>; Tue, 27 Aug 2002 17:19:05 +0200 
Received: from netcom.es ([62.57.109.127]) by gibson.menta.net
          (Netscape Messaging Server 4.15 gibson Mar 14 2002 21:29:48)
          with ESMTP id H1ID7G01.V1I for <bug-bison@gnu.org>; Tue, 27 Aug
          2002 17:18:52 +0200 
Message-ID: <3D6B98E9.6090609@netcom.es>
Date: Tue, 27 Aug 2002 15:21:13 +0000
From: Ignasi Villagrasa <gri@netcom.es>
Organization: gri
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: es-es
MIME-Version: 1.0
To: bug-bison@gnu.org
Subject: Re: Memory leak in bison 1.35
References: <3D6B55A4.3090104@netcom.es>	<1030448190.1006.3.camel@bender.falconsoft.be> <mv43ct0s7vb.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Yes,

I could isolate a program loop in order to test it with and without 
yyparse.

When using yyparse, the memory leak appears.

Do you need any bison or flex generated source code ?

Thanks for answering,

Ignasi Villagrasa.

Akim Demaille wrote:

>>>>>>"Tim" == Tim Van Holder <tim.van.holder@pandora.be> writes:
>>>>>>
>
>Tim> On Tue, 2002-08-27 at 12:34, Ignasi Villagrasa wrote:
>
>>>Hi everyone,
>>>
>>>I'm using bison version 1.35 that comes with cygwin package for
>>>Windows enviroments.
>>>
>>>I detect a memory leak in generated C code. Function yyparse loses
>>>periodically 4K chunks memory.
>>>
>>>Because of the unclear generated code, I'd like to know if there's
>>>a known solution for this problem before getting into the source
>>>code.
>>>
>
>Tim> Are you also using flex?  At startup, flex allocates a buffer
>Tim> that is never freed; it's not really a memory leak (flex merely
>Tim> has no point at which it can free the buffer normally, so it
>Tim> relies on the normal 'at end' cleanup), but will be reported as
>Tim> such by many memory checkers.  It allocates chunks of 16k tho,
>Tim> not 4k.
>
>Hm, are you sure it is really yyparse per se which is guilty, and not
>the user actions themselves?
>
>






From gri@netcom.es Tue Aug 27 11:21:04 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ji9P-0003v6-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:21:03 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ji9N-0003re-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:21:02 -0400
Received: from yuha.menta.net ([212.78.128.42])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ji9M-0003rY-00
	for bug-bison@gnu.org; Tue, 27 Aug 2002 11:21:00 -0400
Received: from gibson.menta.net ([212.78.128.22]) by
          yuha.menta.net (Netscape Messaging Server 4.15) with ESMTP id
          H1IDAV00.1D7 for <bug-bison@gnu.org>; Tue, 27 Aug 2002 17:20:55 +0200 
Received: from netcom.es ([62.57.109.127]) by gibson.menta.net
          (Netscape Messaging Server 4.15 gibson Mar 14 2002 21:29:48)
          with ESMTP id H1IDAD01.C49; Tue, 27 Aug 2002 17:20:37 +0200 
Message-ID: <3D6B994F.7000508@netcom.es>
Date: Tue, 27 Aug 2002 15:22:55 +0000
From: Ignasi Villagrasa <gri@netcom.es>
Organization: gri
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: es-es
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: bug-bison@gnu.org
Subject: Re: Memory leak in bison 1.35
References: <3D6B55A4.3090104@netcom.es>	<1030448190.1006.3.camel@bender.falconsoft.be> <mv43ct0s7vb.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

The flex version I'm using is 2.5.4, from cygwin package also.

Ignasi Villagrasa.

Akim Demaille wrote:

>>>>>>"Tim" == Tim Van Holder <tim.van.holder@pandora.be> writes:
>>>>>>
>
>Tim> On Tue, 2002-08-27 at 12:34, Ignasi Villagrasa wrote:
>
>>>Hi everyone,
>>>
>>>I'm using bison version 1.35 that comes with cygwin package for
>>>Windows enviroments.
>>>
>>>I detect a memory leak in generated C code. Function yyparse loses
>>>periodically 4K chunks memory.
>>>
>>>Because of the unclear generated code, I'd like to know if there's
>>>a known solution for this problem before getting into the source
>>>code.
>>>
>
>Tim> Are you also using flex?  At startup, flex allocates a buffer
>Tim> that is never freed; it's not really a memory leak (flex merely
>Tim> has no point at which it can free the buffer normally, so it
>Tim> relies on the normal 'at end' cleanup), but will be reported as
>Tim> such by many memory checkers.  It allocates chunks of 16k tho,
>Tim> not 4k.
>
>Hm, are you sure it is really yyparse per se which is guilty, and not
>the user actions themselves?
>
>






From helge.fredriksen@edb4tel.com Fri Aug 30 01:50:42 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17keg6-0000YL-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 01:50:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17keg4-0000Y9-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 01:50:41 -0400
Received: from [193.212.112.210] (helo=mail.4tel.no)
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17keg4-0000Y5-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 01:50:40 -0400
Received: from 172.19.132.30 by mail.4tel.no (InterScan E-Mail VirusWall NT); Fri, 30 Aug 2002 07:52:21 +0200
Received: from s-boo-23-0005.corp.4tel.no ([172.19.140.5]) by s-osl-23-0010.corp.4tel.no with Microsoft SMTPSVC(5.0.2195.2966);
	 Fri, 30 Aug 2002 07:50:53 +0200
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Help with yacc/lex?
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
Date: Fri, 30 Aug 2002 07:50:27 +0200
Message-ID: <3FA763E1CE0E1F42AFE2A3D63814BD2014F03B@s-boo-23-0005.corp.4tel.no>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Help with yacc/lex?
Thread-Index: AcJP6SQCNePM2BSDTYaJCAIxw34yEg==
From: <helge.fredriksen@edb4tel.com>
To: <bug-bison@gnu.org>
X-OriginalArrivalTime: 30 Aug 2002 05:50:53.0765 (UTC) FILETIME=[33F7D750:01C24FE9]
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Is there a forum/mail list where one can ask questions on yacc/lex =
issues?

Best regards,
Helge Fredriksen



From eggert@twinsun.com Fri Aug 30 07:32:36 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kk0y-0006TR-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 07:32:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kk0w-0006Sl-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 07:32:36 -0400
Received: from alcor.twinsun.com ([198.147.65.9])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kk0w-0006SY-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 07:32:34 -0400
Received: from green.twinsun.com ([192.54.239.71]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g7UBWSsv027973; Fri, 30 Aug 2002 04:32:29 -0700 (PDT)
Received: (from eggert@localhost)
	by green.twinsun.com (8.11.6+Sun/8.11.6) id g7UBWSa01098;
	Fri, 30 Aug 2002 04:32:28 -0700 (PDT)
Date: Fri, 30 Aug 2002 04:32:28 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200208301132.g7UBWSa01098@green.twinsun.com>
To: tstroege@gmx.de
CC: bug-bison@gnu.org
In-reply-to: <20020822175947.GA8884@Glenfiddich> (tstroege@gmx.de)
Subject: Re: Bison for Java
References: <200208121835.g7CIZ6Q08705@sic.twinsun.com> <20020814103919.GA1155@Glenfiddich> <200208150700.g7F70tK04521@sic.twinsun.com> <20020822175947.GA8884@Glenfiddich>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

> Date: Thu, 22 Aug 2002 19:59:47 +0200
> From: Thomas Troeger <tstroege@gmx.de>
>
> I have found a patch for bison-1.27 at the following url:
> 
> http://www.goice.co.jp/member/mo/hack-progs/bison-java.html
> 
> I'm using it for university work, and it seems to work quite nice.
> Maybe this helps in case Java support is planned :-) (sorry got no
> time to port it to 1.49b since I'm writing my diploma).

Thanks for the heads-up.   I've added this URL to the Bison TODO list, as follows:


* Java, Fortran, etc.

  Add support for languages other than C and C++.  Here is a proposed
  patch for Java:

  <http://www.goice.co.jp/member/mo/hack-progs/bison-java.html>



From Bernd.Prager@viant.com Fri Aug 30 11:39:09 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17knrZ-000194-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 11:39:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17knrX-00018s-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 11:39:09 -0400
Received: from [208.199.120.4] (helo=EX-NY.corp.viant.net)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17knrX-00018o-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 11:39:07 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_001_01C2503B.6080D000"
Subject: RE: Help with yacc/lex?
Date: Fri, 30 Aug 2002 11:39:07 -0400
Message-ID: <8F05C0CF85B905468E1A397C60D1538ACF16A7@EX-NY.corp.viant.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: <8F05C0CF85B905468E1A397C60D1538ACF16A7@EX-NY.corp.viant.net>
Thread-Topic: Help with yacc/lex?
Thread-Index: AcJQO2B2OBIt16eAQr+qgfoWPpv1Eg==
From: "Bernd Prager" <Bernd.Prager@viant.com>
To: <helge.fredriksen@edb4tel.com>,
	<bug-bison@gnu.org>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C2503B.6080D000
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



> -----Original Message-----
> From: bug-bison-admin@gnu.org=20
> [mailto:bug-bison-admin@gnu.org]On Behalf
> Of helge.fredriksen@edb4tel.com
> Sent: Friday, August 30, 2002 1:50 AM
...
>=20
> Is there a forum/mail list where one can ask questions on=20
> yacc/lex issues?

help-flex@gnu.org

------_=_NextPart_001_01C2503B.6080D000
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64

eJ8+IggPAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEgAEAGAAAAFJFOiBIZWxwIHdpdGggeWFj
Yy9sZXg/AM0HAQWAAwAOAAAA0gcIAB4ACwAnAAcABQA9AQEggAMADgAAANIHCAAeAAsAJwAHAAUA
PQEBCYABACEAAAA2RkI5NDU4QTI2RDJFOTQ2OThDQ0I4RDA5RUM3Mjg5RgBlBwEDkAYACAcAADIA
AAALAAIAAQAAAAMAJgAAAAAAAwAuAAAAAAADADYAAAAAAEAAOQAA0IBgO1DCAR4APQABAAAABQAA
AFJFOiAAAAAAAgFHAAEAAAAsAAAAYz11czthPSA7cD1WaWFudDtsPUVYLU5ZLTAyMDgzMDE1Mzkw
N1otNDYxNAAeAHAAAQAAABQAAABIZWxwIHdpdGggeWFjYy9sZXg/AAIBcQABAAAAFgAAAAHCUDtg
djgSLdengEK/qoH6Fj6b9RIAAB4AGgwBAAAADQAAAEJlcm5kIFByYWdlcgAAAAAeAB0OAQAAABQA
AABIZWxwIHdpdGggeWFjYy9sZXg/AAIBCRABAAAAjAEAAIgBAABiAgAATFpGdbqIz5wDAAoAcmNw
ZzEyNeIyA0N0ZXgFQQEDAff/CoACpAPkBxMCgA/zAFAEVj8IVQeyESUOUQMBAgBjaOEKwHNldDIG
AAbDESX2MwRGE7cwEiwRMwjvCfe2OxgfDjA1ESIMYGMAUPMLCQFkMzYWUAumCuMKhFEKgD4gLR3S
TwUQZw8LgAdABdAHkHNhZ2ULHdMdVkYDYTogYnUYZy1iBAACIC1hZIJtC4BAZ251LgWwNmcc5R2w
WwDAAxB0byY6IF8hZF1PA6BCZQkT4GxmHVZPZiBodGVsHwAuA1AJgAUQaycUECEwCYBiNA6wbC59
BaBtHVYGYAIwIDAf8GkwZGF5LBDAIuB1c1kFQDMwKJAB0DAUQDGkOjUWUEFNHPQuKoBrHVYdVkkE
IHQlkBggIIRhIAIQcnVtLyJi7CBsBAAFQHcr8wIgLCCCYwORYXNrIHEKUL0o8GkCIAQgAiAhx3kA
0GhjL2wOwCAEAS6RP+Mc+iWRcC1mMCEhRhz0An0zEB4ANRABAAAAPgAAADw4RjA1QzBDRjg1Qjkw
NTQ2OEUxQTM5N0M2MEQxNTM4QUNGMTZBN0BFWC1OWS5jb3JwLnZpYW50Lm5ldD4AAAAeAEIQAQAA
AD4AAAA8OEYwNUMwQ0Y4NUI5MDU0NjhFMUEzOTdDNjBEMTUzOEFEQjdBMzdARVgtTlkuY29ycC52
aWFudC5uZXQ+AAAAAwCAEP////8fAPMQAQAAAEAAAABSAEUAJQAzAEEAIABIAGUAbABwACAAdwBp
AHQAaAAgAHkAYQBjAGMA//hsAGUAeAAlADMARgAuAEUATQBMAAAACwD2EAAAAABAAAcwNkDgRTtQ
wgFAAAgwXjKDYDtQwgEDAN4/r28AAAMA8T8JBAAAHgD4PwEAAAANAAAAQmVybmQgUHJhZ2VyAAAA
AAIB+T8BAAAAXAAAAAAAAADcp0DIwEIQGrS5CAArL+GCAQAAAAAAAAAvTz1WSUFOVC9PVT1GSVJT
VCBBRE1JTklTVFJBVElWRSBHUk9VUC9DTj1SRUNJUElFTlRTL0NOPUJQUkFHRVIAHgD6PwEAAAAV
AAAAU3lzdGVtIEFkbWluaXN0cmF0b3IAAAAAAgH7PwEAAAAeAAAAAAAAANynQMjAQhAatLkIACsv
4YIBAAAAAAAAAC4AAAADAP0/5AQAAAMAGUAAAAAAAwAaQAAAAAAeADBAAQAAAAgAAABCUFJBR0VS
AB4AMUABAAAACAAAAEJQUkFHRVIAHgA4QAEAAAAIAAAAQlBSQUdFUgAeADlAAQAAAAIAAAAuAAAA
AwAJWQEAAAALAGaBCCAGAAAAAADAAAAAAAAARgAAAAAOhQAAAAAAAAMAfoEIIAYAAAAAAMAAAAAA
AABGAAAAAFKFAAD5bwEAHgB/gQggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOS4wAAMA
woEIIAYAAAAAAMAAAAAAAABGAAAAAAGFAAAAAAAACwDHgQggBgAAAAAAwAAAAAAAAEYAAAAAA4UA
AAAAAAADAMyBCCAGAAAAAADAAAAAAAAARgAAAAARhQAAAAAAAAMA0YEIIAYAAAAAAMAAAAAAAABG
AAAAABCFAAAAAAAAAwDYgQggBgAAAAAAwAAAAAAAAEYAAAAAGIUAAAAAAAALAOmBCCAGAAAAAADA
AAAAAAAARgAAAAAGhQAAAAAAAAsAKQAAAAAACwAjAAAAAAADAAYQ46p7AgMABxDiAAAAAwAQEAEA
AAADABEQAAAAAB4ACBABAAAAZQAAAC0tLS0tT1JJR0lOQUxNRVNTQUdFLS0tLS1GUk9NOkJVRy1C
SVNPTi1BRE1JTkBHTlVPUkdNQUlMVE86QlVHLUJJU09OLUFETUlOQEdOVU9SR09OQkVIQUxGT0ZI
RUxHRUZSRUQAAAAAAgF/AAEAAAA+AAAAPDhGMDVDMENGODVCOTA1NDY4RTFBMzk3QzYwRDE1MzhB
Q0YxNkE3QEVYLU5ZLmNvcnAudmlhbnQubmV0PgAAAGhs

------_=_NextPart_001_01C2503B.6080D000--



From haberg@matematik.su.se Fri Aug 30 19:04:15 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kuoJ-0001NX-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 19:04:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kuoH-0001NH-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 19:04:14 -0400
Received: from sheridan.tninet.se ([195.100.94.102] helo=smtp.tninet.se)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kuoH-0001ND-00
	for bug-bison@gnu.org; Fri, 30 Aug 2002 19:04:13 -0400
Received: from  [195.100.226.128] (du128-226.ppp.su-anst.tninet.se [195.100.226.128])
 by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP
 id 221171.748649.1030.1s24382600sheridan
 ; Sat, 31 Aug 2002 01:04:09 +0200
X-Sender: haberg@pop.matematik.su.se
Message-Id: <v03110701b9958f4cbea5@[195.100.226.132]>
In-Reply-To: 
 <3FA763E1CE0E1F42AFE2A3D63814BD2014F03B@s-boo-23-0005.corp.4tel.no>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 30 Aug 2002 23:14:24 +0200
To: <helge.fredriksen@edb4tel.com>
From: Hans Aberg <haberg@matematik.su.se>
Subject: Re: Help with yacc/lex?
Cc: <bug-bison@gnu.org>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

At 07:50 +0200 2002/08/30, <helge.fredriksen@edb4tel.com> wrote:
>Is there a forum/mail list where one can ask questions on yacc/lex issues?

This is the Bug Bison list, there are the
  Help-bison@gnu.org http://mail.gnu.org/mailman/listinfo/help-bison
and the
  Help-flex mailing list
  Help-flex@gnu.org
  http://mail.gnu.org/mailman/listinfo/help-flex
lists. But these deal with Bison/Flex, not the original Yacc/Lex. There is
something called the Berkeley Yacc (check the WWW pages of that
university). You might also check the FAQ of the newsgroup comp.compilers.

  Hans Aberg





From eggert@twinsun.com Sat Aug 31 03:09:19 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17l2Nj-0004b7-00
	for bug-bison@gnu.org; Sat, 31 Aug 2002 03:09:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17l2Nh-0004ad-00
	for bug-bison@gnu.org; Sat, 31 Aug 2002 03:09:18 -0400
Received: from alcor.twinsun.com ([198.147.65.9])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17l2Ne-0004aI-00; Sat, 31 Aug 2002 03:09:14 -0400
Received: from sic.twinsun.com ([192.54.239.17]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g7V79Dsv030488; Sat, 31 Aug 2002 00:09:13 -0700 (PDT)
Received: (from eggert@localhost)
	by sic.twinsun.com (8.11.6+Sun/8.11.6) id g7V79Dw24307;
	Sat, 31 Aug 2002 00:09:13 -0700 (PDT)
Date: Sat, 31 Aug 2002 00:09:13 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200208310709.g7V79Dw24307@sic.twinsun.com>
To: bug-autoconf@gnu.org
CC: rac@tenzing.org, bug-bison@gnu.org
In-reply-to: <mv41y8kvign.fsf@nostromo.lrde.epita.fr> (akim@epita.fr)
Subject: Re: bison 1.35 build fails on SCO Openserver
References: <200208251521.g7PFLM510681@tenzing.org> <mv41y8kvign.fsf@nostromo.lrde.epita.fr>
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

> From: Akim Demaille <akim@epita.fr>
> Date: 27 Aug 2002 10:01:12 +0200
> 
> Thanks a lot for the report.  It turns out to be an Autoconf bug.  I
> leave this in the Autoconf bug mail box.

I think you fixed that Autoconf bug in April, so the problem should be
fixed for good once Autoconf 2.54 comes out.  (I built Bison with 2.53.)
Here is the ChangeLog entry:

2002-04-02  Akim Demaille  <akim@epita.fr>

	* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
	_AS_MKDIR_P_PREPARE.



From jim@meyering.net Sat Aug 31 05:01:05 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17l47t-0004zv-00
	for bug-bison@gnu.org; Sat, 31 Aug 2002 05:01:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17l47r-0004zi-00
	for bug-bison@gnu.org; Sat, 31 Aug 2002 05:01:04 -0400
Received: from ix.meyering.net ([212.234.50.122] helo=pixie.eng.ascend.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17l47q-0004za-00
	for bug-bison@gnu.org; Sat, 31 Aug 2002 05:01:03 -0400
Received: by pixie.eng.ascend.com (Postfix, from userid 1000)
	id 77EDCACA8; Sat, 31 Aug 2002 11:01:01 +0200 (CEST)
To: bug-bison@gnu.org
Subject: data/yacc.c: patch to avoid warning about yytoknum being unused.
From: Jim Meyering <jim@meyering.net>
Date: Sat, 31 Aug 2002 11:01:01 +0200
Message-ID: <877ki7e71u.fsf@pixie.eng.ascend.com>
Lines: 30
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-bison-admin@gnu.org
Errors-To: bug-bison-admin@gnu.org
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Post: <mailto:bug-bison@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Bison, the GNU parser generator <bug-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-bison/>

Hi!

Without this change, I get a warning (in the bison-generated
coreutils/lib/getdate.c) about yytoknum being unused.

	* data/yacc.c: Guard the declaration of yytoknum also with
	`#ifdef YYPRINT', so it is declared only when used.

Index: data/yacc.c
===================================================================
RCS file: /cvs/bison/data/yacc.c,v
retrieving revision 1.12
diff -u -p -u -p -r1.12 yacc.c
--- data/yacc.c	12 Aug 2002 15:04:54 -0000	1.12
+++ data/yacc.c	31 Aug 2002 08:53:15 -0000
@@ -358,12 +358,14 @@ static const char *const yytname[[]] =
 };
 #endif
 
+# ifdef YYPRINT
 /* YYTOKNUM[[YYLEX-NUM]] -- Internal token number corresponding to
    token YYLEX-NUM.  */
 static const b4_int_type_for([b4_toknum]) yytoknum[[]] =
 {
   b4_toknum
 };
+# endif
 
 /* YYR1[[YYN]] -- Symbol number of symbol that rule YYN derives.  */
 static const b4_int_type_for([b4_r1]) yyr1[[]] =



