Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2002 09:16:40 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Eugene Grosbein <eugen@grosbein.pp.ru>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/36232: newly instroduced builtin 'test' of /bin/sh sometimes makes SIGSEGV
Message-ID:  <20020324091640.GA54099@walton.maths.tcd.ie>
In-Reply-To: <200203240340.g2O3e3458611@freefall.freebsd.org>
References:  <200203240340.g2O3e3458611@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 23, 2002 at 07:40:03PM -0800, Eugene Grosbein wrote:
>  I tried just now. This script makes shell segfault in the same place:

I just tried the script and wasn't able to get it to segfault.
This is on a version of -STABLE from about the end of Feburary,
but there have been no changes to sh since.

How did you invoke the script?

	David.

> cat /tmp/boom.sh
#!/bin/sh

v1=no
if test $v1 = yes; then
else
  if test $var; then
    echo OK
  fi
fi

> /tmp/boom.sh
> sh /tmp/boom.sh
> uname -a
FreeBSD yipyip.home 4.5-STABLE FreeBSD 4.5-STABLE #22: Sat Mar  9 12:16:42 GMT 2
002     dwmalone@yipyip.home:/usr/src/sys/compile/YIPYIP  i386


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020324091640.GA54099>