Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 May 2009 16:41:44 +0400
From:      Alexander Kriventsov <avk@vl.ru>
To:        freebsd-stable@freebsd.org
Subject:   RELENG_7 fatal trap
Message-ID:  <4A02D708.3040805@vl.ru>

next in thread | raw e-mail | index | archive | help
Hi,
Sorry for my english.
I have fatal trap on my box.
Kernel compiled with debug options. System is RELENG_7 amd64 dated 
2009-04-14.
Kernel config is
include         GENERIC

ident           GENERIC-DEBUG

device          carp
options         INCLUDE_CONFIG_FILE
options         KDB
options         KDB_UNATTENDED
options         DDB
options         BREAK_TO_DEBUGGER
nooptions       SCHED_4BSD
options         SCHED_ULE
options         SHMMAXPGS=65536
options         SEMMNI=40
options         SEMMNS=240
options         SEMUME=40
options         SEMMNU=120

$ uname -a
FreeBSD svc13.masterhost.ru 7.2-amd64-20090414-RELENG_7 FreeBSD 
7.2-amd64-20090414-RELENG_7 #0: Tue Apr 14 07:28:46 UTC 2009 
root@svc13.masterhost.ru:/usr/obj/usr/src/sys/GENERICDEBUG  amd64

In kgdb
$ kgdb /boot/GENERICDEBUG/kernel /var/crash/vmcore.2
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:


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x108
fault code              = supervisor write data, page not present
instruction pointer     = 0x8:0xffffffff805964bc
stack pointer           = 0x10:0xfffffffebe8b66d0
frame pointer           = 0x10:0xfffffffebe8b6740
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         = 6010 (sh)
trap number             = 12
panic: page fault
cpuid = 1
GEOM_MIRROR: Device gm1: rebuilding provider da1s2 stopped.
Uptime: 27m29s
Physical memory: 2029 MB
Dumping 322 MB: 307 291 275 259 243 227 211 195 179 163 147 131 115 99 
83 67 51 35 19 3
Reading symbols from /boot/kernel/geom_mirror.ko...Reading symbols from 
/boot/GENERICDEBUG/geom_mirror.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_mirror.ko
Reading symbols from /boot/kernel/geom_stripe.ko...Reading symbols from 
/boot/GENERICDEBUG/geom_stripe.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_stripe.ko
Reading symbols from /boot/kernel/ipmi.ko...Reading symbols from 
/boot/GENERICDEBUG/ipmi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ipmi.ko
Reading symbols from /boot/kernel/smbus.ko...Reading symbols from 
/boot/GENERICDEBUG/smbus.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/smbus.ko
Reading symbols from /boot/kernel/ipl.ko...Reading symbols from 
/boot/GENERICDEBUG/ipl.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ipl.ko
Reading symbols from /boot/kernel/if_vlan.ko...Reading symbols from 
/boot/GENERICDEBUG/if_vlan.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_vlan.ko
Reading symbols from /boot/kernel/nullfs.ko...Reading symbols from 
/boot/GENERICDEBUG/nullfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/nullfs.ko
Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from 
/boot/GENERICDEBUG/linprocfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linprocfs.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from 
/boot/GENERICDEBUG/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
#0  doadump () at pcpu.h:195
195     pcpu.h: No such file or directory.
         in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xffffffff80521b08 in boot (howto=260) at 
/usr/src/sys/kern/kern_shutdown.c:418
#2  0xffffffff80521f6c in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xffffffff807f1fc3 in trap_fatal (frame=0xc, eva=Variable "eva" is 
not available.
) at /usr/src/sys/amd64/amd64/trap.c:757
#4  0xffffffff807f23a4 in trap_pfault (frame=0xfffffffebe8b6620, 
usermode=0) at /usr/src/sys/amd64/amd64/trap.c:673
#5  0xffffffff807f2d52 in trap (frame=0xfffffffebe8b6620) at 
/usr/src/sys/amd64/amd64/trap.c:444
#6  0xffffffff807d660e in calltrap () at 
/usr/src/sys/amd64/amd64/exception.S:209
#7  0xffffffff805964bc in cache_lookup (dvp=0x0, vpp=0xfffffffebe8b6978, 
cnp=0xfffffffebe8b69a0) at atomic.h:143
#8  0xffffffff80596903 in vfs_cache_lookup (ap=Variable "ap" is not 
available.
) at /usr/src/sys/kern/vfs_cache.c:747
#9  0xffffffff808393a0 in VOP_LOOKUP_APV (vop=0xffffffff80afcc20, 
a=0xfffffffebe8b6820) at vnode_if.c:99
#10 0xffffffff8059d0d8 in lookup (ndp=0xfffffffebe8b6950) at vnode_if.h:57
#11 0xffffffff8059debe in namei (ndp=0xfffffffebe8b6950) at 
/usr/src/sys/kern/vfs_lookup.c:215
#12 0xffffffff805ac721 in kern_stat (td=0xffffff004546e000, 
path=0x800b04400 <Address 0x800b04400 out of bounds>, pathseg=Variable 
"pathseg" is not available.
)
     at /usr/src/sys/kern/vfs_syscalls.c:2123
#13 0xffffffff805ac98a in stat (td=Variable "td" is not available.
) at /usr/src/sys/kern/vfs_syscalls.c:2107
#14 0xffffffff807f2626 in syscall (frame=0xfffffffebe8b6c80) at 
/usr/src/sys/amd64/amd64/trap.c:900
#15 0xffffffff807d681b in Xfast_syscall () at 
/usr/src/sys/amd64/amd64/exception.S:330
#16 0x00000008009895ec in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) bt full
#0  doadump () at pcpu.h:195
No locals.
#1  0xffffffff80521b08 in boot (howto=260) at 
/usr/src/sys/kern/kern_shutdown.c:418
         _ep = (struct eventhandler_entry *) 0x0
         _el = Variable "_el" is not available.

Please give me advise.
Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A02D708.3040805>