Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2002 02:50:57 -0800
From:      "Crist J. Clark" <cjc@FreeBSD.ORG>
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:  <20020324025057.J48968@blossom.cjclark.org>
In-Reply-To: <200203240340.g2O3e3458611@freefall.freebsd.org>; from eugen@grosbein.pp.ru on Sat, Mar 23, 2002 at 07:40:03PM -0800
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:
> The following reply was made to PR bin/36232; it has been noted by GNATS.
> 
> From: Eugene Grosbein <eugen@grosbein.pp.ru>
> To: David Malone <dwmalone@maths.tcd.ie>
> 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




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