Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2005 17:21:27 -0400 (EDT)
From:      Charles Sprickman <spork@bway.net>
To:        freebsd-stable@freebsd.org
Subject:   4.11 panic, help decode gdb output
Message-ID:  <Pine.OSX.4.61.0505261715170.383@gee5.nat.fasttrackmonkey.com>

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

I had a 4.11 box panic today.  Followed the example at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-gdb.html 
to get the following info:

FreeBSD miko.bway.net 4.11-RELEASE-p2 FreeBSD 4.11-RELEASE-p2 #6: Tue Apr 
5 16:49:50 EDT 2005     spork@miko.bway.net:/usr/obj/usr/src/sys/MIKO 
i386

root@miko[/usr/obj/usr/src/sys/MIKO]# gdb -k kernel.debug 
/var/crash/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"...Deprecated bfd_read 
called at 
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c 
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at 
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c 
line 933 in fill_symbuf

IdlePTD at physical address 0x003de000
initial pcb at physical address 0x0033c6c0
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xf53958
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0263384
stack pointer           = 0x10:0xd70e6d24
frame pointer           = 0x10:0xd70e6d38
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         = 307 (mysqld)
interrupt mask          = none
trap number             = 12
panic: page fault

syncing disks...

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xabc694
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01c1aaf
stack pointer           = 0x10:0xd70e6bcc
frame pointer           = 0x10:0xd70e6be8
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         = 307 (mysqld)
interrupt mask          = none
trap number             = 12
panic: page fault
Uptime: 49d17h48m22s

dumping to dev #ad/0x20001, offset 1048736
dump ata0: resetting devices .. done
511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 
[snip]
8 7 6 5 4 3 2 1 0 y 18 14:38:56.279 EDT: %LINK-3-UPDOWN: Interface 
Serial1/0, changed state to up <<-- ODD, a syslog message here???
---
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
487             if (dumping++) {


(kgdb) list *0xc01c1aaf
0xc01c1aaf is in vfs_msync (/usr/src/sys/kern/vfs_subr.c:2710).
warning: Source file is more recent than executable.

2705            int tries;
2706
2707            tries = 5;
2708            simple_lock(&mntvnode_slock);
2709    loop:
2710            for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp 
= nvp) {
2711                    if (vp->v_mount != mp) {
2712                            if (--tries > 0)
2713                                    goto loop;
2714                            break;
(kgdb) backtrace
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
#1  0xc0191c07 in boot (howto=260) at 
/usr/src/sys/kern/kern_shutdown.c:316
#2  0xc019202c in poweroff_wait (junk=0xc02fd5cc, howto=-1070608177)
     at /usr/src/sys/kern/kern_shutdown.c:595
#3  0xc02abe6e in trap_fatal (frame=0xd70e6b8c, eva=11257492)
     at /usr/src/sys/i386/i386/trap.c:974
#4  0xc02abb41 in trap_pfault (frame=0xd70e6b8c, usermode=0, eva=11257492)
     at /usr/src/sys/i386/i386/trap.c:867
#5  0xc02ab72b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16,
       tf_edi = 11257472, tf_esi = 5, tf_ebp = -686920728, tf_isp = 
-686920776,
       tf_ebx = 11257472, tf_edx = 0, tf_ecx = -1070252352,
       tf_eax = -1041269760, tf_trapno = 12, tf_err = 0, tf_eip = 
-1071899985,
       tf_cs = 8, tf_eflags = 66050, tf_esp = -1041269760, tf_ss = 0})
     at /usr/src/sys/i386/i386/trap.c:466
#6  0xc01c1aaf in vfs_msync (mp=0xc1ef7c00, flags=2)
     at /usr/src/sys/kern/vfs_subr.c:2710
#7  0xc01c2a88 in sync (p=0xc0353ec0, uap=0x0)
     at /usr/src/sys/kern/vfs_syscalls.c:582
#8  0xc01919ca in boot (howto=256) at 
/usr/src/sys/kern/kern_shutdown.c:235
#9  0xc019202c in poweroff_wait (junk=0xc02fd5cc, howto=-1070608177)
     at /usr/src/sys/kern/kern_shutdown.c:595
#10 0xc02abe6e in trap_fatal (frame=0xd70e6ce4, eva=16071000)
     at /usr/src/sys/i386/i386/trap.c:974
#11 0xc02abb41 in trap_pfault (frame=0xd70e6ce4, usermode=0, eva=16071000)
     at /usr/src/sys/i386/i386/trap.c:867
#12 0xc02ab72b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16,
       tf_edi = -685923648, tf_esi = -686920296, tf_ebp = -686920392,
       tf_isp = -686920432, tf_ebx = -1036461056, tf_edx = -685923648,
       tf_ecx = 34, tf_eax = 16070656, tf_trapno = 12, tf_err = 0,
       tf_eip = -1071238268, tf_cs = 8, tf_eflags = 66050,
       tf_esp = -1041196288, tf_ss = -685923648})
     at /usr/src/sys/i386/i386/trap.c:466
#13 0xc0263384 in ufs_getattr (ap=0xd70e6d68)
     at /usr/src/sys/ufs/ufs/ufs_vnops.c:408
#14 0xc0265985 in ufs_vnoperate (ap=0xd70e6d68)
     at /usr/src/sys/ufs/ufs/ufs_vnops.c:2376
#15 0xc020a9cb in nqsrv_getlease (vp=0xd71da2c0, duration=0xd70e6e24, 
flags=6,
     slp=0xffffffff, procp=0xd700b220, nam=0x0, cachablep=0xd70e6e28,
     frev=0xd70e6e2c, cred=0xc1ff2200) at vnode_if.h:276
#16 0xc020ae24 in nqnfs_vop_lease_check (ap=0xd70e6e64)
     at /usr/src/sys/nfs/nfs_nqlease.c:366
#17 0xc01bd945 in vop_defaultop (ap=0xd70e6e64)
     at /usr/src/sys/kern/vfs_default.c:152
#18 0xc0265985 in ufs_vnoperate (ap=0xd70e6e64)
     at /usr/src/sys/ufs/ufs/ufs_vnops.c:2376
#19 0xc01c7763 in vn_write (fp=0xc2068200, uio=0xd70e6ed4, 
cred=0xc1ff2200,
---Type <return> to continue, or q <return> to quit---
     flags=0, p=0xd700b220) at vnode_if.h:392
#20 0xc01a100d in dofilewrite (p=0xd700b220, fp=0xc2068200, fd=14,
     buf=0xa449000, nbyte=118, offset=-1, flags=0)
     at /usr/src/sys/sys/file.h:163
#21 0xc01a0ec4 in write (p=0xd700b220, uap=0xd70e6f80)
     at /usr/src/sys/kern/sys_generic.c:329
#22 0xc02ac11d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
       tf_edi = 172265472, tf_esi = 118, tf_ebp = -1103103308,
       tf_isp = -686919724, tf_ebx = 676124848, tf_edx = -1103102944,
       tf_ecx = 172265472, tf_eax = 4, tf_trapno = 7, tf_err = 2,
       tf_eip = 676932060, tf_cs = 31, tf_eflags = 663, tf_esp = 
-1103103368,
       tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1175
#23 0xc02a0435 in Xint0x80_syscall ()
#24 0x82a9d10 in ?? ()
#25 0x82abbcf in ?? ()
#26 0x81028cc in ?? ()
#27 0x8103cad in ?? ()
#28 0x284c420b in ?? ()
(kgdb) quit

>From what I remember about reading this stuff, this does not seem like 
hardware.

What's next?

Thanks,

Charles

___
Charles Sprickman
NetEng/SysAdmin
Bway.net - New York's Best Internet - www.bway.net
spork@bway.net - 212.655.9344




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSX.4.61.0505261715170.383>