Subject: bin/8732: csh -n dies from seg fault
To: None <gnats-bugs@gnats.netbsd.org>
From: None <johann@brightech.com>
List: netbsd-bugs
Date: 11/01/1999 20:51:42
>Number:         8732
>Category:       bin
>Synopsis:       csh -n dies from seg fault
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov  1 20:50:59 1999
>Last-Modified:
>Originator:     Josh Lynch
>Organization:
>Release:        NetBSD-1.4
>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   &&


>Audit-Trail:
>Unformatted: