Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
KASSERT while running dev/sysmon/t_swsensor on tmpfs
Hi,
When checking NetBSD -current testsuite on my amd64 main workstation i
do see tmpfs related KASSERT panics when dev/sysmon/t_swsensor
testcases terminate.
I can reproduce it easily with the following steps :
mount_tmpfs tmpfs /tmp
cd /usr/tests/dev/sysmon
atf-run t_swsensor
System panicked: kernel diagnostic assertion
"TAILQ_EMPTY(&node->tn_spec.tn_dir.tn_dir)"failed: file
"/local/src/NetBSD/src/sys/fs/tmpfs/tmpfs_subr.c", line 248
#0 0xffffffff805917f3 in cpu_reboot (howto=260,bootstr=<optimized out>)
at /local/src/NetBSD/src/sys/arch/amd64/amd64/machdep.c:697
#1 0xffffffff807881ed in vpanic (
fmt=0xffffffff80b95558 "kernel %sassertion \"%s\"failed: file \"%s\",line
%d ",ap=0xfffffe810f219890) at /local/src/NetBSD/src/sys/kern/subr_prf.c:284
#2 0xffffffff80912da8 in kern_assert (fmt=<unavailable>)
at /local/src/NetBSD/src/sys/lib/libkern/kern_assert.c:50
#3 0xffffffff807cc325 in tmpfs_free_node (tmp=0xfffffe810eaa62a0,
node=0xfffffe82239d8360)
at /local/src/NetBSD/src/sys/fs/tmpfs/tmpfs_subr.c:248
#4 0xffffffff807d007d in tmpfs_reclaim (v=<optimized out>)
at /local/src/NetBSD/src/sys/fs/tmpfs/tmpfs_vnops.c:1077
#5 0xffffffff808b8247 in VOP_RECLAIM (vp=<optimized out>)
at /local/src/NetBSD/src/sys/kern/vnode_if.c:1072
#6 0xffffffff8089a215 in vclean (vp=0xfffffe821c386e30)
at /local/src/NetBSD/src/sys/kern/vfs_vnode.c:1001
#7 0xffffffff8089a9c2 in vrelel (vp=0xfffffe821c386e30,flags=<optimized out>)
at /local/src/NetBSD/src/sys/kern/vfs_vnode.c:753
#8 0xffffffff808883a6 in cwdfree (cwdi=0xfffffe821bc79340)
at /local/src/NetBSD/src/sys/kern/vfs_cwd.c:144
#9 0xffffffff805104d2 in exit1 (l=0xfffffe821c7d1160,rv=134)
at /local/src/NetBSD/src/sys/kern/kern_exit.c:276
#10 0xffffffff8052f6f7 in sigexit (l=0xfffffe821c7d1160,signo=6)
at /local/src/NetBSD/src/sys/kern/kern_sig.c:2050
#11 0xffffffff8052fa3f in postsig (signo=6)
at /local/src/NetBSD/src/sys/kern/kern_sig.c:1850
#12 0xffffffff80518f62 in lwp_userret (l=0xfffffe821c7d1160)
at /local/src/NetBSD/src/sys/kern/kern_lwp.c:1524
#13 0xffffffff807a3391 in mi_userret (l=0xfffffe821c7d1160)
at /local/src/NetBSD/src/sys/sys/userret.h:94
#14 userret (l=0xfffffe821c7d1160) at ./machine/userret.h:82
#15 syscall (frame=0xfffffe810f219c90)
at /local/src/NetBSD/src/sys/arch/x86/x86/syscall.c:184
#16 0xffffffff80100681 in Xsyscall ()
#17 0x0000000000000020 in ?? ()
#18 0x0000000000000006 in ?? ()
#19 0x0000000000000000 in ?? ()
(gdb) frame 3
#3 0xffffffff807cc325 in tmpfs_free_node (tmp=0xfffffe810eaa62a0,
node=0xfffffe82239d8360)
at /local/src/NetBSD/src/sys/fs/tmpfs/tmpfs_subr.c:248
248 KASSERT(TAILQ_EMPTY(&node->tn_spec.tn_dir.tn_dir));
(gdb) p node->tn_spec.tn_dir.tn_dir
$2 = {tqh_first = 0xfffffe821f2bff60,tqh_last = 0xfffffe821f2bff60}
(gdb) p node->tn_spec.tn_dir
$3 = {tn_parent = 0x0,tn_dir = {tqh_first = 0xfffffe821f2bff60,
tqh_last = 0xfffffe821f2bff60},tn_next_seq = 9,tn_seq_arena = 0x0,
tn_readdir_lastp = 0x0}
(gdb) p node->tn_spec
$4 = {tn_dev = {tn_rdev = 0},tn_dir = {tn_parent = 0x0,tn_dir = {
tqh_first = 0xfffffe821f2bff60,tqh_last = 0xfffffe821f2bff60},
tn_next_seq = 9,tn_seq_arena = 0x0,tn_readdir_lastp = 0x0},tn_lnk = {
tn_link = 0x0},tn_reg = {tn_aobj = 0x0,
tn_aobj_pages = 18446742433555021664}}
(gdb) p *node
$6 = {tn_entries = {le_next = 0xfffffe82239d8948,
le_prev = 0xfffffe82239d86c0},tn_vlock = {u = {mtxa_owner = 0}},
tn_vnode = 0x0,tn_dirent_hint = 0x0,tn_type = VDIR,
tn_id = 85401585340877638,tn_gen = 1146034747,tn_status = 0,tn_size = 48,
tn_uid = 1000,tn_gid = 0,tn_mode = 448,tn_flags = 0,tn_links = 0,
tn_atime = {tv_sec = 1384796886,tv_nsec = 926297925},tn_mtime = {
tv_sec = 1384796886,tv_nsec = 926297925},tn_ctime = {
tv_sec = 1384796886,tv_nsec = 926297925},tn_birthtime = {
tv_sec = 1384796871,tv_nsec = 306473059},tn_lockf = 0x0,tn_spec = {
tn_dev = {tn_rdev = 0},tn_dir = {tn_parent = 0x0,tn_dir = {
tqh_first = 0xfffffe821f2bff60,tqh_last = 0xfffffe821f2bff60},
tn_next_seq = 9,tn_seq_arena = 0x0,tn_readdir_lastp = 0x0},tn_lnk = {
tn_link = 0x0},tn_reg = {tn_aobj = 0x0,
tn_aobj_pages = 18446742433555021664}}}
--
Nicolas Joly
Biology IT Center
Institut Pasteur, Paris.
Home |
Main Index |
Thread Index |
Old Index