From seth@freebie.dp.ny.frb.org Tue Mar 23 07:53:41 1999
Return-Path: <seth@freebie.dp.ny.frb.org>
Received: from fed-ef1.frb.gov (fed.frb.gov [132.200.32.32])
	by hub.freebsd.org (Postfix) with ESMTP
	id 15F3E15073; Tue, 23 Mar 1999 07:36:44 -0800 (PST)
	(envelope-from seth@freebie.dp.ny.frb.org)
Received: by fed-ef1.frb.gov; id KAA27854; Tue, 23 Mar 1999 10:36:19 -0500 (EST)
Received: from m1pmdf.frb.gov(192.168.3.38) by fed.frb.gov via smap (4.1)
	id xma027076; Tue, 23 Mar 99 10:35:00 -0500
Message-Id: <199903231534.KAA00619@freebie.dp.ny.frb.org>
Date: Tue, 23 Mar 1999 10:34:43 -0500 (EST)
From: <seth@freebie.dp.ny.frb.org>
Reply-To: seth@freebie.dp.ny.frb.org
To: FreeBSD-gnats-submit@freebsd.org, eivind@freebsd.org,
	des@flood.ping.uio.no
Subject: Kernel panic (?) trap 12: page fault while in kernel mode
X-Send-Pr-Version: 3.2

>Number:         10752
>Category:       kern
>Synopsis:       Kernel panic (?) trap 12: page fault while in kernel mode
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 23 08:00:01 PST 1999
>Closed-Date:    Wed Jun 23 17:29:54 PDT 1999
>Last-Modified:  Wed Jun 23 17:30:38 PDT 1999
>Originator:     Zippy (seth@freebie.dp.ny.frb.org)
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
>Environment:

Dell dual-processor Xeon 450, 384MB RAM:

  Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.1-RELEASE #0: Fri Mar 12 11:30:08 EST 1999
    seth@freebie.dp.ny.frb.org:/usr/src/sys/compile/KERNEL-EF
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Xeon/Celeron (686-class CPU)
  Origin = "GenuineIntel"  Id = 0x653  Stepping=3
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,<b24>>
real memory  = 402653184 (393216K bytes)
avail memory = 388898816 (379784K bytes)
Programming 24 pins in IOAPIC #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" at 0xf02c2000.
Probing for devices on PCI bus 0:
chip0: <Host to PCI bridge (vendor=8086 device=71a0)> rev 0x00 on pci0.0.0
chip1: <PCI to PCI bridge (vendor=8086 device=71a1)> rev 0x00 on pci0.1.0
chip2: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.7.0
chip3: <Intel 82371AB Power management controller> rev 0x02 on pci0.7.3
xl0: <3Com 3c905B Fast Etherlink XL 10/100BaseTX> rev 0x30 int a irq 16 on pci0.
13.0
xl0: Ethernet address: 00:10:5a:22:14:82
xl0: autoneg complete, link status good (half-duplex, 100Mbps)
xl1: <3Com 3c905B Fast Etherlink XL 10/100BaseTX> rev 0x24 int a irq 17 on pci0.
17.0
xl1: Ethernet address: 00:c0:4f:68:dc:ec
xl1: autoneg complete, link status good (half-duplex, 100Mbps)
chip4: <PCI to PCI bridge (vendor=1011 device=0024)> rev 0x03 on pci0.19.0
Probing for devices on PCI bus 1:
vga0: <VGA-compatible display device> rev 0x01 int a irq 16 on pci1.0.0
Probing for devices on PCI bus 2:
ahc0: <Adaptec aic7890/91 Ultra2 SCSI adapter> rev 0x00 int a irq 18 on pci2.10.
0
ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
ahc1: <Adaptec aic7880 Ultra SCSI adapter> rev 0x01 int a irq 18 on pci2.14.0
ahc1: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 irq 12 on isa
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
ppc0 at 0x378 irq 7 on isa
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
nlpt0: <generic printer> on ppbus 0
nlpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
plip0: <PLIP network interface> on ppbus 0
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via pin 2
Waiting 8 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
sa0 at ahc1 bus 0 target 6 lun 0
npx0: INT 16 interface
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via pin 2
Waiting 8 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
sa0 at ahc1 bus 0 target 6 lun 0
sa0: <ARCHIVE Python 04106-XXX 715G> Removable Sequential Access SCSI-2 device 
sa0: 10.0MB/s transfers (10.0MHz, offset 15)
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST39102LW 0004> Fixed Direct Access SCSI-2 device 
da0: 80.0MB/s transfers (40.0MHz, offset 15, 16bit), Tagged Queueing Enabled
da0: 8683MB (17783240 512 byte sectors: 255H 63S/T 1106C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <SEAGATE ST39102LW 0004> Fixed Direct Access SCSI-2 device 
da1: 80.0MB/s transfers (40.0MHz, offset 15, 16bit), Tagged Queueing Enabled
da1: 8683MB (17783240 512 byte sectors: 255H 63S/T 1106C)
changing root device to da0s1a
cd0 at ahc1 bus 0 target 5 lun 0
cd0: <NEC CD-ROM DRIVE:465 1.03> Removable CD-ROM SCSI-2 device 
cd0: 20.0MB/s transfers (20.0MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
xl1: selecting MII, 100Mbps, half duplex
xl1: selecting MII, 100Mbps, full duplex


>Description:

From the debug:

Fatal trap 12: page fault while in kernel mode
mp_lock=01000002; cpuid=1; lapic.id=01000000
fault virtual address = 0xf17642ac
fault code = supervisor read, page not present
instruction pointer = 0x8:0xf0171d5c
stack pointer = 0x10:0xf94ffe4c
frame pointer = 0x10:0xf94ffe54
code segment = base 0x0, limit 0xfffff, type 0x1b
             = DPL 0, pres 1, def321, gran 1
processor eflags = interrupt enabled, resume, IOPL=0
current process = 68658 (xperfmon++)
interrupt mask = <- SMP:XXX
kernel: type 12 trap, code=0
Stopped at ufs_sysctl+0x60 : mov1 0x14 (%edx), %eax

Interesting note: system was stable for 10 days until this happened;
I was using kldload yesterday to load msdos & received this error:

Mar 22 12:05:28 freebie /kernel: module_register_init: module_register(msdos, f0
16efb8, 0xf1780a04) error 17

I've had one other panic (although I didn't get the info) about a month ago;
I suspect it was due to similar things (using kldload on msdos).

>How-To-Repeat:

will try in off-hours to repeat by kldloading msdos.

>Fix:
	
	


>Release-Note:
>Audit-Trail:

From: Zippy <seth@freebie.dp.ny.frb.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/10752: Kernel panic (?) trap 12: page fault while in kernel
 mode
Date: Tue, 23 Mar 1999 13:07:57 -0500 (EST)

 One followup: someone mentioned that error 17 (as a result of 'kldload
 msdos') was EEXIST.  Not sure what that implies, but I do know that
 kldstat did NOT show msdos in there before the kldload, and it WAS in the
 list after the kldload.  I then kldunloaded it, and the system was stable
 (under extremely light usage) for the next 12 hours.  This morning, as I
 was logging on via xdm (and xperfmon++ was starting, I guess), I got the
 fault.
 
 Hope this helps.
 
 SB
 
 
 

From: Steve Sapovits <steve.sapovits@platinum.com>
To: freebsd-gnats-submit@freebsd.org, seth@freebie.dp.ny.frb.org
Cc:  
Subject: Re: kern/10752: Kernel panic (?) trap 12: page fault while in kernel 
 mode
Date: Tue, 18 May 1999 15:16:53 -0400

 I'm also getting what appears to be a similar or identical panic.
 I recently upgraded to 3.1 from 2.2.5.  The panic started after a
 few days and has recurred consistently every few days, sometimes
 (infrequently) more than once per day.  I run 3.1 on an old 486 I
 use almost entirely as a gateway machine to access the internet and
 my company's network.  I also run an X Window manager (fvwm) off that
 box most of the time.
 
 Fault trap 12: fault while in kernel mode
 
 fault virtual address              = 0xb8
 fault code                         = supervisor read, page not present
 instruction pointer                = 0x8:0xf0154817
 stack pointer                      = 0x10:0xf028d9ac
 frame pointer                      = 0x10:0xf028d9c0
 code segment                       = base 0x0, limit 0xfffff, type 0x1b
                                    = DPL 0, pres1, def321, gran 1
 processor flags                    = interrupt enabled, resume, IOPL = 0
 current process                    = Idle
 interrupt mask                     = net tty bio cam
 trap number                        = 12
 panic: page fault
 
 
 May 18 09:26:49 lowly /kernel: Copyright (c) 1992-1999 FreeBSD Inc.
 May 18 09:26:49 lowly /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
 May 18 09:26:49 lowly /kernel: The Regents of the University of California. Allrights reserved.
 May 18 09:26:49 lowly /kernel: FreeBSD 3.1-RELEASE #4: Sun Apr 18 08:01:58 EDT 1999
 May 18 09:26:49 lowly /kernel: root@frumble.busytown.org:/usr/src/sys/compile/lowly
 May 18 09:26:49 lowly /kernel: Timecounter "i8254"  frequency 1193182 Hz
 May 18 09:26:49 lowly /kernel: CPU: i486DX (486-class CPU)
 May 18 09:26:49 lowly /kernel: real memory  = 16777216 (16384K bytes)
 May 18 09:26:49 lowly /kernel: avail memory = 13520896 (13204K bytes)
 May 18 09:26:50 lowly /kernel: Preloaded elf kernel "kernel" at 0xf030d000.
 May 18 09:26:50 lowly /kernel: Probing for devices on the ISA bus:
 May 18 09:26:50 lowly /kernel: sc0 on isa
 May 18 09:26:50 lowly /kernel: sc0: VGA color <16 virtual consoles, flags=0x0>
 May 18 09:26:50 lowly /kernel: ed0 at 0x300-0x31f irq 9 on isa
 May 18 09:26:50 lowly /kernel: ed0: address 00:c0:93:00:b1:72, type NE2000 (16 bit)
 May 18 09:26:50 lowly /kernel: atkbdc0 at 0x60-0x6f on motherboard
 May 18 09:26:50 lowly /kernel: atkbd0 irq 1 on isa
 May 18 09:26:51 lowly /kernel: sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
 May 18 09:26:51 lowly /kernel: sio0: type 16450
 May 18 09:26:51 lowly /kernel: sio2 at 0x3e8-0x3ef irq 5 on isa
 May 18 09:26:51 lowly /kernel: sio2: type 16550A
 May 18 09:26:51 lowly /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
 May 18 09:26:51 lowly /kernel: fd0: 1.44MB 3.5in
 May 18 09:26:51 lowly /kernel: fd1: 1.2MB 5.25in
 May 18 09:26:51 lowly /kernel: wdc0 at 0x1f0-0x1f7 irq 14 on isa
 May 18 09:26:51 lowly /kernel: wdc0: unit 0 (wd0): <Conner Peripherals 85MB - CP30084E>
 May 18 09:26:51 lowly /kernel: wd0: 81MB (166152 sectors), 903 cyls, 4 heads, 46 S/T, 512
 May 18 09:26:51 lowly /kernel: B/S
 May 18 09:26:51 lowly /kernel: wdc0: unit 1 (wd1): <Conner Peripherals 210MB - CP3201>
 May 18 09:26:52 lowly /kernel: wd1: 203MB (415872 sectors), 684 cyls, 16 heads,38 S/T, 512 B/S
 May 18 09:26:52 lowly /kernel: ppc0 at 0x378 irq 7 on isa
 May 18 09:26:52 lowly /kernel: ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 May 18 09:26:52 lowly /kernel: nlpt0: <generic printer> on ppbus 0
 May 18 09:26:52 lowly /kernel: nlpt0: Interrupt-driven port
 May 18 09:26:52 lowly /kernel: ppi0: <generic parallel i/o> on ppbus 0
 May 18 09:26:52 lowly /kernel: plip0: <PLIP network interface> on ppbus 0
 May 18 09:26:52 lowly /kernel: vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
 May 18 09:26:52 lowly /kernel: npx0 on motherboard
 May 18 09:26:52 lowly /kernel: npx0: INT 16 interface
 May 18 09:26:52 lowly /kernel: IP packet filtering initialized, divert enabled,rule-based forwarding disabled, default to accept, logging disabled
 May 18 09:26:53 lowly /kernel: changing root device to wd0s1a
 
 -- 
 Steve Sapovits  |  PLATINUM technology  |  steve.sapovits@platinum.com
 

From: Seth <seth@freebie.dp.ny.frb.org>
To: Steve Sapovits <steve.sapovits@platinum.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/10752: Kernel panic (?) trap 12: page fault while in kernel
 mode
Date: Tue, 18 May 1999 15:24:30 -0400 (EDT)

 Just FYI, I haven't had a panic since I moved from -RELEASE to -STABLE
 (about a month or so ago?)... the -STABLE I was running was an earlier 3.1
 variety.  I just moved to 3.2-STABLE yesterday and, despite a problem with
 the adaptec 7890 (since resolved by v.1.5.2.5 of ahc_pci.c), everything
 went smoothly.
 
 If you're still on 3.1-RELEASE, I suggest trying -STABLE... it worked for
 me.
 
 SB
 
 On Tue, 18 May 1999, Steve Sapovits wrote:
 
 > 
 > I'm also getting what appears to be a similar or identical panic.
 > I recently upgraded to 3.1 from 2.2.5.  The panic started after a
 > few days and has recurred consistently every few days, sometimes
 > (infrequently) more than once per day.  I run 3.1 on an old 486 I
 > use almost entirely as a gateway machine to access the internet and
 > my company's network.  I also run an X Window manager (fvwm) off that
 > box most of the time.
 > 
 > Fault trap 12: fault while in kernel mode
 > 
 > fault virtual address              = 0xb8
 > fault code                         = supervisor read, page not present
 > instruction pointer                = 0x8:0xf0154817
 > stack pointer                      = 0x10:0xf028d9ac
 > frame pointer                      = 0x10:0xf028d9c0
 > code segment                       = base 0x0, limit 0xfffff, type 0x1b
 >                                    = DPL 0, pres1, def321, gran 1
 > processor flags                    = interrupt enabled, resume, IOPL = 0
 > current process                    = Idle
 > interrupt mask                     = net tty bio cam
 > trap number                        = 12
 > panic: page fault
 > 
 > 
 > May 18 09:26:49 lowly /kernel: Copyright (c) 1992-1999 FreeBSD Inc.
 > May 18 09:26:49 lowly /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
 > May 18 09:26:49 lowly /kernel: The Regents of the University of California. Allrights reserved.
 > May 18 09:26:49 lowly /kernel: FreeBSD 3.1-RELEASE #4: Sun Apr 18 08:01:58 EDT 1999
 > May 18 09:26:49 lowly /kernel: root@frumble.busytown.org:/usr/src/sys/compile/lowly
 > May 18 09:26:49 lowly /kernel: Timecounter "i8254"  frequency 1193182 Hz
 > May 18 09:26:49 lowly /kernel: CPU: i486DX (486-class CPU)
 > May 18 09:26:49 lowly /kernel: real memory  = 16777216 (16384K bytes)
 > May 18 09:26:49 lowly /kernel: avail memory = 13520896 (13204K bytes)
 > May 18 09:26:50 lowly /kernel: Preloaded elf kernel "kernel" at 0xf030d000.
 > May 18 09:26:50 lowly /kernel: Probing for devices on the ISA bus:
 > May 18 09:26:50 lowly /kernel: sc0 on isa
 > May 18 09:26:50 lowly /kernel: sc0: VGA color <16 virtual consoles, flags=0x0>
 > May 18 09:26:50 lowly /kernel: ed0 at 0x300-0x31f irq 9 on isa
 > May 18 09:26:50 lowly /kernel: ed0: address 00:c0:93:00:b1:72, type NE2000 (16 bit)
 > May 18 09:26:50 lowly /kernel: atkbdc0 at 0x60-0x6f on motherboard
 > May 18 09:26:50 lowly /kernel: atkbd0 irq 1 on isa
 > May 18 09:26:51 lowly /kernel: sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
 > May 18 09:26:51 lowly /kernel: sio0: type 16450
 > May 18 09:26:51 lowly /kernel: sio2 at 0x3e8-0x3ef irq 5 on isa
 > May 18 09:26:51 lowly /kernel: sio2: type 16550A
 > May 18 09:26:51 lowly /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
 > May 18 09:26:51 lowly /kernel: fd0: 1.44MB 3.5in
 > May 18 09:26:51 lowly /kernel: fd1: 1.2MB 5.25in
 > May 18 09:26:51 lowly /kernel: wdc0 at 0x1f0-0x1f7 irq 14 on isa
 > May 18 09:26:51 lowly /kernel: wdc0: unit 0 (wd0): <Conner Peripherals 85MB - CP30084E>
 > May 18 09:26:51 lowly /kernel: wd0: 81MB (166152 sectors), 903 cyls, 4 heads, 46 S/T, 512
 > May 18 09:26:51 lowly /kernel: B/S
 > May 18 09:26:51 lowly /kernel: wdc0: unit 1 (wd1): <Conner Peripherals 210MB - CP3201>
 > May 18 09:26:52 lowly /kernel: wd1: 203MB (415872 sectors), 684 cyls, 16 heads,38 S/T, 512 B/S
 > May 18 09:26:52 lowly /kernel: ppc0 at 0x378 irq 7 on isa
 > May 18 09:26:52 lowly /kernel: ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 > May 18 09:26:52 lowly /kernel: nlpt0: <generic printer> on ppbus 0
 > May 18 09:26:52 lowly /kernel: nlpt0: Interrupt-driven port
 > May 18 09:26:52 lowly /kernel: ppi0: <generic parallel i/o> on ppbus 0
 > May 18 09:26:52 lowly /kernel: plip0: <PLIP network interface> on ppbus 0
 > May 18 09:26:52 lowly /kernel: vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
 > May 18 09:26:52 lowly /kernel: npx0 on motherboard
 > May 18 09:26:52 lowly /kernel: npx0: INT 16 interface
 > May 18 09:26:52 lowly /kernel: IP packet filtering initialized, divert enabled,rule-based forwarding disabled, default to accept, logging disabled
 > May 18 09:26:53 lowly /kernel: changing root device to wd0s1a
 > 
 > -- 
 > Steve Sapovits  |  PLATINUM technology  |  steve.sapovits@platinum.com
 > 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Wed Jun 23 17:29:54 PDT 1999 
State-Changed-Why:  
Submitter notes that this appears to have been fixed in -stable. 
>Unformatted:
