Fatal trap 12 on booting GERERIC kernel

Noritoshi Demizu demizu at dd.iij4u.or.jp
Thu Aug 11 00:00:10 PDT 2005


The latest GENERIC kernel fails to boot on my machine.
Yesterday's GENERIC kernel booted successfully.

When today's GENERIC kernel fails to boot, it prints the following message.

  Fatal trap 12: page fault while in kernel mode
  fault virtual address = 0x36
  fault code            = supervisor write, page not present
  instruction pointer   = 0x8:0xc0412173
  ....

The instruction pointer points inside vm_fault().  More specifically,
line 259 of vm/vm_fault.c rev 1.18.

  257:	vm_object_reference(fs.first_object);
  258:	fs.vp = vnode_pager_lock(fs.first_object);
  259:	vm_object_pip_add(fs.first_object, 1);

In that case, fs.first_object == NULL.  It seems that vm_map_lookup()
called at line 209 of vm/vm_fault.c rev 1.18 returns KERN_SUCCESS.
I checked these by inserting printf()s and panic()s in vm_fault().
Since I do not know the internal of VM, I am sorry I cannot fix this
problem by myself.

The stack trace when the fatal trap occurs is as following:

  vm_fault(...)
  trap_pfault(...)
  trap(...)
  calltrap(...)
  generic_bzero(0,0,0)

If the arguments of generic_bzero(0,0,0) was displayed correctly,
the arguments seem to be inappropriate.  Since generic_bzero() is
shown as the bottom of strack trace, I do not know who calls
bzero() with such arguments.

Attached is the output of dmesg on my machine when it boots successfully.
When it fails to boot, the following line at line 114 is the last line.

  cd0: Attempt to query device size failed: NOT READY, Medium not present

Just after this line, the GENERIC kernel traps.

Does anybody else experience the same problem?
Could anybody help me to fix my problem?

Thank you very much.

Regards,
Noritoshi Demizu
Copyright (c) 2003, 2004, 2005 The DragonFly Project.
Copyright (c) 1992-2003 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.
DragonFly 1.3.4-DEVELOPMENT #0: Thu Aug 11 02:19:27 JST 2005
    noritosi at kodaira2:/home/src/os/DragonFlyBSD-current-demizu-sack/src/sys/compile/GENERIC
TSC clock: 3184805304 Hz, i8254 clock: 1193336 Hz
CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3184.45-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 2147352576 (2097024K bytes)
avail memory = 2076110848 (2027452K bytes)
Preloaded elf kernel "/kernel.ok" at 0xc06f3000.
Preloaded elf module "/modules/acpi.ko" at 0xc06f3214.
Pentium Pro MTRR support enabled
md0: Malloc disk
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00fc410
npx0: <math processor> on motherboard
npx0: INT 16 interface
Using XMM optimized bcopy/copyin/copyout
acpi0: <DELL PE2650> on motherboard
installed MI handler for int 9
acpi0: Power Button (fixed)
Warning: ACPI is disabling APM's device.  You can't run both
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x1028, dev=0x000c) at 4.0 irq 11
pci0: <unknown card> (vendor=0x1028, dev=0x0008) at 4.1 irq 10
pci0: <unknown card> (vendor=0x1028, dev=0x000d) at 4.2 irq 7
pci0: <ATI Mach64-GR graphics accelerator> at 14.0
atapci0: <ServerWorks CSB5 ATA100 controller> port 0x8b0-0x8bf,0x8d8-0x8db,0x8d0-0x8d7,0x8c8-0x8cb,0x8c0-0x8c7 at device 15.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
ohci0: <OHCI (generic) USB controller> mem 0xfe100000-0xfe100fff irq 5 at device 15.2 on pci0
installed MI handler for int 5
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isab0: <PCI to ISA bridge (vendor=1166 device=0225)> at device 15.3 on pci0
isa0: <ISA bus> on isab0
pcib1: <ServerWorks host to PCI bridge(unknown chipset)> at pcibus 1 on motherboard
pci1: <PCI bus> on pcib1
pcib2: <ServerWorks host to PCI bridge(unknown chipset)> at pcibus 2 on motherboard
pci2: <PCI bus> on pcib2
pcib3: <ServerWorks host to PCI bridge> at pcibus 3 on motherboard
pci3: <PCI bus> on pcib3
bge0: <Broadcom BCM5703X Gigabit Ethernet, ASIC rev. 0x1002> mem 0xfcf10000-0xfcf1ffff irq 11 at device 6.0 on pci3
miibus0: <MII bus> on bge0
brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: MAC address: 00:0f:1f:6a:46:ed
installed MI handler for int 11
bge1: <Broadcom BCM5703X Gigabit Ethernet, ASIC rev. 0x1002> mem 0xfcf00000-0xfcf0ffff irq 10 at device 8.0 on pci3
miibus1: <MII bus> on bge1
brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge1: MAC address: 00:0f:1f:6a:46:ee
installed MI handler for int 10
pcib4: <ServerWorks host to PCI bridge(unknown chipset)> at pcibus 4 on motherboard
pci4: <PCI bus> on pcib4
pcib5: <PCI to PCI bridge (vendor=8086 device=0309)> at device 8.0 on pci4
pci5: <PCI bus> on pcib5
ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xcc00-0xccff mem 0xfccff000-0xfccfffff irq 7 at device 6.0 on pci5
installed MI handler for int 7
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xc800-0xc8ff mem 0xfccfe000-0xfccfefff irq 11 at device 6.1 on pci5
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcdfff,0xec000-0xeffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
installed MI handler for int 6
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
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 IntelliMouse Explorer, device ID 4
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 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
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: parallel port not found.
installed MI handler for int 0
acd0: CDROM <SAMSUNG CD-ROM SN-124> at ata0-master PIO4
Waiting 15 seconds for SCSI devices to settle
pass1 at ahc0 bus 0 target 6 lun 0
pass1: <PE/PV 1x5 SCSI BP 1.1> Fixed Processor SCSI-2 device 
pass1: 3.300MB/s transfers
da0 at ahc0 bus 0 target 0 lun 0
da0: <MAXTOR ATLAS10K4_36SCA DFM0> Fixed Direct Access SCSI-3 device 
da0: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da0: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
Mounting root from ufs:/dev/da0s1a
cd0 at ata0 bus 0 target 0 lun 0
cd0: <SAMSUNG CD-ROM SN-124 N103> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
WARNING: #da/0x20000 si_iosize_max=0, using DFLTPHYS.
WARNING: #da/0x20003 si_iosize_max=0, using DFLTPHYS.
WARNING: #da/0x20004 si_iosize_max=0, using DFLTPHYS.
WARNING: #da/0x20005 si_iosize_max=0, using DFLTPHYS.
WARNING: #da/0x20006 si_iosize_max=0, using DFLTPHYS.
bge0: gigabit link up
bge0: gigabit link up
bge1: gigabit link up
bge1: gigabit link up




More information about the Kernel mailing list