Date: Mon, 11 Mar 2019 15:02:05 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 236220] ZFS vnode deadlock on zfs_mknode Message-ID: <bug-236220-3630-2s0FBJ26RB@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-236220-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-236220-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236220 --- Comment #10 from ncrogers@gmail.com --- I finally got a system to panic with INVARIANTS enabled. panic: solaris assert: dn->dn_type !=3D DMU_OT_NONE, file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c, line: 2540 Below is the full panic and backtrace. Let me know if there's something hel= pful I can provide from kgdb. I also have a second panic but it looks the same. courtland# kgdb /boot/kernel/kernel /var/crash/vmcore.0 GNU gdb (GDB) 8.2.1 [GDB v8.2.1 for FreeBSD] Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm= l> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /boot/kernel/kernel...Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...done. done. Unread portion of the kernel message buffer: panic: solaris assert: dn->dn_type !=3D DMU_OT_NONE, file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c, line: 2540 cpuid =3D 1 time =3D 1552104873 KDB: stack backtrace: #0 0xffffffff80d3bf77 at kdb_backtrace+0x67 #1 0xffffffff80cf4a53 at vpanic+0x1a3 #2 0xffffffff80cf4833 at panic+0x43 #3 0xffffffff803bbcba at assfail+0x1a #4 0xffffffff803f094b at dbuf_create+0x9b #5 0xffffffff803f08a1 at dbuf_create_bonus+0x71 #6 0xffffffff803f8d10 at dmu_bonus_hold+0xb0 #7 0xffffffff804cde29 at zfs_zget+0x69 #8 0xffffffff804bff37 at zfs_get_data+0x67 #9 0xffffffff804d3faf at zil_commit_impl+0x15af #10 0xffffffff804c73bb at zfs_freebsd_fsync+0xcb #11 0xffffffff813861be at VOP_FSYNC_APV+0x9e #12 0xffffffff80dab2d4 at vop_stdfdatasync+0x34 #13 0xffffffff8138a84e at VOP_FDATASYNC_APV+0x9e #14 0xffffffff80dc7bd3 at kern_fsync+0x1b3 #15 0xffffffff811fc532 at amd64_syscall+0x272 #16 0xffffffff811d65ad at fast_syscall_common+0x101 Uptime: 3d10h28m54s Dumping 4867 out of 16241 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..= 91% __curthread () at ./machine/pcpu.h:230 230 ./machine/pcpu.h: No such file or directory. (kgdb) backtrace #0 __curthread () at ./machine/pcpu.h:230 #1 doadump (textdump=3D<optimized out>) at /usr/src/sys/kern/kern_shutdown= .c:366 #2 0xffffffff80cf468b in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:446 #3 0xffffffff80cf4ab3 in vpanic (fmt=3D<optimized out>, ap=3D0xfffffe00b77= c54a0) at /usr/src/sys/kern/kern_shutdown.c:872 #4 0xffffffff80cf4833 in panic (fmt=3D<unavailable>) at /usr/src/sys/kern/kern_shutdown.c:799 #5 0xffffffff803bbcba in assfail (a=3D<unavailable>, f=3D<unavailable>, l=3D<unavailable>) at /usr/src/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c:81 #6 0xffffffff803f094b in dbuf_create (dn=3D0xfffff8015f77a770, level=3D0 '= \000', blkid=3D18446744073709551615,=20 parent=3D0xfffff80296803c60, blkptr=3D0x0) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:2540 #7 0xffffffff803f08a1 in dbuf_create_bonus (dn=3D0xfffff8015f77a770) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:3085 #8 0xffffffff803f8d10 in dmu_bonus_hold (os=3D<optimized out>, object=3D<o= ptimized out>, tag=3D0x0,=20 dbp=3D0xfffffe00b77c5648) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c:345 #9 0xffffffff804cde29 in zfs_zget (zfsvfs=3D0xfffffe008ea28000, obj_num=3D= 33262, zpp=3D0xfffffe00b77c56c0) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c:= 1137 #10 0xffffffff804bff37 in zfs_get_data (arg=3D0xfffffe008ea28000, lr=3D0xfffffe00a6620300, buf=3D0x0,=20 lwb=3D0xfffff8042cf828c0, zio=3D0xfffff80047eb5000) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:= 1297 #11 0xffffffff804d3faf in zil_lwb_commit (zilog=3D<optimized out>, lwb=3D<o= ptimized out>, itx=3D<optimized out>) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c:1493 #12 zil_process_commit_list (zilog=3D<optimized out>) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c:2069 #13 zil_commit_writer (zilog=3D<optimized out>, zcw=3D<optimized out>) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c:2201 #14 zil_commit_impl (zilog=3D<optimized out>, foid=3D<optimized out>) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c:2712 #15 0xffffffff804c73bb in zfs_fsync (syncflag=3D0, vp=3D<optimized out>, cr=3D<optimized out>, ct=3D<optimized out>) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:= 2627 #16 zfs_freebsd_fsync (ap=3D<optimized out>) at /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:= 5079 #17 0xffffffff813861be in VOP_FSYNC_APV (vop=3D0xffffffff81c64f70 <zfs_vnod= eops>, a=3D0xfffffe00b77c58c0) at vnode_if.c:1331 #18 0xffffffff80dab2d4 in VOP_FSYNC (vp=3D<unavailable>, waitfor=3D1, td=3D= <optimized out>) at ./vnode_if.h:549 #19 vop_stdfdatasync (ap=3D<optimized out>) at /usr/src/sys/kern/vfs_default.c:732 #20 0xffffffff8138a84e in VOP_FDATASYNC_APV (vop=3D0xffffffff81d3b338 <default_vnodeops>, a=3D0xfffffe00b77c5938) at vnode_if.c:4437 #21 0xffffffff80dc7bd3 in VOP_FDATASYNC (vp=3D<optimized out>, td=3D<optimi= zed out>) at ./vnode_if.h:1849 #22 kern_fsync (td=3D0xfffff8000bb96580, fd=3D<optimized out>, fullsync=3Df= alse) at /usr/src/sys/kern/vfs_syscalls.c:3374 #23 0xffffffff811fc532 in syscallenter (td=3D0xfffff8000bb96580) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:135 #24 amd64_syscall (td=3D0xfffff8000bb96580, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:1076 #25 <signal handler called> #26 0x000000080131e8aa in ?? () Backtrace stopped: Cannot access memory at address 0x7fffffffd078 (kgdb) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236220-3630-2s0FBJ26RB>