Fatal trap 12: page fault while in kernel mode.

Tim Wickberg me at k9mach3.org
Sat May 22 23:10:32 PDT 2004


Status update:

Thanks to hmo for a lot of troubleshooting. The trap 12 still occurs, 
though. A trace and the dmesg where the system fails follow. Note that 
these are with changes made to kern_device.c :

/sys/kern/kern_device.c, starting at line 158

static
lwkt_port_t
_init_cdevmsg(dev_t dev, cdevmsg_t msg, int cmd)
{
    lwkt_initmsg_simple(&msg->msg, cmd);
    KKASSERT(dev != NULL);
    msg->dev = dev;
    return(dev->si_port);
}
trace (using hmp's changes):

_init_cdevmsg(ffffffff,c05e4900,10003,5,0) at _init_cdevmsg+0x47
dev_dstrategy(ffffffff,c0e2e6ec,200,40000,d60bcddc) at dev_dstrategy+0x17
mbr_extended(ffffffff,d66ea4d0,d60bccb8,3c24db0,28512c0,3c24db0,3f,f0,0,1) 
at mbr_extended+0x5e
dsinit(c0ce6238,d66ea4d0,d66ea4cc,d66ea490,0) at dsinit+0x3f8
dsopen(c0ce6238,2000,0,d66ea4cc,d66ea4d0) at dsopen+0xde
diskopen(c0ce6238,1,2000,c04a6bc0,c05e4b1c) at diskopen+0x97
disk_putport(d66ea490,c05e4b1c) at disk_putport+0x35
lwkt_domsg(d66ea490,c05e4b1cd66daec0,c0ce5f68,c05e4b84) at lwkt_domsg+0x35
dev_dopen(c0ce6238,1,2000,c04a6bc0,c05e4c00) at dev_dopen0x3a
spec_open(c05e4c00) at spec_open+0x18a
ffs_mountfs(d66daec0,c0dd1438,c04a6bc0,c04c80a0,c05e4d4c) at 
fs_mountfs+0x198
ffs_mount(c0dd1438,0,0,0,c04a6bc0) at ffs_mount+0xa4
vfs_mountroot_try(c05c1198,c04417ac) at vfs_mountroot_try+0x148
vfs_mountroot(0,5e1c00,5ef000,0,c013782c) at vfs_mountroot+0x5a
mi_startup(5e1000,ff800000,c04f1244,c05e471c,c05e470c) at i_startup+0x90
begin() at begin+0x43

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
DragonFly 1.0-CURRENT #3: Sun May 23 06:45:26 GMT 2004
    root@:/usr/obj/usr/src/sys/GENERIC
CPU: Intel(R) Pentium(R) M processor 1600MHz (1594.83-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
  Features=0xa7e9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
real memory  = 134217728 (131072K bytes)
avail memory = 121647104 (118796K bytes)
Preloaded elf kernel "/kernel" at 0xc05c2000.
Preloaded elf module "/modules/splash_bmp.ko" at 0xc05c2260.
Preloaded elf module "/modules/vesa.ko" at 0xc05c230c.
module_register_init: MOD_LOAD (vesa, c05bddd8, 0) error 6
Pentium Pro MTRR support enabled
md0: Malloc disk
pcibios: BIOS version 2.10
Using $PIR table, 15 entries at 0xc00fdea0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82855 host to AGP bridge> mem 0xd0000000-0xdfffffff at device 0.0 on pci0
pcib1: <PCI to PCI bridge (vendor=8086 device=3341)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4c66 graphics accelerator> at 0.0 irq 11
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1800-0x181f irq 11 at device 29.0 on pci0
installed MI handler for int 11
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1820-0x183f irq 11 at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1840-0x185f irq 11 at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <USB controller> at 29.7 irq 11
pcib2: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
cbb0: <TI1520 PCI-CardBus Bridge> mem 0xb0000000-0xb0000fff irq 11 at device 0.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <TI1520 PCI-CardBus Bridge> mem 0xb1000000-0xb1000fff irq 11 at device 0.1 on pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 0x8000-0x803f mem 0xc0200000-0xc020ffff,0xc0220000-0xc023ffff irq 11 at device 1.0 on pci2
em0: Speed: N/A, Duplex:N/A
pci2: <unknown card> (vendor=0x168c, dev=0x0012) at 2.0 irq 11
isab0: <PCI to ISA bridge (vendor=8086 device=24cc)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 ATA100 controller> port 0x1860-0x186f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
installed MI handler for int 14
ata1: at 0x170 irq 15 on atapci0
installed MI handler for int 15
pci0: <unknown card> (vendor=0x8086, dev=0x24c3) at 31.3 irq 11
pci0: <unknown card> (vendor=0x8086, dev=0x24c5) at 31.5 irq 11
pci0: <unknown card> (vendor=0x8086, dev=0x24c6) at 31.6 irq 11
eisa0: <EISA bus> on motherboard
eisa0: unknown card @@@0000 (0x00000000) at slot 1
orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff,0xdc000-0xdffff,0xe0000-0xeffff on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
installed MI handler for int 1
psm0: <PS/2 Mouse> irq 12 on atkbdc0
installed MI handler for int 12
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
installed MI handler for int 4
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
installed MI handler for int 3
ppc0: cannot reserve I/O port range
installed MI handler for int 0
ata1-slave: ATAPI identify retries exceeded
ad0: 76319MB <IC25N080ATMR04-0> [155061/16/63] at ata0-master UDMA100
acd0: CD-RW <UJDA745 DVD/CDRW> at ata1-master PIO4
no such device 'disk'
Mounting root from ufs:/dev/ad0s3a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <MATSHITA UJDA745 DVD/CDRW 1.02> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x2f
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc024b7df
stack pointer	        = 0x10:0xc05e48e8
frame pointer	        = 0x10:0xc05e48ec
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)
current thread          = pri 12 
interrupt mask		= 




More information about the Bugs mailing list