From owner-freebsd-bugs Sun Mar 24 2:51: 6 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 295D837B41A for ; Sun, 24 Mar 2002 02:50:59 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020324105058.QGVK2951.rwcrmhc53.attbi.com@blossom.cjclark.org>; Sun, 24 Mar 2002 10:50:58 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g2OAovo81062; Sun, 24 Mar 2002 02:50:57 -0800 (PST) (envelope-from cjc) Date: Sun, 24 Mar 2002 02:50:57 -0800 From: "Crist J. Clark" To: Eugene Grosbein Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/36232: newly instroduced builtin 'test' of /bin/sh sometimes makes SIGSEGV Message-ID: <20020324025057.J48968@blossom.cjclark.org> References: <200203240340.g2O3e3458611@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200203240340.g2O3e3458611@freefall.freebsd.org>; from eugen@grosbein.pp.ru on Sat, Mar 23, 2002 at 07:40:03PM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Mar 23, 2002 at 07:40:03PM -0800, Eugene Grosbein wrote: > The following reply was made to PR bin/36232; it has been noted by GNATS. > > From: Eugene Grosbein > To: David Malone > Cc: FreeBSD-gnats-submit@FreeBSD.org > Subject: Re: bin/36232: newly instroduced builtin 'test' of /bin/sh sometimes makes SIGSEGV > Date: Sun, 24 Mar 2002 10:29:24 +0700 > > On Sun, Mar 24, 2002 at 12:09:39AM +0000, David Malone wrote: > > > > System: FreeBSD D00015.dialonly.kemerovo.su 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Mar 20 08:57:16 KRAT 2002 eu@D00015.dialonly.kemerovo.su:/usr/local/obj/usr/local/src/sys/DADV i386 > > > CPUTYPE=i686 and no other optimizations > > > > Have you tested this by rebuilding sh without i686 optimisations? > > I tried just now. This script makes shell segfault in the same place: > > #!/bin/sh > > v1=no > if test $v1 = yes; then > else > if test $var; then > echo OK > fi > fi On a FreeBSD 4.5-STABLE from yesterday's source, this script runs fine (i.e. it does nothing). $ cat /etc/make.conf # $Id: make.conf,v 1.2 2002/03/07 20:45:22 cjc Exp $ # CPUTYPE= p3 DISTDIR?= /var/tmp/ports/distfiles WRKDIRPREFIX?= /var/tmp/ports KERNCONF?= GOKU -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message