[lkml]   [2003]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC][PATCH][2.5] Possible race in wait_task_zombie and finish_task_switch
On Sun, 25 May 2003, Manfred Spraul wrote:

> - the reference for the stack itself, acquired by setting usage to 2,
> dropped by schedule_tail.
> - the reference for wait4, acquired by setting usage to 2, dropped by
> wait_task_zombie.
> - references for the pid structures, maintained by pid.c
> - temporary references for looking at tsk->{fs,mm,files,tty}, used by
> /proc, ptrace, tty.

it's the one dropped by wait_task_zombie, the task coming out from
schedule_tail is fine.

> >kernel BUG at kernel/sched.c:746!
> >
> >
> Hmm. What is schedule.c:746? There is no BUG in that area in the bk tree.

It's in finish_arch_switch at the put_task_struct()

> Zwane, is it easy to reproduce the crash? I could write a patch that
> adds 4 refcounters, then we could find out in which area we must look.

I haven't found a direct way of triggering it, so far it's just been
cropping up ~6 times over a period of 2days with the box normally taking a
fatal one and dying completely.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [from the cache]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site