From mikea@mikea.ath.cx Sat Jun 30 12:08:20 2001 Return-Path: Received: from mikea.ath.cx (okc-65-26-223-53.mmcable.com [65.26.223.53]) by hub.freebsd.org (Postfix) with ESMTP id E6E5337B401 for ; Sat, 30 Jun 2001 12:08:19 -0700 (PDT) (envelope-from mikea@mikea.ath.cx) Received: (from mikea@localhost) by mikea.ath.cx (8.11.4/8.11.1) id f5UJ8JP85833; Sat, 30 Jun 2001 14:08:19 -0500 (CDT) (envelope-from mikea) Message-Id: <200106301908.f5UJ8JP85833@mikea.ath.cx> Date: Sat, 30 Jun 2001 14:08:19 -0500 (CDT) From: mikea@mikea.ath.cx Reply-To: mikea@mikea.ath.cx To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Boot: Fatal Trap 12: page fault while in kernel mode X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 28550 >Category: i386 >Synopsis: Boot: Fatal Trap 12: page fault while in kernel mode >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 30 12:10:00 PDT 2001 >Closed-Date: Thu Jan 23 02:21:59 PST 2003 >Last-Modified: Thu Jan 23 02:21:59 PST 2003 >Originator: mikea >Release: FreeBSD 4.3-STABLE i386 >Organization: self >Environment: FreeBSD 4.3; most recent cvsup 22Jun2001, 14:22 CDT System: FreeBSD mikea.ath.cx 4.3-STABLE FreeBSD 4.3-STABLE #11: Fri Jun 15 21:49:00 CDT 2001 root@mikea.ath.cx:/usr/src/sys/compile/MPFW7 i386 2x P-III/866 on MSI 694D-AR motherboard, 256 Mbytes memory, FreeBSD 4.3, >Description: during boot, while kernel is writing device discovery lines to console, system falls into kernel debugger with the following on the screen: ppi0: on ppbus0 Fatal trap 12: page fault while in kernel mode mp_lock=00000003; cpuid=0; lapic.id=00000000 fault_virtualaddress = 0x4006 faultcode = supervisor read; page not present instruction pointer = 0x8:0xc0324906 stack pointer = 0c10:0xc04d42ae0 frame pointer = 0c10:0xc04d2b0c 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) interrupt mask = net tty bio cam <- SMP:XXX kernel = type 12 trap, code=0 stopped at bcmp+0x16: repecmpsl (%esi),%es:(%edi) Kernel compiled before yesterday's cvsup works fine. Recompiled and reinstalled new kernel to see if the fault was repeatable. It is: the new kernel fails with the same symptoms. This line had just been written to console from a boot -v: "isa_compat: didn't get memory for le" Typical dmesg follows: Copyright (c) 1992-2001 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 4.3-STABLE #11: Fri Jun 15 21:49:00 CDT 2001 root@mikea.ath.cx:/usr/src/sys/compile/MPFW7 Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (868.65-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x387fbff real memory = 536805376 (524224K bytes) avail memory = 517500928 (505372K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel.ok" at 0xc04af000. netsmb_dev: loaded Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 18 -> irq 9 IOAPIC #0 intpin 16 -> irq 10 IOAPIC #0 intpin 17 -> irq 11 pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x9000-0x900f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x9400-0x941f irq 2 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhid0: WACOM ET-0405-UV1.1-1, rev 1.00/1.11, addr 2, iclass 3/1 uhub1: Texas Instruments UT-USB41 hub, class 9/0, rev 1.00/1.00, addr 3 uhub1: 7 ports with 7 removable, self powered uhci1: port 0x9800-0x981f irq 2 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pcm0: port 0xa400-0xa403,0xa000-0xa003,0x9c00-0x9cff irq 9 at device 7.5 on pci0 atapci1: port 0xbc00-0xbc3f,0xb800-0xb803,0xb400-0xb407,0xb000-0xb003,0xac00-0xac07 mem 0xd8000000-0xd801ffff irq 9 at device 12.0 on pci0 ata2: at 0xac00 on atapci1 ata3: at 0xb400 on atapci1 de0: port 0xc000-0xc07f mem 0xd8020000-0xd802007f irq 10 at device 14.0 on pci0 de0: 21140 [10-100Mb/s] pass 1.1 de0: address 00:c0:6d:15:00:38 ed0: port 0xc400-0xc41f irq 11 at device 15.0 on pci0 ed0: address 00:20:78:1a:9f:55, type NE2000 (16 bit) pci0: at 16.0 irq 9 ahc0: port 0xc800-0xc8ff mem 0xd8021000-0xd8021fff irq 11 at device 18.0 on pci0 aic7870: Single Channel A, SCSI Id=7, 16/255 SCBs pcib1: on motherboard pci2: on pcib1 eisa0: on motherboard eisa0: unknown card @@@2a02 (0x00002a02) at slot 9 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: failed to get data. psm0: flags 0x84 irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pca0 at port 0x40 on isa0 APIC_IO: Testing 8254 interrupt delivery APIC_IO: routing 8254 via IOAPIC #0 intpin 2 IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging limited to 100 packets/entry by default DUMMYNET initialized (010124) IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled SMP: AP CPU #1 Launched! ad0: 29333MB [59598/16/63] at ata0-master UDMA66 ad1: 29196MB [59320/16/63] at ata0-slave UDMA66 acd0: CDROM at ata1-master using PIO4 Waiting 5 seconds for SCSI devices to settle de0: enabling 10baseT port sa0 at ahc0 bus 0 target 2 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 5.000MB/s transfers (5.000MHz, offset 8) Mounting root from ufs:/dev/ad0s1a swapon: adding /dev/ad0s1b as swap device Automatic boot in progress... /dev/ad0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s1a: clean, 20313 free (1337 frags, 2372 blocks, 0.7% fragmentation) /dev/ad0s1f: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s1f: clean, 23346592 free (63360 frags, 2910404 blocks, 0.2% fragmentation) /dev/ad0s1e: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s1e: clean, 998312 free (352 frags, 124745 blocks, 0.0% fragmentation) /dev/ad1s1e: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad1s1e: clean, 6564680 free (42168 frags, 815314 blocks, 0.1% fragmentation) Doing initial network setup: hostname . de0: enabling 10baseT port de0: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:c0:6d:15:00:38 media: 10baseT/UTP status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 >How-To-Repeat: Compile and boot a kernel with source from cvsup at 22Jun2001 14:22 using my kernel config file MPFW7 >Fix: I got it to go away by removing from the kernel config file every device not physically present, and by setting the following options: options MAXDSIZ="(512*1024*1024)" options DFLDSIZ="(512*1024*1024)" which is the amount of RAM on my MP system. I have preserved the failing kernel and the config file that was used to build it. >Release-Note: >Audit-Trail: From: David Malone To: mikea@mikea.ath.cx Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: i386/28550: Boot: Fatal Trap 12: page fault while in kernel mode Date: Wed, 4 Jul 2001 16:11:58 +0100 On Sat, Jun 30, 2001 at 02:08:19PM -0500, mikea@mikea.ath.cx wrote: > >Environment: > FreeBSD 4.3; most recent cvsup 22Jun2001, 14:22 CDT > System: FreeBSD mikea.ath.cx 4.3-STABLE FreeBSD 4.3-STABLE #11: Fri Jun 15 21:49:00 CDT 2001 root@mikea.ath.cx:/usr/src/sys/compile/MPFW7 i386 [snip] > Kernel compiled before yesterday's cvsup works fine. Recompiled > and reinstalled new kernel to see if the fault was repeatable. > It is: the new kernel fails with the same symptoms. Just to check - is 22 June the last cvsup which produced a working kernel or the first cvsup which failed to produce a working kernel? Do you have the date from the previous kernel? (I can't see anything obvious in the commit logs near the 22 June...) David. State-Changed-From-To: open->closed State-Changed-By: dougb State-Changed-When: Thu Jan 23 02:21:48 PST 2003 State-Changed-Why: Feedback timeout http://www.freebsd.org/cgi/query-pr.cgi?pr=28550 >Unformatted: