Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Thu, 31 Mar 2011 17:10:50 +0300
on 31/03/2011 14:32 Svatopluk Kraus said the following:
> Hi,
> 
>   I've got a page fault (because of NULL td_lock) in
> thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c
> file. During process fork, new thread is linked to new process which
> is linked to allproc list and both allproc_lock and new process lock
> are unlocked before sched_fork() is called, where new thread td_lock
> is initialized. Only PRS_NEW process status is on sentry but not
> checked in schedcpu().

How recent is your current?
This sounds like something that could have been recently fixed.

-- 
Andriy Gapon
Received on Thu Mar 31 2011 - 12:10:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:12 UTC