Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 10:44:19 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   Panic during reboot in vflush()
Message-ID:  <3D8045D3.35A3DECE@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Any ideas?

max@notebook$ gdb -k /sys/i386/compile/NOTEBOOK/kernel.debug
/var/crash/vmcore.0
GNU gdb 5.2.0 (FreeBSD) 20020627
Copyright 2002 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-undermydesk-freebsd"...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x28
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01484c0
stack pointer           = 0x10:0xc5847b58
frame pointer           = 0x10:0xc5847b70
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         = 1 (init)
trap number             = 12
panic: page fault
Uptime: 9h4m54s
Dumping 64 MB
ata0: resetting devices ..
done
 16 32 48
---
#0  doadump () at ../../../kern/kern_shutdown.c:213
213             dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:213
#1  0xc018195f in boot (howto=256) at
../../../kern/kern_shutdown.c:345
#2  0xc0181b1c in panic () at ../../../kern/kern_shutdown.c:493
#3  0xc027f719 in trap_fatal (frame=0xc5847b18, eva=40) at
../../../i386/i386/trap.c:846
#4  0xc027f470 in trap_pfault (frame=0xc5847b18, usermode=0, eva=40)
at ../../../i386/i386/trap.c:760
#5  0xc027ef31 in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi =
-981173284, tf_ebp = -981173392, tf_isp = -981173436, tf_ebx =
-1059837928, tf_edx = -1065459456, tf_ecx = 0, tf_eax = -981173284,
tf_trapno = 12, tf_err = 0, tf_eip = -1072397120, tf_cs = 8, tf_eflags
= 66118, tf_esp = -981173284, tf_ss = -981173284}) at
../../../i386/i386/trap.c:446
#6  0xc02726d8 in calltrap () at {standard input}:98
#7  0xc01c813f in vflush (mp=0x0, rootrefs=1, flags=2) at
vnode_if.h:309
#8  0xc0148107 in devfs_unmount (mp=0xc07be800, mntflags=524288,
td=0xc0625000) at ../../../fs/devfs/devfs_vfsops.c:130
#9  0xc01c47bc in dounmount (mp=0xc07be800, flags=524288,
td=0xc0625000) at ../../../kern/vfs_mount.c:1296
#10 0xc01c9496 in vfs_unmountall () at ../../../kern/vfs_subr.c:2924
#11 0xc01818ca in boot (howto=16392) at
../../../kern/kern_shutdown.c:330
#12 0xc018125f in reboot (td=0xc0625000, uap=0x0) at
../../../kern/kern_shutdown.c:154
#13 0xc027f9cd in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134835213, tf_esi
= -1077936616, tf_ebp = -1077936784, tf_isp = -981172876, tf_ebx =
-1077936704, tf_edx = -1, tf_ecx = 4, tf_eax = 55, tf_trapno = 12,
tf_err = 2, tf_eip = 134543403, tf_cs = 31, tf_eflags = 515, tf_esp =
-1077936968, tf_ss = 47}) at ../../../i386/i386/trap.c:1050
#14 0xc027272d in Xint0x80_syscall () at {standard input}:140
---Can't read userspace from dump, or kernel process---

(kgdb) up
#1  0xc018195f in boot (howto=256) at
../../../kern/kern_shutdown.c:345
345                     doadump();
(kgdb) up
#2  0xc0181b1c in panic () at ../../../kern/kern_shutdown.c:493
493             boot(bootopt);
(kgdb) up
#3  0xc027f719 in trap_fatal (frame=0xc5847b18, eva=40) at
../../../i386/i386/trap.c:846
846                     panic("%s", trap_msg[type]);
(kgdb) up
#4  0xc027f470 in trap_pfault (frame=0xc5847b18, usermode=0, eva=40)
at ../../../i386/i386/trap.c:760
760                     trap_fatal(frame, eva);
(kgdb) up
#5  0xc027ef31 in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi =
-981173284, tf_ebp = -981173392, tf_isp = -981173436, tf_ebx =
-1059837928, tf_edx = -1065459456, tf_ecx = 0, tf_eax = -981173284,
tf_trapno = 12, tf_err = 0, tf_eip = -1072397120, tf_cs = 8, tf_eflags
= 66118, tf_esp = -981173284, tf_ss = -981173284}) at
../../../i386/i386/trap.c:446
446                             (void) trap_pfault(&frame, FALSE,
eva);
(kgdb) up
#6  0xc02726d8 in calltrap () at {standard input}:98
98      {standard input}: No such file or directory.
        in {standard input}
Current language:  auto; currently asm
(kgdb) up
#7  0xc01c813f in vflush (mp=0x0, rootrefs=1, flags=2) at
vnode_if.h:309
309             rc = VCALL(vp, VOFFSET(vop_getattr), &a);
Current language:  auto; currently c
(kgdb) print *vp
$2 = {v_interlock = {mtx_object = {lo_class = 0xc02cb4c0, lo_name =
0xc02a785b "vnode interlock",
      lo_type = 0xc02a785b "vnode interlock", lo_flags = 196608,
lo_list = {tqe_next = 0x0, tqe_prev = 0x0},
      lo_witness = 0x0}, mtx_lock = 4, mtx_recurse = 0, mtx_blocked =
{tqh_first = 0x0, tqh_last = 0xc0d4283c},
    mtx_contested = {le_next = 0x0, le_prev = 0x0}, mtx_acqtime = 0,
mtx_filename = 0x0, mtx_lineno = 0}, v_iflag = 256,
  v_usecount = 0, v_writecount = 0, v_numoutput = 0, v_vxproc = 0x0,
v_holdcnt = 0, v_vflag = 0, v_id = 788200,
  v_mount = 0xc07be800, v_op = 0xc07e6100, v_freelist = {tqe_next =
0xc0e29a68, tqe_prev = 0xc0d1e75c}, v_nmntvnodes = {
    tqe_next = 0x0, tqe_prev = 0xc07be818}, v_cleanblkhd = {tqh_first
= 0x0, tqh_last = 0xc0d42894}, v_cleanblkroot = 0x0,
  v_dirtyblkhd = {tqh_first = 0x0, tqh_last = 0xc0d428a0},
v_dirtyblkroot = 0x0, v_synclist = {le_next = 0x0,
    le_prev = 0xc0d809d4}, v_type = VCHR, v_un = {vu_mountedhere =
0xc0c67500, vu_socket = 0xc0c67500, vu_spec = {
      vu_specinfo = 0xc0c67500, vu_specnext = {sle_next = 0x0}},
vu_fifoinfo = 0xc0c67500}, v_lastw = 0, v_cstart = 0,
  v_lasta = 0, v_clen = 0, v_object = 0x0, v_lock = {lk_interlock =
0xc02f6a84, lk_flags = 16778240, lk_sharecount = 0,
    lk_waitcount = 0, lk_exclusivecount = 1, lk_prio = 80, lk_wmesg =
0xc02a786b "vnlock", lk_timo = 6, lk_lockholder = 1},
  v_vnlock = 0x0, v_tag = 0xc029da20 "VT_DEVFS", v_data = 0x0,
v_cache_src = {lh_first = 0x0}, v_cache_dst = {
    tqh_first = 0x0, tqh_last = 0xc0d42910}, v_dd = 0xc0d42818, v_ddid
= 0, v_pollinfo = 0x0, v_label = {l_flags = 0,
    l_perpolicy = {{l_ptr = 0x0, l_long = 0}, {l_ptr = 0x0, l_long =
0}, {l_ptr = 0x0, l_long = 0}, {l_ptr = 0x0,
        l_long = 0}}}, v_cachedfs = 4294967295, v_cachedid = 108}

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D8045D3.35A3DECE>