Bug 255201 - [panic] handle_written_inodeblock: Invalid link count -1 for inodedep
Summary: [panic] handle_written_inodeblock: Invalid link count -1 for inodedep
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-18 21:54 UTC by Christos Chatzaras
Modified: 2021-04-19 07:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christos Chatzaras 2021-04-18 21:54:02 UTC
FreeBSD server.example.com 13.0-RELEASE FreeBSD 13.0-RELEASE #0 ea31abc26: Fri Apr  9 19:34:58 EEST 2021     root@server.cretaforce.gr:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

panic: handle_written_inodeblock: Invalid link count -1 for inodedep 0xfffff8009b512c00

GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-freebsd13.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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...

Unread portion of the kernel message buffer:
panic: handle_written_inodeblock: Invalid link count -1 for inodedep 0xfffff8009b512c00
cpuid = 0
time = 1618779673
KDB: stack backtrace:
#0 0xffffffff80c57345 at kdb_backtrace+0x65
#1 0xffffffff80c09d21 at vpanic+0x181
#2 0xffffffff80c09b93 at panic+0x43
#3 0xffffffff80efb285 at handle_written_inodeblock+0xb05
#4 0xffffffff80edee0a at softdep_disk_write_complete+0x5da
#5 0xffffffff80cc2cac at bufdone+0x22c
#6 0xffffffff80cbddbc at bufwrite+0x1dc
#7 0xffffffff80cc102f at vfs_bio_awrite+0x37f
#8 0xffffffff80cff213 at vn_fsync_buf+0x213
#9 0xffffffff80ced995 at sched_sync+0x465
#10 0xffffffff80bc7c5e at fork_exit+0x7e
#11 0xffffffff8106282e at fork_trampoline+0xe
Uptime: 6d21h3m7s
Dumping 4321 out of 65273 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55      /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:399
#2  0xffffffff80c09916 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:486
#3  0xffffffff80c09d90 in vpanic (fmt=<optimized out>, ap=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:919
#4  0xffffffff80c09b93 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:843
#5  0xffffffff80efb285 in handle_written_inodeblock (
    inodedep=inodedep@entry=0xfffff8009b512c00,
    bp=bp@entry=0xfffffe006bd0a1d0, flags=flags@entry=4194304)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:11996
#6  0xffffffff80edee0a in softdep_disk_write_complete (bp=<optimized out>,
    bp@entry=<error reading variable: value is not available>)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:11505
#7  0xffffffff80cc2cac in buf_complete (bp=0xfffffe006bd0a1d0)
    at /usr/src/sys/sys/buf.h:450
#8  bufdone (bp=0xfffffe006bd0a1d0,
    bp@entry=<error reading variable: value is not available>)
    at /usr/src/sys/kern/vfs_bio.c:4492
#9  0xffffffff80cbddbc in bstrategy (bp=0xfffffe006bd0a1d0,
    bp@entry=<error reading variable: value is not available>)
    at /usr/src/sys/sys/buf.h:431
#10 bufwrite (bp=0xfffffe006bd0a1d0,
    bp@entry=<error reading variable: value is not available>)
    at /usr/src/sys/kern/vfs_bio.c:2302
#11 0xffffffff80cc102f in bwrite (bp=0xfffffe006bd0a1d0)
    at /usr/src/sys/sys/buf.h:419
#12 vfs_bio_awrite (bp=<optimized out>, bp@entry=0xfffffe006bd0a1d0)
    at /usr/src/sys/kern/vfs_bio.c:3233
#13 0xffffffff80cff213 in vn_fsync_buf (vp=<optimized out>,
    vp@entry=<error reading variable: value is not available>, waitfor=3,
    waitfor@entry=<error reading variable: value is not available>)
    at /usr/src/sys/kern/vfs_vnops.c:2760
#14 0xffffffff80ced995 in VOP_FSYNC (vp=0xfffff8000bba47a0, waitfor=3,
    td=0xfffffe015bd0ca00) at ./vnode_if.h:771
#15 sync_vnode (slp=<optimized out>, bo=<optimized out>,
    td=0xfffffe015bd0ca00) at /usr/src/sys/kern/vfs_subr.c:2583
#16 sched_sync () at /usr/src/sys/kern/vfs_subr.c:2685
#17 0xffffffff80bc7c5e in fork_exit (callout=0xffffffff80ced530 <sched_sync>,
    arg=0x0, frame=0xffffffff8242cb00) at /usr/src/sys/kern/kern_fork.c:1069
#18 <signal handler called>
(kgdb)