Subject: Re: /bin/sh crashing
To: None <current-users@netbsd.org>
From: Rhialto <rhialto@falu.nl>
List: current-users
Date: 05/24/2007 16:46:24
On Wed 23 May 2007 at 15:45:53 +0200, Jukka Salmi wrote:
> Hi,
> 
> the attached shell script crashes /bin/sh on NetBSD with a segfault,
> at least with -current and 3.1_STABLE. However, if the script is
> slightly modified - e.g. if the useless `if test 1' condition on line
> 5 or the also useless `true;' on line 9 is removed - then running it
> doesn't crash the shell. And, BTW, it doesn't crash ksh or bash...

See http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=33960 for
another case of sh crashing. The bug is still open (and assigned to the
wrong person: the package maintainer does not maintain /bin/sh).

It seems to be related to the "test" (or "[") builtin command too, at
least there is one nearby.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.