Re: kernel BUG at kernel/exit.c:792!
From: Manfred Spraul
Date: Wed Dec 03 2003 - 12:49:53 EST
Srivatsa Vaddagiri wrote:
--- base.c 2003-10-26 00:13:57.000000000 +0530No, a break would be wrong: The test detects already dead tasks that are
still listed in the task list. If such a task is found, then it
shouldn't be listed in /proc/, but the readdir call should continue to
scan the task list.
+++ base.c.fix 2003-12-03 17:20:18.877679360 +0530
@@ -1669,7 +1669,7 @@
int tid = task->pid;
But I don't understand the oops:
__exit_sighand clears current->sighand, and then in the next line
__unhash_process removes the thread from the task list. But that's under
write_lock_irq(&tasklist_lock), and get_tid_list runs under
read_lock(&tasklist_lock). It should be impossible that ->sighand is
NULL and the task is still listed in the task list.
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/