From nobody@FreeBSD.org  Tue Jan 29 03:34:55 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id A8FB337B404
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Jan 2002 03:34:54 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0TBYsL59908;
	Tue, 29 Jan 2002 03:34:54 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201291134.g0TBYsL59908@freefall.freebsd.org>
Date: Tue, 29 Jan 2002 03:34:54 -0800 (PST)
From: johan beisser <jan@caustic.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: -CURRENT fatal trap during boot.
X-Send-Pr-Version: www-1.0

>Number:         34405
>Category:       i386
>Synopsis:       -CURRENT fatal trap during boot.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 29 03:40:01 PST 2002
>Closed-Date:    Wed Aug 21 16:00:43 PDT 2002
>Last-Modified:  Wed Aug 21 16:00:43 PDT 2002
>Originator:     johan beisser
>Release:        5.0-CURRENT
>Organization:
>Environment:
FreeBSD pustulio.nttmcl.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Jan 26 10:01:44 GMT 2002 root@pustulio.nttmcl.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
FreeBSD-CURRENT seems to have minor issues booting on a machine previously placed in hibernation by windows 2000. When booting from an apm suspend command (apm -z, or zzz), this is not an issue.

sample from the dmesg:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x4
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0240dca
stack pointer           = 0x10:0xc05aeb04
frame pointer           = 0x10:0xc05aeb10
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)
>How-To-Repeat:
So far, i've only seen this on a Toshiba Satellite Pro 4600:

First, boot in to windows 2000, place the machine in to hibernation mode.

then boot to FreeBSD, and watch the fun begin:

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #0: Sat Jan 26 10:01:44 GMT 2002
    root@pustulio.nttmcl.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc058c000.
Preloaded elf module "/boot/kernel/vesa.ko" at 0xc058c0a8.
Preloaded elf module "/boot/kernel/ipfw.ko" at 0xc058c154.
Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc058c200.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc058c2ac.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc058c358.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 797579379 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (797.58-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT
,PSE36,MMX,FXSR,SSE>
real memory  = 267780096 (261504K bytes)
avail memory = 254480384 (248516K bytes)
Pentium Pro MTRR support enabled
VESA: v2.0, 16384k memory, flags:0x0, mode table:0xc05282a0 (1000040)
VESA: Trident CYBER 9910
Using $PIR table, 7 entries at 0xc00f01c0
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <TOSHIB 750     > on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xee08-0xee0b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_pcib0: <Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <PCI bus> on acpi_pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <PCI-PCI bridge> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
fxp0: <Intel Pro/100 Ethernet> at device 8.0 on pci2
fxp0: could not map device registers


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x4
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0240dca
stack pointer           = 0x10:0xc05aeb04
frame pointer           = 0x10:0xc05aeb10
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)

>Fix:
no idea. i'm still trying to get a decent trace and dump of the information. More to come, promise.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Thu Jan 31 06:45:33 PST 2002 
State-Changed-Why:  
More detail on the panic has been promised. :-) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34405 
State-Changed-From-To: feedback->closed 
State-Changed-By: keramida 
State-Changed-When: Wed Aug 21 15:59:27 PDT 2002 
State-Changed-Why:  
CURRENT has changed a lot since Jan 2002. 
No feedback since then :/ 

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