From nobody@FreeBSD.org  Sun Aug  1 14:29:45 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4285716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Aug 2004 14:29:45 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 38CAE43D5E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Aug 2004 14:29:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i71ETih5006450
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Aug 2004 14:29:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i71ETiEM006449;
	Sun, 1 Aug 2004 14:29:44 GMT
	(envelope-from nobody)
Message-Id: <200408011429.i71ETiEM006449@www.freebsd.org>
Date: Sun, 1 Aug 2004 14:29:44 GMT
From: Silvere <silvere.thommerel@free.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: new kernel panic on boot
X-Send-Pr-Version: www-2.3

>Number:         69876
>Category:       i386
>Synopsis:       [panic] new kernel panic on boot (-CURRENT)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 01 14:30:29 GMT 2004
>Closed-Date:    Thu Jan 06 18:34:09 GMT 2005
>Last-Modified:  Thu Jan 06 18:34:09 GMT 2005
>Originator:     Silvere
>Release:        CURRENT
>Organization:
N/A
>Environment:
I could not boot my FreeBSD box.
The machine is AMD/Athlon Thunderbird. 
Compilation of the kernel was made today.
I did not try to build a new GENERIC
>Description:
My last buildworld was made on Jul 21st and was okay.
I made a buildworld today (compiled Ok)
I made a new kernel adding the pre-requisites from the handbook for bluetooth dongles. (Compiled Okay.)
Rebooted
I faced a panic while in kernel mode.(page fault)
I single booted the older kernel
Installed world + mergemaster.
Rebooted (kernel panic again)
The new kernel cannot boot in single mode even with ACPI disabled.
The previous kernel also boot in single mode and system panics if I try to start multi user. 
 
>How-To-Repeat:
Well... I made buildworld + kernel....
I cannot imagine this only could be because of netgraph.....
>Fix:
I have no idea :-(
Could it be a gcc issue (As written in UPDATING ?)
I use no optimisation options.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: emax 
State-Changed-When: Thu Jan 6 18:28:45 GMT 2005 
State-Changed-Why:  
The fix was committed to -current and will be MFC'ed to 5-STABLE in 3 days. 

The problem was that both Netgraph(4) framework and Bluetooth device drivers 
were initialized at the same (SI_SUB_DRIVERS, SI_ORDER_MIDDLE) level. That 
created a race when a call to the Netgraph(4) framework from the Bluetooth 
device driver initialization routine hit an uninitialized mutex. 

The problem is fixed by moving Netgraph(4) framework initialization on its 
own level SI_SUB_NETGRAPH that happens just before SI_SUB_DRIVERS. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=69876 
>Unformatted:
