Re: 6.0-BETA2 Fatal trap 12: page fault while in kernel mode

From: Gleb Kozyrev <gkozyrev_at_ukr.net>
Date: Fri, 12 Aug 2005 15:00:40 +0300
Krzysztof Kowalik wrote to <current_at_freebsd.org> on Fri, 12 Aug 2005 12:43:51 +0200:

KK> Today, I got the following panic:

KK> Fatal trap 12: page fault while in kernel mode
KK> cpuid = 7; apic id = 07
KK> fault virtual address   = 0x188
KK> fault code              = supervisor read, page not present
KK> instruction pointer     = 0x8:0xffffffff80255ea7
KK> stack pointer           = 0x10:0xffffffffc1832500
KK> frame pointer           = 0x10:0x0
KK> code segment            = base 0x0, limit 0xfffff, type 0x1b
KK>                         = DPL 0, pres 1, long 1, def32 0, gran 1
KK> processor eflags        = resume, IOPL = 0
KK> current process         = 608 (ls)
KK> trap number             = 12
KK> panic: page fault
KK> cpuid = 7

A similar (I guess) panic happens accidentally on i386 RELENG_6
(Aug 11) with GENERIC kernel:
=========Beginning of the citation==============
#0  doadump () at pcpu.h:165
#1  0xc06a2f3a in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:397
#2  0xc06a3314 in panic (fmt=0xc08f90ca "%s") at /usr/src/sys/kern/kern_shutdown.c:553
#3  0xc08c201e in trap_fatal (frame=0xc838eb48, eva=0) at /usr/src/sys/i386/i386/trap.c:841
#4  0xc08c1c92 in trap_pfault (frame=0xc838eb48, usermode=0, eva=3735929052) at /usr/src/sys/i386/i386/trap.c:752
#5  0xc08c183d in trap (frame=
      {tf_fs = -1064108024, tf_es = 40, tf_ds = 40, tf_edi = -559038244, tf_esi = -935793706, tf_ebp = -935793692, tf_isp
= -935793804, tf_ebx = -559038256, tf_edx = -1052211968, tf_ecx = 2, tf_eax = -559038244, tf_trapno = 12, tf_err = 2, tf_eip
= -1064568587, tf_cs = 32, tf_eflags = 66050, tf_esp = -1052722176, tf_ss = -1051940864}) at /usr/src/sys/i386/i386/trap.c:442
#6  0xc08ab98a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc0930008 in ?? ()
#8  0x00000028 in ?? ()
#9  0x00000028 in ?? ()
#10 0xdeadc0dc in ?? ()
#11 0xc838ebd6 in ?? ()
#12 0xc838ebe4 in ?? ()
#13 0xc838eb74 in ?? ()
#14 0xdeadc0d0 in ?? ()
#15 0xc1488500 in ?? ()
#16 0x00000002 in ?? ()
#17 0xdeadc0dc in ?? ()
#18 0x0000000c in ?? ()
#19 0x00000002 in ?? ()
#20 0xc08bf8f5 in memcpy () at /usr/src/sys/i386/i386/support.s:685
#21 0xc140bc00 in ?? ()
#22 0xc14ca800 in ?? ()
#23 0xc07258a3 in ether_output (ifp=0xc08bf8f5, m=0xc1488500, dst=0x20, rt0=0x0) at /usr/src/sys/net/if_ethersubr.c:284
#24 0xc074daa2 in in_arpinput (m=0xc1488d00) at /usr/src/sys/netinet/if_ether.c:736
#25 0xc074d3b4 in arpintr (m=0xc1488d00) at /usr/src/sys/netinet/if_ether.c:505
#26 0xc072eade in netisr_processqueue (ni=0xc0a467d8) at /usr/src/sys/net/netisr.c:235
#27 0xc072ed39 in swi_net (dummy=0x0) at /usr/src/sys/net/netisr.c:348
#28 0xc068b382 in ithread_loop (arg=0xc1338900) at /usr/src/sys/kern/kern_intr.c:545
#29 0xc068a331 in fork_exit (callout=0xc068b220 <ithread_loop>, arg=0x0, frame=0x0) at /usr/src/sys/kern/kern_fork.c:789
#30 0xc08ab9ec in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:208
=========The end of the citation================

Also in a minute after boot I get http://sources.zabbadoz.net/freebsd/lor.html#109

=========Beginning of the citation==============
Copyright (c) 1992-2005 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 6.0-BETA2 #0: Thu Aug 11 15:17:51 EEST 2005
    root_at_...:/usr/obj/usr/src/sys/GENERIC
WARNING: WITNESS option enabled, expect reduced performance.
module_register: module uhub/umass already exists!
Module uhub/umass failed to register: 17
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (331.83-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x660  Stepping = 0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134217728 (128 MB)
avail memory = 121593856 (115 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 10 on acpi0
pci_link2: <ACPI PCI Link LNKC> on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 9 on acpi0
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443LX (440 LX) host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
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)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1460-0x146f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1440-0x145f irq 9 at device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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
pci0: <bridge> at device 7.3 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0x1000-0x10ff mem 0xf4000000-0xf40000ff irq 11 at device 13.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:02:44:77:b2:4b
pcm0: <AudioPCI ES1371-A> port 0x1400-0x143f irq 10 at device 14.0 on pci0
pcm0: <TriTech TR28023 AC97 Codec>
pcm0: [GIANT-LOCKED]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
speaker0: <PC speaker> port 0x61 on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A, console
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xe0000-0xe3fff,0xe4000-0xeffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 331831795 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 114498MB <SAMSUNG SP1213N TL100-23> at ata0-master UDMA33
acd0: CDRW <PLEXTOR CD-R PX-W8432T/1.09> at ata1-master PIO4
Trying to mount root from ufs:/dev/ad0s1a
=========The end of the citation================

-- 
With best regards, Gleb Kozyrev.
Received on Fri Aug 12 2005 - 10:00:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:41 UTC