Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2002 20:01:41 -0700 (PDT)
From:      David <david@bitch.inducedreality.net>
To:        hackers@freebsd.org
Subject:   kernel trap 12: page fault
Message-ID:  <20020822195750.F308-400000@bitch.inducedreality.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I'm finding every time I put my machine under a lot of stress I am getting
fatal trap 12s.  Trying to find out what caused this I found an article on
onlamp.com which gave me some ideas of what I could do to provide useful
information to you guys. :)

I compiled a debugging kernel and managed to get a dump.  I've included
the results of the where command in gdb to try to provide info that can
help find out what's up.  I also attached a dmesg and a uname -a.

Any ideas of what is up?  Anything else you need me to provide?

david

[-- Attachment #2 --]
Script started on Thu Aug 22 19:55:19 2002
bitch# gdb -k kernel.debug.08202002 vmcore.0


GNU gdb 4.18 (FreeBSD)

Copyright 1998 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "i386-unknown-freebsd"...

IdlePTD at phsyical address 0x002cf000

initial pcb at physical address 0x0024ee80

panicstr: from debugger

panic messages:

---

Fatal trap 12: page fault while in kernel mode

fault virtual address	= 0xc0bc7480

fault code		= supervisor read, page not present

instruction pointer	= 0x8:0xc0bc7480

stack pointer	        = 0x10:0xcdca9e80

frame pointer	        = 0x10:0xcdca9ef4

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		= 6983 (sed)

interrupt mask		= none





Fatal trap 12: page fault while in kernel mode

fault virtual address	= 0xc0bc7480

fault code		= supervisor read, page not present

instruction pointer	= 0x8:0xc01ec5b0

stack pointer	        = 0x10:0xcdca9ce8

frame pointer	        = 0x10:0xcdca9cec

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		= 6983 (sed)

interrupt mask		= none

panic: from debugger





Fatal trap 3: breakpoint instruction fault while in kernel mode

instruction pointer	= 0x8:0xc01ec720

stack pointer	        = 0x10:0xcdca9c94

frame pointer	        = 0x10:0xcdca9c9c

code segment		= base 0x0, limit 0xfffff, type 0x1b

			= DPL 0, pres 1, def32 1, gran 1

processor eflags	= IOPL = 0

current process		= 6983 (sed)

interrupt mask		= none





Fatal trap 12: page fault while in kernel mode

fault virtual address	= 0xc0bc7480

fault code		= supervisor read, page not present

instruction pointer	= 0x8:0xc01ec5b0

stack pointer	        = 0x10:0xcdca9ce8

frame pointer	        = 0x10:0xcdca9cec

code segment		= base 0x0, limit 0xfffff, type 0x1b

			= DPL 0, pres 1, def32 1, gran 1

processor eflags	= resume, IOPL = 0

current process		= 6983 (sed)

interrupt mask		= none

panic: from debugger

Uptime: 1d10h34m42s



dumping to dev #ad/0x20001, offset 1048704

dump ata2: resetting devices .. done

255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 

---

#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487

487		if (dumping++) {

(kgdb) where

#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487

#1  0xc0148a6f in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:316

#2  0xc0148e75 in panic (fmt=0xc0207964 "from debugger")

    at /usr/src/sys/kern/kern_shutdown.c:595

#3  0xc011e321 in db_panic (addr=-1061391232, have_addr=0, count=-1, 

    modif=0xcdca9cec "") at /usr/src/sys/ddb/db_command.c:435

#4  0xc011e2c1 in db_command (last_cmdp=0xc0232694, cmd_table=0xc02324d4, 

    aux_cmd_tablep=0xc024a438) at /usr/src/sys/ddb/db_command.c:333

#5  0xc011e386 in db_command_loop () at /usr/src/sys/ddb/db_command.c:457

#6  0xc01204a7 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:71

#7  0xc01ec4be in kdb_trap (type=12, code=0, regs=0xcdca9e40)

    at /usr/src/sys/i386/i386/db_interface.c:158

#8  0xc01fa48c in trap_fatal (frame=0xcdca9e40, eva=3233576064)

    at /usr/src/sys/i386/i386/trap.c:969

#9  0xc01fa165 in trap_pfault (frame=0xcdca9e40, usermode=0, eva=3233576064)

    at /usr/src/sys/i386/i386/trap.c:867

#10 0xc01f9cdf in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, 

      tf_edi = 16384, tf_esi = -842358912, tf_ebp = -842359052, 

      tf_isp = -842359188, tf_ebx = -843268256, tf_edx = 6, 

      tf_ecx = -843268256, tf_eax = 0, tf_trapno = 12, tf_err = 0, 

      tf_eip = -1061391232, tf_cs = 8, tf_eflags = 66183, 

      tf_esp = -1050002688, tf_ss = -842359084})

    at /usr/src/sys/i386/i386/trap.c:466

#11 0xc0bc7480 in ?? ()

---Type <return> to continue, or q <return> to quit--- 

#12 0xc0157344 in read (p=0xcdbcbf60, uap=0xcdca9f80)

    at /usr/src/sys/kern/sys_generic.c:117

#13 0xc01fa781 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 

      tf_edi = 0, tf_esi = 672151200, tf_ebp = -1077937804, 

      tf_isp = -842358828, tf_ebx = 672075908, tf_edx = 134562048, tf_ecx = 0, 

      tf_eax = 3, tf_trapno = 0, tf_err = 2, tf_eip = 672033400, tf_cs = 31, 

      tf_eflags = 659, tf_esp = -1077937848, tf_ss = 47})

    at /usr/src/sys/i386/i386/trap.c:1175

#14 0xc01ed375 in Xint0x80_syscall ()

#15 0x280d44b3 in ?? ()

#16 0x280b01cc in ?? ()

#17 0x804ad8d in ?? ()

#18 0x804b84a in ?? ()

#19 0x804a8e6 in ?? ()

#20 0x8048f45 in ?? ()

(kgdb) q

bitch# ^Dexit


Script done on Thu Aug 22 19:55:43 2002

[-- Attachment #3 --]
FreeBSD bitch.inducedreality.net 4.6-STABLE FreeBSD 4.6-STABLE #6: Tue Aug 20 21:43:43 PDT 2002     david@bitch.inducedreality.net:/usr/obj/usr/src/sys/BITCH  i386

[-- Attachment #4 --]
Copyright (c) 1992-2002 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.6-STABLE #6: Tue Aug 20 21:43:43 PDT 2002
    david@bitch.inducedreality.net:/usr/obj/usr/src/sys/BITCH
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 300683009 Hz
CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
  AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 268369920 (262080K bytes)
avail memory = 258445312 (252388K bytes)
Preloaded elf kernel "kernel" at 0xc02b0000.
K6-family MTRR support enabled (2 registers)
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00fdcb0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <3Dfx model 0009 graphics accelerator> at 0.0 irq 10
isab0: <VIA 82C586 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C586 ATA33 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x1106, dev=0x3040) at 7.3
dc0: <82c169 PNIC 10/100BaseTX> port 0xd800-0xd8ff mem 0xee020000-0xee0200ff irq 10 at device 8.0 on pci0
dc0: Ethernet address: 00:a0:cc:d5:54:89
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <OPTi 82C861 (FireLink) USB controller> at 9.0
atapci1: <Promise ATA100 controller> port 0xec00-0xec3f,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc07 mem 0xee000000-0xee01ffff irq 11 at device 10.0 on pci0
ata2: at 0xdc00 on atapci1
ata3: at 0xe400 on atapci1
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
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 0x20 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 flags 0x10 on isa0
sio1: type 16550A
IP packet filtering initialized, divert disabled, rule-based forwarding enabled, default to deny, unlimited logging
ad0: 38166MB <ST340824A> [77545/16/63] at ata2-master UDMA100
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020822195750.F308-400000>