NetBSD Problem Report #8707

Received: (qmail 4795 invoked from network); 29 Oct 1999 22:36:00 -0000
Message-Id: <199910292232.PAA12512@nooksack.ldc.cs.wwu.edu>
Date: Fri, 29 Oct 1999 15:32:03 -0700 (PDT)
From: mcn@engarde.com
Reply-To: mcn@engarde.com
To: gnats-bugs@gnats.netbsd.org
Subject: ipsend fails on own test file (yacc? lex?)
X-Send-Pr-Version: www-1.0

>Number:         8707
>Category:       bin
>Synopsis:       ipsend fails on own test file (yacc? lex?)
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 29 15:39:01 +0000 1999
>Closed-Date:    Sun Jul 20 03:15:30 +0000 2003
>Last-Modified:  Sun Jul 20 03:16:00 +0000 2003
>Originator:     Mike Neuman
>Release:        1.4
>Organization:
	En Garde Systems, Inc.
>Environment:
NetBSD voyager 1.4 NetBSD 1.4 (MCNVGR) #8: Mon Aug  2 16:42:27 PDT 1999     mcn@voyager:/usr/src/sys/arch/i386/compile/MCNVGR i386

>Description:
See /usr/src/usr.sbin/ipf/ipsend.
Run ./ipsend -d -L iplang.tst.

It fails as it interprets the end of file as a " " (apparently).
This code works fine under SunOS, Solaris, and a variety of other
operating systems, so my guess is the fault is within lex or yacc
under NetBSD.

>How-To-Repeat:
	See description.

>Fix:
	Unknown. I've tried changing the yacc/lex files to work
	around the problem without much luck. I've compiled the
	latest flex and bison code which no change.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->toolchain-manager 
Responsible-Changed-By: gnats 
Responsible-Changed-When: Tue Feb 12 00:53:32 PST 2002 
Responsible-Changed-Why:  
There is now a "toolchain-manager" which is the proper default role 
account for handling problem reports in the toolchain category. 

State-Changed-From-To: open->closed 
State-Changed-By: lukem 
State-Changed-When: Sun Jul 20 03:13:49 UTC 2003 
State-Changed-Why:  
I've fixed the bug in ipf; you can't unput(EOF). 
(It was not a flex bug after all) 


Responsible-Changed-From-To: toolchain-manager->lukem 
Responsible-Changed-By: lukem 
Responsible-Changed-When: Sun Jul 20 03:13:49 UTC 2003 
Responsible-Changed-Why:  

From: Luke Mewburn <lukem@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/8707 CVS commit: src/dist/ipf/iplang
Date: Sun, 20 Jul 2003 03:14:41 +0000 (UTC)

 Module Name:	src
 Committed By:	lukem
 Date:		Sun Jul 20 03:14:41 UTC 2003

 Modified Files:
 	src/dist/ipf/iplang: iplang_l.l

 Log Message:
 Don't attempt to unput(EOF).
 According to lex(1) (the manual page for flex, which is what we use for lex):
 	Finally, note that you cannot put back EOF to attempt to mark the
 	input stream with an end-of-file.

 Fixes PR bin/8707, which had been reclassified as a toolchain bug.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 src/dist/ipf/iplang/iplang_l.l

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.