NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/47739
The following reply was made to PR kern/47739; it has been noted by GNATS.
From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/47739
Date: Wed, 8 May 2013 11:30:25 +0100
Just got a working core file:
(gdb) bt
#0 0xffffffff804e40de in cpu_reboot (howto=260, bootstr=<optimized out>)
at ../../../../arch/amd64/amd64/machdep.c:705
#1 0xffffffff80696bad in vpanic (
fmt=0xffffffff8096f688 "kernel %sassertion \"%s\" failed: file \"%s\",
line
+%d ", ap=0xfffffe811b1769d0) at ../../../../kern/subr_prf.c:284
#2 0xffffffff80834368 in kern_assert (fmt=<unavailable>)
at ../../../../../../lib/libkern/kern_assert.c:50
#3 0xffffffff806de80c in VP_TO_TMPFS_DIR (vp=<optimized out>)
at ../../../../fs/tmpfs/tmpfs.h:357
#4 tmpfs_readdir (v=<optimized out>) at
../../../../fs/tmpfs/tmpfs_vnops.c:938
#5 0xffffffff807daa33 in VOP_READDIR (vp=0xfffffe81591b9be8,
uio=<optimized out>, cred=<optimized out>, eofflag=<optimized out>,
cookies=<optimized out>, ncookies=<optimized out>)
at ../../../../kern/vnode_if.c:952
#6 0xffffffff807c507b in vn_readdir (fp=0xfffffe811bc1c940,
bf=0x7f7ff770b000 <Address 0x7f7ff770b000 out of bounds>, segflg=0,
count=<optimized out>, done=0xfffffe811b176bec, l=0xfffffe81105f3040,
cookies=0x0, ncookies=0x0) at ../../../../kern/vfs_vnops.c:470
count=<optimized out>, done=0xfffffe811b176bec, l=0xfffffe81105f3040,
cookies=0x0, ncookies=0x0) at ../../../../kern/vfs_vnops.c:470
#7 0xffffffff807c07c1 in sys___getdents30 (l=0xfffffe81105f3040,
uap=0xfffffe811b176c80, retval=0xfffffe811b176c30)
at ../../../../kern/vfs_syscalls.c:4611
#8 0xffffffff806affe4 in sy_call (rval=0xfffffe811b176c30,
uap=0xfffffe811b176c80, l=0xfffffe81105f3040, sy=0xffffffff80c99460)
dmesg is full of
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
WARNING: SPL NOT LOWERED ON SYSCALL 16445 -151703264 EXIT 0 7
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
...
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
sys___getdents30() at netbsd:sys___getdents30+0x76
WARNING: SPL NOT LOWERED ON SYSCALL 24678 -1 EXIT f7b2b400 6
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
WARNING: SPL NOT LOWERED ON TRAP EXIT 6 0
...
(gdb) frame 3
#3 0xffffffff806de80c in VP_TO_TMPFS_DIR (vp=<optimized out>)
at ../../../../fs/tmpfs/tmpfs.h:357
357 TMPFS_VALIDATE_DIR(node);
(gdb) list
352 VP_TO_TMPFS_DIR(vnode_t *vp)
353 {
354 tmpfs_node_t *node = vp->v_data;
355
356 KASSERT(node != NULL);
357 TMPFS_VALIDATE_DIR(node);
358 return node;
359 }
360
361 #endif /* defined(_KERNEL) */
(gdb) frame 5
#5 0xffffffff807daa33 in VOP_READDIR (vp=0xfffffe81591b9be8,
uio=<optimized out>, cred=<optimized out>, eofflag=<optimized out>,
cookies=<optimized out>, ncookies=<optimized out>)
at ../../../../kern/vnode_if.c:952
952 error = (VCALL(vp, VOFFSET(vop_readdir), &a));
(gdb) list
947 a.a_eofflag = eofflag;
948 a.a_cookies = cookies;
949 a.a_ncookies = ncookies;
950 mpsafe = (vp->v_vflag & VV_MPSAFE);
951 if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
952 error = (VCALL(vp, VOFFSET(vop_readdir), &a));
953 if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
954 return error;
955 }
956
(gdb) print *vp
$1 = {v_uobj = {vmobjlock = 0xfffffe8197f5fac0, pgops = 0xffffffff80957c80,
memq = {tqh_first = 0x0, tqh_last = 0xfffffe81591b9bf8}, uo_npages = 0,
uo_refs = 1, rb_tree = {rbt_root = 0x0, rbt_ops = 0xffffffff80957a60,
rbt_minmax = {0x0, 0x0}}, uo_ubc = {lh_first = 0x0}}, v_cv = {
cv_opaque = {0x0, 0xfffffe81591b9c38, 0xffffffff809d8ec4}},
v_size = 16720, v_writesize = 16720, v_iflag = 0, v_vflag = 16, v_uflag = 0,
v_numoutput = 0, v_writecount = 0, v_holdcnt = 0, v_synclist_slot = 0,
v_mount = 0xfffffe8110c43008, v_op = 0xfffffe821db1a748, v_freelist = {
tqe_next = 0xfffffe8198503148, tqe_prev = 0xfffffe81985037b8},
v_freelisthd = 0x0, v_mntvnodes = {tqe_next = 0xfffffe81591b9620,
tqe_prev = 0xfffffe81591b9dd0}, v_cleanblkhd = {lh_first = 0x0},
v_dirtyblkhd = {lh_first = 0x0}, v_synclist = {tqe_next = 0x0,
tqe_prev = 0x0}, v_dnclist = {lh_first = 0xfffffe81386c0c00}, v_nclist = {
lh_first = 0xfffffe813d1b3e40}, v_un = {vu_mountedhere = 0x0,
vu_socket = 0x0, vu_specnode = 0x0, vu_fifoinfo = 0x0, vu_ractx = 0x0},
v_type = VDIR, v_tag = VT_TMPFS, v_lock = {rw_owner = 64},
v_data = 0xfffffe81face0660, v_klist = {slh_first = 0x0}}
so v_data is not 0 here...
frame 4, vp is already optimized out...
Home |
Main Index |
Thread Index |
Old Index