panic: fsync: vnode is not exclusive locked but should be
Date: Mon, 04 Aug 2025 18:50:45 UTC
Hi, I have a crash with todays -current: ---snip--- [435] VNASSERT failed: locked not true at /space/system/usr_src/sys/kern/vfs_subr.c:5795 (assert_vop_elocked) [435] 0xfffff806746f2000: type VREG state VSTATE_CONSTRUCTED op 0xffffffff835474f8 [435] usecount 1, writecount 1, refcount 1 seqc users 0 [435] hold count flags () [435] flags () [435] v_object 0xfffff80bd3abf0f8 ref 0 pages 0 cleanbuf 0 dirtybuf 0 [435] lock type zfs: SHARED (count 1) [435] vp=0xfffff806746f2000, lowervp=0xfffff806749bd370 [435] panic: fsync: vnode is not exclusive locked but should be [435] cpuid = 6 [435] time = 1754331603 [435] KDB: stack backtrace: [435] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0761c76bb0 [435] vpanic() at vpanic+0x136/frame 0xfffffe0761c76ce0 [435] panic() at panic+0x43/frame 0xfffffe0761c76d40 [435] vop_fsync_debugprepost() at vop_fsync_debugprepost+0x102/frame 0xfffffe0761c76d70 [435] VOP_FSYNC_APV() at VOP_FSYNC_APV+0x23/frame 0xfffffe0761c76d90 [435] kern_fsync() at kern_fsync+0x109/frame 0xfffffe0761c76e00 [435] amd64_syscall() at amd64_syscall+0x16a/frame 0xfffffe0761c76f30 [435] fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0761c76f30 [435] --- syscall (95, FreeBSD ELF64, fsync), rip = 0x3d917a21f0a, rsp = 0x3d90b281448, rbp = 0x3d90b281460 --- [435] Uptime: 7m15s ---snip--- This repeats at each boot. crashinfo doesn't provide an useful backtrace, I think we need a way to provide the location of the debug symbols: ---snip--- Reading symbols from /tmp/be_mount.qjKC/boot/kernel/kernel... (No debugging symbols found in /tmp/be_mount.qjKC/boot/kernel/kernel) 'osreldate' has unknown type; cast it to its declared type (kgdb) No thread selected. (kgdb) (kgdb) Python Exception <class 'AttributeError'>: 'NoneType' object has no attribute 'value' Error occurred in Python: 'NoneType' object has no attribute 'value' (kgdb) ---snip--- Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF