panic: page fault while in kernel mode

Rong-En Fan grafan at gmail.com
Fri Aug 19 05:52:42 GMT 2005


Hi all,

It is an 5.4-STABLE running on i386, date is about Aug 10 4am UTC.
When I'm doing:
cat /var/log/maillog | ./log.pl
to do some log analysis, I panicked this system.
Here are some console log and kgdb output. I'll keeping this dump
for sometime, so if anyone wants any information, feel free to contact
me :-)

Regards,
Rong-En Fan

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x1c
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc05123aa
stack pointer           = 0x10:0xea39b9cc
frame pointer           = 0x10:0xea39b9ec
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         = 63117 (cat)
trap number             = 12
panic: page fault
cpuid = 0
boot() called on cpu#0
Uptime: 8d14h34m14s

(kgdb) bt
#0  doadump () at pcpu.h:160
#1  0xc04c141d in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:410
#2  0xc04c17cb in panic (fmt=0xc062d55e "%s")
    at /usr/src/sys/kern/kern_shutdown.c:566
#3  0xc0611a8d in trap_fatal (frame=0xea39b98c, eva=0)
    at /usr/src/sys/i386/i386/trap.c:817
#4  0xc0611784 in trap_pfault (frame=0xea39b98c, usermode=0, eva=28)
    at /usr/src/sys/i386/i386/trap.c:735
#5  0xc0611369 in trap (frame=
      {tf_fs = 24, tf_es = -899547120, tf_ds = -365363184, tf_edi =
-684394740, tf_esi = -684394740, tf_ebp = -365315604, tf_isp =
-365315656, tf_ebx = -684394740, tf_edx = 0, tf_ecx = -899544064,
tf_eax = 4, tf_trapno = 12, tf_err = 2, tf_eip = -1068424278, tf_cs =
8, tf_eflags = 66198, tf_esp = 1049856, tf_ss = 33554464}) at
/usr/src/sys/i386/i386/trap.c:425
#6  0xc05fd51a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#7  0x00000018 in ?? ()
#8  0xca620010 in ?? ()
#9  0xea390010 in ?? ()
#10 0xd734f70c in ?? ()
#11 0xd734f70c in ?? ()
#12 0xea39b9ec in ?? ()
#13 0xea39b9b8 in ?? ()
#14 0xd734f70c in ?? ()
#15 0x00000000 in ?? ()
#16 0xca620c00 in ?? ()
#17 0x00000004 in ?? ()
#18 0x0000000c in ?? ()
#19 0x00000002 in ?? ()
#20 0xc05123aa in vfs_vmio_release (bp=0xd734f70c) at atomic.h:365
#21 0xc0512db9 in getnewbuf (slpflag=0, slptimeo=0, size=16384, maxsize=16384)
    at /usr/src/sys/kern/vfs_bio.c:1885
#22 0xc0514619 in getblk (vp=0xc4b96840, blkno=1019, size=16384, slpflag=0, 
    slptimeo=0, flags=0) at /usr/src/sys/kern/vfs_bio.c:2585
#23 0xc0519810 in cluster_read (vp=0xc4b96840, filesize=25188657, lblkno=1019, 
    size=16384, cred=0x0, totread=4096, seqcount=127, bpp=0x0)
    at /usr/src/sys/kern/vfs_cluster.c:123
#24 0xc05af374 in ffs_read (ap=0x0) at /usr/src/sys/ufs/ffs/ffs_vnops.c:462
#25 0xc05324d2 in vn_read (fp=0xcab176a4, uio=0xea39bcb0, 
    active_cred=0xc794d800, flags=0, td=0xca620c00) at vnode_if.h:398
#26 0xc04e79e0 in dofileread (td=0xca620c00, fd=0, fp=0xcab176a4, 
    auio=0xea39bcb0, offset=Unhandled dwarf expression opcode 0x93
) at file.h:233
#27 0xc04e7809 in kern_readv (td=0xca620c00, fd=3, auio=0x0)
    at /usr/src/sys/kern/sys_generic.c:191
#28 0xc04e76df in read (td=0x0, uap=0x0) at /usr/src/sys/kern/sys_generic.c:115
#29 0xc0611e6a in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 1, tf_esi
= 4096, tf_ebp = -1077941336, tf_isp = -365314716, tf_ebx = 0, tf_edx
= 134541312, tf_ecx = 1, tf_eax = 3, tf_trapno = 0, tf_err = 2, tf_eip
= 671949351, tf_cs = 31, tf_eflags = 582, tf_esp = -1077941476, tf_ss
= 47})
    at /usr/src/sys/i386/i386/trap.c:1009
#30 0xc05fd56f in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:201
#31 0x0000002f in ?? ()
#32 0x0000002f in ?? ()
#33 0xbfbf002f in ?? ()
#34 0x00000001 in ?? ()
#35 0x00001000 in ?? ()
#36 0xbfbfeba8 in ?? ()
#37 0xea39bd64 in ?? ()
#38 0x00000000 in ?? ()
#39 0x0804f000 in ?? ()
#40 0x00000001 in ?? ()
#41 0x00000003 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000002 in ?? ()
#44 0x280d2227 in ?? ()
#45 0x0000001f in ?? ()
#46 0x00000246 in ?? ()
#47 0xbfbfeb1c in ?? ()
#48 0x0000002f in ?? ()
#49 0x00000000 in ?? ()
#50 0x00000000 in ?? ()
#51 0x00000000 in ?? ()
#52 0x00000000 in ?? ()
#53 0x0eb8f000 in ?? ()
#54 0xca615e20 in ?? ()
#55 0xca620c00 in ?? ()
#56 0xea39bb30 in ?? ()
#57 0xea39bb18 in ?? ()
#58 0xc3097900 in ?? ()
#59 0xc04d46f8 in sched_switch (td=0x1000, newtd=0x0, flags=Cannot
access memory at address 0xbfbfebb8
)
    at /usr/src/sys/kern/sched_4bsd.c:881
Previous frame inner to this frame (corrupt stack?)
(kgdb) up
#20 0xc05123aa in vfs_vmio_release (bp=0xd734f70c) at atomic.h:365
365     atomic.h: No such file or directory.
        in atomic.h
Current language:  auto; currently c
(kgdb)
#21 0xc0512db9 in getnewbuf (slpflag=0, slptimeo=0, size=16384, maxsize=16384)
    at /usr/src/sys/kern/vfs_bio.c:1885
1885                                    vfs_vmio_release(bp);
(kgdb)
#22 0xc0514619 in getblk (vp=0xc4b96840, blkno=1019, size=16384, slpflag=0,
    slptimeo=0, flags=0) at /usr/src/sys/kern/vfs_bio.c:2585
2585                    if ((bp = getnewbuf(slpflag, slptimeo, size,
maxsize)) == NULL) {
(kgdb) 
#23 0xc0519810 in cluster_read (vp=0xc4b96840, filesize=25188657, lblkno=1019,
    size=16384, cred=0x0, totread=4096, seqcount=127, bpp=0x0)
    at /usr/src/sys/kern/vfs_cluster.c:123
warning: Source file is more recent than executable.

123             *bpp = reqbp = bp = getblk(vp, lblkno, size, 0, 0, 0);
(kgdb) 
#24 0xc05af374 in ffs_read (ap=0x0) at /usr/src/sys/ufs/ffs/ffs_vnops.c:462
462                             error = cluster_read(vp, ip->i_size, lbn,
(kgdb) 
#25 0xc05324d2 in vn_read (fp=0xcab176a4, uio=0xea39bcb0, 
    active_cred=0xc794d800, flags=0, td=0xca620c00) at vnode_if.h:398
398     vnode_if.h: No such file or directory.
        in vnode_if.h


More information about the freebsd-stable mailing list