Fatal trap 12: page fault while in kernel mode

Michael Stellar unexplained at gmail.com
Fri Oct 22 00:21:27 UTC 2010


Hi,
   I have got these after running Freebsd 8.1 Release p1 Amd64 for a couple
hours, i have done kernel debugging it seems has anything to do with
sched_ule? :

admin# kgdb kernel.debug /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address   = 0x2000010
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80392403
stack pointer           = 0x28:0xffffff8000069b30
frame pointer           = 0x28:0xffffff8000069ba0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = resume, IOPL = 0
current process         = 12 (swi4: clock)
trap number             = 12
panic: page fault
cpuid = 2
Uptime: 3h43m34s
Physical memory: 4073 MB
Dumping 2401 MB: 2386

Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer     = 0x20:0xffffff80000695a0
stack pointer           = 0x28:0xffffff80ae41bb30
frame pointer           = 0x28:0xffffff80ae41bb60
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 12 (irq15: ata1)
trap number             = 1
 2370 2354 2338 2322 2306 2290 2274 2258 2242 2226 2210 2194 2178 2162 2146
2130 2114 2098 2082 2066 2050 2034 2018 2002 1986 1970 1954 1938 1922 1906
1890 1874 1858 1842 1826 1810 1794 1778 1762 1746 1730 1714 1698 1682 1666
1650 1634 1618 1602 1586 1570 1554 1538 1522 1506 1490 1474 1458 1442 1426
1410 1394 1378 1362 1346 1330 1314 1298 1282 1266 1250 1234 1218 1202 1186
1170 1154 1138 1122 1106 1090 1074 1058 1042 1026 1010 994 978 962 946 930
914 898 882 866 850 834 818 802 786 770 754 738 722 706 690 674 658 642 626
610 594 578 562 546 530 514 498 482 466 450 434 418 402 386 370 354 338 322
306 290 274 258 242 226 210 194 178 162 146 130 114 98 82 66 50 34 18 2

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from
/boot/kernel/zfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from
/boot/kernel/opensolaris.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/krpc.ko...Reading symbols from
/boot/kernel/krpc.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/krpc.ko
Reading symbols from /boot/kernel/geom_mirror.ko...Reading symbols from
/boot/kernel/geom_mirror.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_mirror.ko
#0  doadump () at pcpu.h:223
223
(kgdb) list *0xffffffff80392403
0xffffffff80392403 is in softclock (/usr/src/sys/kern/kern_timeout.c:356).
351                     cc->cc_softticks++;
352                     bucket = &cc->cc_callwheel[curticks &
callwheelmask];
353                     c = TAILQ_FIRST(bucket);
354                     while (c) {
355                             depth++;
356                             if (c->c_time != curticks) {
357                                     c = TAILQ_NEXT(c, c_links.tqe);
358                                     ++steps;
359                                     if (steps >= MAX_SOFTCLOCK_STEPS) {
360                                             cc->cc_next = c;
(kgdb) list *0xffffff80000695a0
No source file for address 0xffffff80000695a0.
(kgdb) list *0xffffff80000695a0
No source file for address 0xffffff80000695a0.
(kgdb) backtrace
#0  doadump () at pcpu.h:223
#1  0xffffffff8037cf6a in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:416
#2  0xffffffff8037d399 in panic (fmt=0xffffffff80632a5c "%s") at
/usr/src/sys/kern/kern_shutdown.c:590
#3  0xffffffff805ae847 in trap_fatal (frame=0xffffff8000069a80,
eva=33554448) at /usr/src/sys/amd64/amd64/trap.c:777
#4  0xffffffff805af693 in trap (frame=0xffffff8000069a80) at
/usr/src/sys/amd64/amd64/trap.c:300
#5  0xffffffff80592674 in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:223
#6  0xffffffff80392403 in softclock (arg=Variable "arg" is not available.
) at /usr/src/sys/kern/kern_timeout.c:355
#7  0xffffffff8035224d in intr_event_execute_handlers (p=Variable "p" is not
available.
) at /usr/src/sys/kern/kern_intr.c:1220
#8  0xffffffff80353962 in ithread_loop (arg=0xffffff000168b460) at
/usr/src/sys/kern/kern_intr.c:1233
#9  0xffffffff8034fb29 in fork_exit (callout=0xffffffff803538d0
<ithread_loop>, arg=0xffffff000168b460, frame=0xffffff8000069c80) at
/usr/src/sys/kern/kern_fork.c:844
#10 0xffffffff80592b73 in fork_trampoline () at
/usr/src/sys/amd64/amd64/exception.S:562
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000001 in ?? ()
#14 0x0000000000000000 in ?? ()
#15 0x0000000000000000 in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0x0000000000000000 in ?? ()
#18 0x0000000000000000 in ?? ()
#19 0x0000000000000000 in ?? ()
#20 0x0000000000000000 in ?? ()
#21 0x0000000000000000 in ?? ()
#22 0x0000000000000000 in ?? ()
#23 0x0000000000000000 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000cce000 in ?? ()
#36 0x0000000000000002 in ?? ()
#37 0x0000000000000003 in ?? ()
#38 0xffffffff80872a00 in affinity ()
#39 0xffffff000168f3e0 in ?? ()
#40 0xffffff8000069760 in ?? ()
#41 0xffffff8000069718 in ?? ()
#42 0xffffff00016907c0 in ?? ()
#43 0xffffffff803a37a3 in sched_switch (td=0xffffff000168b460,
newtd=0xffffffff803538d0, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/sched_ule.c:1844
Previous frame inner to this frame (corrupt stack?)

uname -a
FreeBSD admin 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Tue Oct 19 02:35:39
WIT 2010     user at admin:/usr/obj/usr/src/sys/TEST  amd64

Running on Core2Quad Q8400 with 2x2gb ddr2 6400, i am bulding my own kernel
and done some tunning through sysctl and loader.conf, could be one of my
value causing it?, another info is i run zfs on mirror 2 hdd, 2x wdc green
500gb. I am fairly new on freebsd so pardon me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loader.conf
Type: application/octet-stream
Size: 1504 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101022/b161a045/loader.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysctl.conf
Type: application/octet-stream
Size: 2702 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101022/b161a045/sysctl.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.conf
Type: application/octet-stream
Size: 1934 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101022/b161a045/make.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TEST
Type: application/octet-stream
Size: 16083 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101022/b161a045/TEST.obj


More information about the freebsd-questions mailing list