From nobody@FreeBSD.org  Fri May  5 00:57:10 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 210B437B9C9
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 May 2000 00:57:10 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id AAA93836;
	Fri, 5 May 2000 00:57:09 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200005050757.AAA93836@freefall.freebsd.org>
Date: Fri, 5 May 2000 00:57:09 -0700 (PDT)
From: legros@efrei.fr
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: When /swap if full ?
X-Send-Pr-Version: www-1.0

>Number:         18394
>Category:       kern
>Synopsis:       When /swap if full ?
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May  5 01:00:01 PDT 2000
>Closed-Date:    Fri May 5 09:49:49 PDT 2000
>Last-Modified:  Mon May  8 00:20:01 PDT 2000
>Originator:     Legros Jean-Franois
>Release:        FreeBsd 4.0 current
>Organization:
student
>Environment:
PII 300 RAM 64 G200 Motherboard Asus P2L97
HDD WD Caviar 3.2Go BSD mounted on 1.5Go.
/swap : 133Mo
I'll give you output of "uname -a" this evening (Paris time...)
>Description:
Trying to hang up machine with $yes 'yes'. Then watching stats with a "top".
First RAM is totally filled, and than /swap. At this state machine crashs.
I tried on a Debian : process "yes" killed when swap's full : no crash.
I don't remember exactly the system messages at that point, I'll see this
and show you.
I tried with differents shells, crash is happening quiker with some of them.
Whith bash2 : about 40 min before crash.
>How-To-Repeat:
Just try $yes 'yes'
>Fix:


>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: legros@efrei.fr
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/18394: When /swap if full ? 
Date: Fri, 05 May 2000 16:09:46 +0200

 On Fri, 05 May 2000 00:57:09 MST, legros@efrei.fr wrote:
 
 > I'll give you output of "uname -a" this evening (Paris time...)
 
 Next time, wait 'til you've got all the information on hand.  There's no
 rush here. :-)
 
 > Trying to hang up machine with $yes 'yes'. Then watching stats with
 > a "top".  First RAM is totally filled, and than /swap. At this state
 > machine crashs.
 
 This looks bogus to me.  Could you double-check what you're typing at
 the command prompt?  Is it really
 
 	$yes 'yes'
 
 ?
 
 That won't crash a machine (or even put too much stress on it).  Since
 the variable $yes is empty, and since the shell gobbles the quotes,
 you're effectively typing this:
 
 	yes
 
 Since this program doesn't have a memory leak, I think you're doing
 something odd.  Do you have the $yes variable set to anything before you
 do this?
 
 Seeing the exact messages issued at crash time, or even better a
 backtrace of the crash dump would help, but at this stage, I don't
 believe you. :-)
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Fri May 5 09:49:49 PDT 2000 
State-Changed-Why:  
As I suspected, this one seems to be a crank call -- the origin 
address is invalid. 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Gregory Bond <gnb@itga.com.au>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/18394: When /swap if full ? 
Date: Mon, 08 May 2000 09:12:31 +0200

 On Mon, 08 May 2000 10:09:26 +1000, Gregory Bond wrote:
 
 > >  	$yes 'yes'
 > 
 > Hmm, if it were 
 > 	$yes `yes` 
 > (nb: back-tic not apostrophe) then this would run out of swap space...
 > eventually.
 
 In which case, a simple
 
 	`yes`
 
 would suffice.  Note that it's the shell that exhausts memory, not the
 yes process.  So now the the originator needs to tell us whether this is
 still a problem when he uses login.conf(5) resource limits properly.
 
 I still think this is bogus. :-)
 
 Ciao,
 Sheldon.
 
>Unformatted:
