Date: Thu, 14 Aug 2003 20:20:17 -0700 (PDT) From: Eugene Grosbein <eugen@kuzbass.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely Message-ID: <200308150320.h7F3KHbj094415@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/55346; it has been noted by GNATS. From: Eugene Grosbein <eugen@kuzbass.ru> To: Doug White <dwhite@gumbysoft.com> Cc: Eugene Grosbein <eugen@grosbein.pp.ru>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308150320.h7F3KHbj094415>