From root@ick.owl.org  Sat Jan 25 20:59:35 1997
Received: from ick.owl.org (ick.owl.org [198.206.215.94])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA16405
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Jan 1997 20:59:33 -0800 (PST)
Received: (from root@localhost)
          by ick.owl.org (8.8.4/8.8.4)
	  id XAA00271; Sat, 25 Jan 1997 23:57:06 -0500 (EST)
Message-Id: <199701260457.XAA00271@ick.owl.org>
Date: Sat, 25 Jan 1997 23:57:06 -0500 (EST)
From: cgull@ick.owl.org
Reply-To: cgull@smoke.marlboro.vt.us
To: FreeBSD-gnats-submit@freebsd.org
Cc: cgull@owl.org
Subject: sh has problems with argv length
X-Send-Pr-Version: 3.2

>Number:         2591
>Category:       bin
>Synopsis:       sh coredumps when passing an argv of a certain length
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 25 21:00:01 PST 1997
>Closed-Date:    Tue Jun 2 18:05:17 PDT 1998
>Last-Modified:  Tue Jun  2 18:06:01 PDT 1998
>Originator:     cgull@smoke.marlboro.vt.us
>Release:        FreeBSD 3.0-970118-SNAP i386
>Organization:
none
>Environment:

root or user login, default dotfiles distributed with 3.0

>Description:

/bin/sh coredumps when asked to pass a large argv.  A trace also shows
sh attempting to stat an envar list.  (see
ftp://smoke.marlboro.vt.us/pub/cgull/testgoo/sh-trace)

This may be related to exec'ing shellscripts.

>How-To-Repeat:

$ zgrep ALLMULTI /usr/man/man1/*
$ zgrep ALLMULTI /usr/man/man?/*
[core dump]

or to get a duplicate of my argv,

$ fetch ftp://smoke.marlboro.vt.us/pub/cgull/testgoo/arglist
$ zgrep `cat arglist`
[core dump]

>Fix:
	
unknown


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: steve 
State-Changed-When: Sun May 31 14:53:53 PDT 1998 
State-Changed-Why:  
This seems to have been fixed somewhere along the way.  Are 
you still seeing this problem? 

From: john hood <cgull@smoke.marlboro.vt.us>
To: Steve Price <steve@FreeBSD.ORG>, freebsd-bugs@hub.freebsd.org,
        freebsd-gnats-submit@FreeBSD.ORG
Cc:  Subject: Re: bin/2591
Date: Tue, 2 Jun 1998 17:59:23 -0400

 On Sun, May 31, 1998 at 02:54:45PM -0700, Steve Price wrote:
 > Synopsis: sh coredumps when passing an argv of a certain length
 [...] 
 > This seems to have been fixed somewhere along the way.  Are
 > you still seeing this problem?
 
 It seems to be gone on a system last updated apr 25th.
 
 -- 
 Mr. Belliveau said, "the difference was the wise,       John Hood,     cgull
 intelligent look on the face of the cow."  He was      	                   @
 *so* right.  --Ofer Inbar                               smoke.marlboro.vt.us
State-Changed-From-To: feedback->closed 
State-Changed-By: steve 
State-Changed-When: Tue Jun 2 18:05:17 PDT 1998 
State-Changed-Why:  
Originator noted that the problem seems to have disappeared. 
>Unformatted:
