Re: BUG: wedged processes, test program supplied



On 12/20/06, Mike Galbraith <efault@xxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Tips on handling situations?
    ... it isn't fun and is in the "can take away" category, ... A balloon may mean different things to different people. ... I would never say that to my child. ... They show how much the parent does or does ...
    (misc.kids)
  • Re: update on my frds child
    ... Poor baby. ... the child isn't fighting over being tested. ... having fun with autoimmune diseases NOT! ...
    (alt.support.diabetes)
  • Re: Good project for a 10 yr old?
    ... As a former parks and recreation director, it always amazed me at how many parents come to the park with their child to play ball and hated the experience. ... But most of all keep it fun for the two of you. ... By trade I am now a teacher, but sometimes when it comes to my kids someone else is a better teacher for them than I am. ...
    (rec.crafts.woodturning)
  • Re: So Now You Are All Picking on Crysatl!!!
    ... Good child, Scapegoat, Bad Child, Lost Child, Martyr, ... Dang, but they had fun. ... competition as opposed to regular local trials, ...
    (rec.pets.dogs.behavior)
  • Re: Spoiler: Little As lines
    ... I'm sure that when they need the child to cry, or be cranky, they arrange to ... film his/her scenes when they've just woken up from a nap, or need a nap, or ... It's not that the child is or isn't having fun; ...
    (rec.arts.tv.soaps.abc)

Loading