Re: Kernel Panic

看板DFBSD_kernel作者時間21年前 (2004/12/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
:I have a repeatable kernel panic from a msdos rename. I have the :kernel core file and the kernel if You'd like me to post them :somewhere. : :I have a usb hard drive based mp3 player that shows up as a umass, and :I was renaming the folder ebooks to TEXT when this happened. That's :all I have to do to repeat it. : :Here is the back trace from gdb: : :#0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:508 :#1 0xc02613bf in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:341 :#2 0xc0261829 in panic (fmt=0xc0476d80 "assertion: cnp->cn_flags & :CNP_PDIRUNLOCK in %s") at /usr/src/sys/kern/kern_shutdown.c:620 :#3 0xc0297a55 in relookup (dvp=0xd75901f8, vpp=0xd75a8a44, :cnp=0xd75a8aec) at /usr/src/sys/kern/vfs_lookup.c:90 :#4 0xc02ad3b5 in msdosfs_rename (ap=0xd75a8a78) at :/usr/src/sys/vfs/msdosfs/msdosfs_vnops.c:1101 :... : : :Thanks, Kyle This should fix it, Kyle. Please try it out and report back. -Matt Matthew Dillon <dillon@backplane.com> Index: msdosfs_vnops.c =================================================================== RCS file: /cvs/src/sys/vfs/msdosfs/msdosfs_vnops.c,v retrieving revision 1.21 diff -u -r1.21 msdosfs_vnops.c --- msdosfs_vnops.c 12 Nov 2004 00:09:36 -0000 1.21 +++ msdosfs_vnops.c 21 Dec 2004 23:42:58 -0000 @@ -1089,6 +1089,7 @@ */ vref(tdvp); error = doscheckpath(ip, dp); + tcnp->cn_flags |= CNP_PDIRUNLOCK; if (error) { vrele(tdvp); goto out;
文章代碼(AID): #11oBa_00 (DFBSD_kernel)
文章代碼(AID): #11oBa_00 (DFBSD_kernel)