From kcwu@kcwu.homeip.net  Wed Jun 25 07:40:48 2003
Return-Path: <kcwu@kcwu.homeip.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 57F8A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jun 2003 07:40:48 -0700 (PDT)
Received: from kcwu.homeip.net (u142-187.u61-70.giga.net.tw [61.70.142.187])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0B2DA44001
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jun 2003 07:40:47 -0700 (PDT)
	(envelope-from kcwu@kcwu.homeip.net)
Received: from kcwu.homeip.net (fakeidkcwu@kcwu.homeip.net [127.0.0.1])
	by kcwu.homeip.net (8.12.9/8.12.9) with ESMTP id h5PEej3F043593
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jun 2003 22:40:45 +0800 (CST)
	(envelope-from kcwu@kcwu.homeip.net)
Received: (from kcwu@localhost)
	by kcwu.homeip.net (8.12.9/8.12.9/Submit) id h5PEeibv043592;
	Wed, 25 Jun 2003 22:40:44 +0800 (CST)
	(envelope-from kcwu)
Message-Id: <200306251440.h5PEeibv043592@kcwu.homeip.net>
Date: Wed, 25 Jun 2003 22:40:44 +0800 (CST)
From: Kuang-che Wu <kcwu@kcwu.homeip.net>
Reply-To: Kuang-che Wu <kcwu@kcwu.homeip.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: fatal trap 12 during boot, sys/dev/pci/pci.c
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53725
>Category:       kern
>Synopsis:       fatal trap 12 during boot, sys/dev/pci/pci.c
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 25 07:50:07 PDT 2003
>Closed-Date:    Sat Dec 06 08:49:41 PST 2003
>Last-Modified:  Sat Dec 06 08:49:41 PST 2003
>Originator:     Kuang-che Wu
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD kcwu.homeip.net 5.1-CURRENT FreeBSD 5.1-CURRENT #4: Mon Jun 23 23:40:40 CST 2003 root@kcwu.homeip.net:/files/usr.obj/usr/src/sys/DESKTOP i386


	
>Description:
I upgrade my world to latest current yesterday.
And it panic on my notebook during boot, around pci messages.

I use GENERIC config for this testing.
And I unset acpi_load, otherwise it will hang during boot.

Here is the panic message.
<cut>
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 6 entries at 0xc00fe840
pcib0: <Intel 82443MX host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0


Fatal trap 12: page fault while in kernel mode
fault virtual address     = 0xeb813
fault code                = supervisor read, page not present
instruction pointer       = 0x8:0xc00eb714
stack pointer             = 0x10:0xc06fda3c
frame pointer             = 0x10:0xc06fda3c
code segment              = base 0x0, limit 0xfffff, type 0x1b
                          = DPL 0, pres 1, def32 1, gran 1
processor eflags          = interrupt enabled, resume, IOPL = 0
current process           = 0 (swapper)
kernel: type 12 trap, code=0
Stopped at      0xc00eb714:       cmpb    %cs:0x1(%esi),%bl
db> tr
kernbase(c0d31580,c04a499d,c06fdad4,50d,38) at 0xc00eb714
_end(cb9d08c4,c4f6ec8b,81067540,ffffe5,e67f2400) at 0xc06fdaa8
db>
</cut>

And what I got from gdb:
<cut>
/usr/obj/usr/src/sys/GENERIC# gdb -q -k kernel.debug
(kgdb) l *0xc00eb714
No source file for address 0xc00eb714.
</cut>

After binary search, I found the difference between panic or not
is reversion 1.215 and 1.216 of sys/dev/pci/pci.c.

Kernel panic all from 1.216 to 1.221 of pci.c.

If you want to have more information, please let me know.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Wed Jun 25 08:15:39 PDT 2003 
Responsible-Changed-Why:  
1.216 was committed by jhb, and enabled PCI interrupt routing on 
i386 UP machines.  Hand it over to jhb, since he's most likely 
to know what to do. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=53725 

From: Kuang-che Wu <kcwu@kcwu.homeip.net>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/53725: fatal trap 12 during boot, sys/dev/pci/pci.c
Date: Sat, 6 Dec 2003 21:02:00 +0800

 --8t9RHnE3ZwKMSgU+
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Wed, Jun 25, 2003 at 07:50:07AM -0700, FreeBSD-gnats-submit@FreeBSD.org wrote:
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=53725
 > >Synopsis:       fatal trap 12 during boot, sys/dev/pci/pci.c
 > >Arrival-Date:   Wed Jun 25 07:50:07 PDT 2003
 
 I upgrade to recent -current today.
 It boots and looks fine, no more panic.
 
 --8t9RHnE3ZwKMSgU+
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (FreeBSD)
 
 iD8DBQE/0dNG4yBMH10rsRoRAvLyAJ4lhWFVeGCvtsZopOiqxjGPR3YjPwCfRl5M
 ZuaSQY3H9Aqj4VSOPaugHLE=
 =ifSV
 -----END PGP SIGNATURE-----
 
 --8t9RHnE3ZwKMSgU+--
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Sat Dec 6 08:48:47 PST 2003 
State-Changed-Why:  
The submitter reports the panic has been fixed. 

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