From owner-freebsd-current@FreeBSD.ORG Thu Mar 31 14:35:07 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 3F04C1065674 for ; Thu, 31 Mar 2011 14:35:07 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 0D7838FC19 for ; Thu, 31 Mar 2011 14:35:06 +0000 (UTC) Received: by pxi6 with SMTP id 6so1480423pxi.17 for ; Thu, 31 Mar 2011 07:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=G3ap4TYWgxoll4TGu9MWVQX8lsed+UJB8bZfoFIfpg4=; b=Vw3t6TjxObh2n7BD4rXvI+eJCAequPMjrlx5V02KWFeq3IYq1djn9C/rpCEQzs2Ln4 VYFVJzQen4tG+kYOqBlyEOSHBLrBVxiSvhTtr9K7rzgQhqGMXwhFjFtW/E/EGwFJHUNr kuSD2x+gQvzJGSiiMiMk8nvp2MByc7O7yH21U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WWlJI5mIaFPIJBLU0TGk/oAzAgX285ebIeig/LnsFRNbNLT850Y4wrvEsWdSv//fJP kMGy1L9zB6QL7NLWeqfzy7WKQWQSl++r1XcWBA9Evz//r0ZU1QQ5z3/E6DIOyaIxl5QA snDLALyexMbM9GJ7n0++/PW/FEdAX0skLO2j4= MIME-Version: 1.0 Received: by 10.142.201.13 with SMTP id y13mr1985973wff.198.1301582106622; Thu, 31 Mar 2011 07:35:06 -0700 (PDT) Received: by 10.142.153.15 with HTTP; Thu, 31 Mar 2011 07:35:06 -0700 (PDT) In-Reply-To: <4D948B6A.6000906@FreeBSD.org> References: <4D948B6A.6000906@FreeBSD.org> Date: Thu, 31 Mar 2011 16:35:06 +0200 Message-ID: From: Svatopluk Kraus To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:35:07 -0000 On Thu, Mar 31, 2011 at 4:10 PM, Andriy Gapon wrote: > on 31/03/2011 14:32 Svatopluk Kraus said the following: >> Hi, >> >> =A0 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. > My current is from 20.3.2011 but I have looked at CVS on freebsd.org just before my post. It didn't look to be solved.