From: "Albert Cahalan" <acahalan@gmail.com>
To: "Mike Galbraith" <efault@gmx.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: BUG: wedged processes, test program supplied
Date: Wed, 20 Dec 2006 01:05:54 -0500 [thread overview]
Message-ID: <787b0d920612192205v2d650361r4f737c41aa1d3a92@mail.gmail.com> (raw)
In-Reply-To: <1166593200.1614.8.camel@Homer.simpson.net>
On 12/20/06, Mike Galbraith <efault@gmx.de> wrote:
> On Tue, 2006-12-19 at 21:46 -0500, Albert Cahalan wrote:
> > Somebody PLEASE try this...
>
> I was having enough fun with cloninator (which was whitespace munged
> btw).
Anything stuck? Besides refusing to die, that beast slays debuggers
left and right. I just need to add execve of /proc/self/exe and a massive
storm of signals on the alternate stack.
In the original post, I also mangled the recommended ps command:
ps -Ccloninator
-mwostat,ppid,pid,tid,nlwp,pending,sigmask,sigignore,caught,wchan
Leave out pid,tid,nlwp if you need to save screen space, like so:
ps -Ccloninator -mwostat,ppid,pending,sigmask,sigignore,caught,wchan
(note: procps versions prior to 3.2.7 are mostly fine, but will mess
up the PENDING column for any single-threaded processes you get)
This is fun to look at:
watch ps -Ccloninator fostat,ppid,wchan:9,comm
> > Normally, when a process dies it becomes a zombie.
> > If the parent dies (before or after the child), the child
> > is adopted by init. Init will reap the child.
> >
> > The program included below DOES NOT get reaped.
>
> While true wasn't a great test recommendation :)
Oh. I wanted to be sure you'd see the problem. Did you have
some... difficulty? A plain old ^C should make things stop.
The second test program is like the first, but missing SIGCHLD
from the clone flags, and hopefully not whitespace-mangled.
Note that the test program is not normally a fork bomb.
It self-limits itself to 42 tasks via a lock in shared memory.
If things are working OK, you should see no more than
about 60 tasks.
next prev parent reply other threads:[~2006-12-20 6:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-20 2:46 Albert Cahalan
2006-12-20 5:40 ` Mike Galbraith
2006-12-20 6:05 ` Albert Cahalan [this message]
2006-12-20 7:09 ` Mike Galbraith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=787b0d920612192205v2d650361r4f737c41aa1d3a92@mail.gmail.com \
--to=acahalan@gmail.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®