From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 14 20:20:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C446F37B401 for ; Thu, 14 Aug 2003 20:20:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66EDE43FBF for ; Thu, 14 Aug 2003 20:20:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7F3KHUp094416 for ; Thu, 14 Aug 2003 20:20:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7F3KHbj094415; Thu, 14 Aug 2003 20:20:17 -0700 (PDT) Date: Thu, 14 Aug 2003 20:20:17 -0700 (PDT) Message-Id: <200308150320.h7F3KHbj094415@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Eugene Grosbein Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eugene Grosbein List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2003 03:20:18 -0000 The following reply was made to PR bin/55346; it has been noted by GNATS. From: Eugene Grosbein To: Doug White Cc: Eugene Grosbein , stable@freebsd.org, bug-followup@freebsd.org Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely Date: Fri, 15 Aug 2003 11:14:31 +0800 Doug White wrote: > > 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. Perhaps. Anyway, debug shows that jobtab[] in /bin/sh grows indefinitely in some scenarios and the reason should be SIGCHLD processing problem. Eugene