NetBSD Problem Report #8732
Received: (qmail 12639 invoked from network); 2 Nov 1999 04:48:29 -0000
Message-Id: <199911020444.UAA20366@nooksack.ldc.cs.wwu.edu>
Date: Mon, 1 Nov 1999 20:44:34 -0800 (PST)
From: johann@brightech.com
Reply-To: johann@brightech.com
To: gnats-bugs@gnats.netbsd.org
Subject: csh -n dies from seg fault
X-Send-Pr-Version: www-1.0
>Number: 8732
>Category: bin
>Synopsis: csh -n dies from seg fault
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 01 20:50:59 +0000 1999
>Closed-Date: Tue Nov 02 19:36:25 +0000 1999
>Last-Modified: Tue Nov 02 19:37:05 +0000 1999
>Originator: Josh Lynch
>Release: NetBSD-1.4
>Organization:
>Environment:
NetBSD obiwan 1.4 NetBSD 1.4 (GENERIC) #0: Fri May 7 12:27:31 PDT 1999 perry@cynic.cynic.net:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
csh -n segfaults if you try and type any commands interactively.
>How-To-Repeat:
run 'csh -n' and type ls/mv/cp/vi/etc...
>Fix:
--- sem.c-orig Mon Nov 1 15:01:43 1999
+++ sem.c Mon Nov 1 15:15:49 1999
@@ -171,6 +171,8 @@
/*
* Continue for builtins that are part of the scripting language
*/
+ if (!bifunc)
+ break;
if (bifunc->bfunct != dobreak && bifunc->bfunct != docontin &&
bifunc->bfunct != doelse && bifunc->bfunct != doend &&
bifunc->bfunct != doforeach && bifunc->bfunct != dogoto &&
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Tue Nov 2 11:36:25 PST 1999
State-Changed-Why:
I committed a modified version of your patch. Thanks.
>Unformatted:
(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.