From owner-freebsd-current@FreeBSD.ORG Thu Mar 31 14:10:59 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67CCC1065672 for ; Thu, 31 Mar 2011 14:10:59 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B2B0B8FC1B for ; Thu, 31 Mar 2011 14:10:58 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA07829; Thu, 31 Mar 2011 17:10:50 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4D948B6A.6000906@FreeBSD.org> Date: Thu, 31 Mar 2011 17:10:50 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Svatopluk Kraus References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2011 14:10:59 -0000 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