* BUG: de_thread()
@ 2002-10-10 17:41 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2002-10-10 17:41 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar
Hello.
Suppose process P in thread group was cloned _without_
CLONE_DETACHED flag. Then another thread, group_leader
for simplicity, does exec and calls de_thread(). It kills
P via _broadcast_thread_group(). While doing do_exit(),
P skips release_task(), because its exit_signal != -1,
and becomes TASK_ZOMBIE.
Then leader calls schedule() with TASK_UNINTERRUPTIBLE
in while(oldsig->count > 1) {...} and sleeps forever,
because nobody can do wake_up_process(sig->group_exit_task).
Sorry if i missed something, i have no machine to test
development kernel, so i can only speculate looking at
source.
Oleg.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-10 17:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 17:41 BUG: de_thread() Oleg Nesterov
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®