bin/55346: /bin/sh eats memory and CPU infinitely

Doug White dwhite at gumbysoft.com
Thu Aug 14 11:10:19 PDT 2003


The following reply was made to PR bin/55346; it has been noted by GNATS.

From: Doug White <dwhite at gumbysoft.com>
To: Eugene Grosbein <eugen at grosbein.pp.ru>
Cc: stable at freebsd.org, bug-followup at freebsd.org
Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely
Date: Thu, 14 Aug 2003 11:04:13 -0700 (PDT)

 On Fri, 15 Aug 2003, Eugene Grosbein wrote:
 
 > Hi!
 >
 > It seems /bin/sh in 4.8-STABLE has problem with SIGCHLD processing.
 > In short, it often fails to process it correctly, zombies float
 > around, jobs are not marked as finished in jobtab[] that fills memory
 > and takes much CPU to be processed.
 >
 > Run this one-liner using /bin/sh and see hundreds of zombies:
 >
 > #!/bin/sh
 > while :; do : & done
 
 Considering that with this script you are forkbombing your machine as
 root, I think this falls into the "doctor it hurts when I shoot my foot"
 category.
 
 -- 
 Doug White                    |  FreeBSD: The Power to Serve
 dwhite at gumbysoft.com          |  www.FreeBSD.org


More information about the freebsd-bugs mailing list