Subject: bin/3874: sh crashes on input redirection
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 07/16/1997 16:46:12
>Number:         3874
>Category:       bin
>Synopsis:       sh crashes on input redirection
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 16 07:50:01 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.owl.de/~tron/
>Release:        970714
>Environment:
System: NetBSD lyssa 1.2G NetBSD 1.2G (LYSSA) #0: Tue Jul 15 18:24:18 MEST 1997 tron@lyssa:/usr/src/sys/arch/i386/compile/LYSSA i386

>Description:
When I tried to SUP today my shellscript for this purpose caused a core dump.
After trying to track down the problem I could reduce it on a three line
shell script.

>How-To-Repeat:
$ cat >boom
#!/bin/sh
LOGFILE=/dev/null
echo -v -s $* >>$LOGFILE 2>&1
$ chmod 755 boom
$ ./boom
$ ./boom -o
Segmentation fault

>Fix:
Sorry, I don't know.

>Audit-Trail:
>Unformatted: