NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/44288



The following reply was made to PR kern/44288; it has been noted by GNATS.

From: Antti Kantee <pooka%cs.hut.fi@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/44288
Date: Mon, 28 Feb 2011 20:07:21 +0200

 tests/vfs/t_vnops has plenty of rename-tests, but of course it misses
 this one, or at least triggering the bug.
 
 I tested it, and you are correct.  Can you propose a patch to vfs/t_vnops
 so we can conveniently rule out this bug from all file systems?
 
 log:
 
 $ mkdir test
 $ cd test
 $ mkdir foo bar
 $ ~/a.out foo bar
 $ cd ..
 $ ls -l
 total 0
 drwxr-xr-x  3 root  wheel  0 Feb 28 19:00 test
 $ rmdir test
 
 And meanwhile, in the server window:
 
 pain-rustique:1:~> rump_server -lrumpvfs -lrumpfs_tmpfs -s unix:///tmp/tmpfs
 panic: kernel diagnostic assertion "node->tn_links == 0" failed: file 
"/usr/alls
 rc/src/sys/rump/fs/lib/libtmpfs/../../../../fs/tmpfs/tmpfs_vnops.c", line 1116
 rump kernel halting...
 halted
 Abort (core dumped)
 pain-rustique:2:~> gdb rump_server rump_server.core 
 [...]
 #0  0xbbac60d7 in _lwp_kill () from /usr/lib/libc.so.12
 #1  0xbbac608e in raise () from /usr/lib/libc.so.12
 #2  0xbbac5914 in abort () from /usr/lib/libc.so.12
 #3  0xbbb1610d in rumpuser_exit (rv=-1) at rumpuser.c:541
 #4  0xbbbb69fb in cpu_reboot (howto=4, bootstr=0x0) at rump.c:570
 #5  0xbbb80ce0 in panic (
     fmt=0xbbbbecec "kernel %sassertion \"%s\" failed: file \"%s\", line %d")
     at /sys/rump/librump/rumpkern/../../../kern/subr_prf.c:302
 #6  0xbbb64504 in kern_assert (t=0xbb9871bc "diagnostic ", 
     f=0xbb987170 
"/usr/allsrc/src/sys/rump/fs/lib/libtmpfs/../../../../fs/tmpfs/tmpfs_vnops.c", 
l=1116, e=0xbb987764 "node->tn_links == 0")
     at /sys/rump/librump/rumpkern/../../../lib/libkern/kern_assert.c:50
 #7  0xbb982570 in tmpfs_rmdir (v=0xb8bff840)
     at 
/usr/allsrc/src/sys/rump/fs/lib/libtmpfs/../../../../fs/tmpfs/tmpfs_vnops.c:1116
 #8  0xbbb78202 in VOP_RMDIR (dvp=0xbb8504c8, vp=0xbb8502c4, cnp=0xb8bff8a0)
     at /sys/rump/librump/rumpkern/../../../kern/vnode_if.c:874
 #9  0xbb9b9b30 in sys_rmdir (l=0xb9ec7c80, uap=0xb8e02098, retval=0xb8bff97c)
     at /sys/rump/librump/rumpvfs/../../../kern/vfs_syscalls.c:3708
 #10 0xbbbb6f7a in sy_call (sy=0xbbbccb6c, l=0xb9ec7c80, uap=0xb8e02098, 
     rval=0xb8bff97c) at /sys/rump/librump/rumpkern/../../../sys/syscallvar.h:61
 #11 0xbbbb6f3a in rump_proxy_syscall (num=137, arg=0xb8e02098, 
     retval=0xb8bff97c) at rump.c:753
 #12 0xbbb10838 in rumpsyscall (sysnum=137, data=0xb8e02098, retval=0xb8bff97c)
     at rumpuser_sp.c:222
 #13 0xbbb1134c in serv_handlesyscall (spc=0xbbb17e38, rhdr=0xb8e03194, 
     data=0xb8e02098 ":÷¿¿", 'ÿ' <repeats 112 times>, ".") at rumpuser_sp.c:598
 #14 0xbbb114b6 in serv_syscallbouncer (arg=0x0) at rumpuser_sp.c:647
 #15 0xbbb084c7 in pthread_setcancelstate () from /usr/lib/libpthread.so.0
 #16 0xbba39610 in swapcontext () from /usr/lib/libc.so.12
 (gdb) 
 


Home | Main Index | Thread Index | Old Index