Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2018 08:24:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 227631] panic: vputx: usecount not zero for vnode
Message-ID:  <bug-227631-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227631

            Bug ID: 227631
           Summary: panic: vputx: usecount not zero for vnode
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: emz@norma.perm.ru

(Started at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227465)

Got another panic on r332466, so it's reproducible.

vputx: usecount not zero for vnode 0xfffff803852a1760: tag devfs, type VCHR
    usecount -1, writecount -1, refcount 0 rdev 0xfffff80145cf1a00
    flags (VI_FREE)
 VI_LOCKed    lock type devfs: EXCL by thread 0xfffff804ec5b1620 (pid 59162,
ctladm, tid 109582)
        dev zvol/data/kvm/desktop/games-vm401

Now with backtrace:

=3D=3D=3DCut=3D=3D=3D
(kgdb) bt
#0  doadump (textdump=3D<value optimized out>) at pcpu.h:229
#1  0xffffffff80af3beb in kern_reboot (howto=3D260) at
/usr/src/sys/kern/kern_shutdown.c:383
#2  0xffffffff80af4011 in vpanic (fmt=3D<value optimized out>, ap=3D<value
optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:776
#3  0xffffffff80af3e53 in panic (fmt=3D<value optimized out>) at
/usr/src/sys/kern/kern_shutdown.c:707
#4  0xffffffff80bb799e in vputx (vp=3D<value optimized out>, func=3D<value
optimized out>)
    at /usr/src/sys/kern/vfs_subr.c:2686
#5  0xffffffff80bc6885 in vn_close1 (vp=3D0xfffff803852a1760, flags=3D3,
file_cred=3D0x0, td=3D<value optimized out>,=20
    keep_ref=3Dfalse) at /usr/src/sys/kern/vfs_vnops.c:459
#6  0xffffffff82844554 in ctl_be_block_close (be_lun=3D0xfffff80a6c8f9000)
    at /usr/src/sys/cam/ctl/ctl_backend_block.c:2100
#7  0xffffffff8284888c in ctl_be_block_rm (softc=3D0xffffffff82870298,
req=3D0xfffff807b9afbc00)
    at /usr/src/sys/cam/ctl/ctl_backend_block.c:2504
#8  0xffffffff8284399d in ctl_be_block_ioctl (dev=3D0xfffff8045f074600,
cmd=3D3243303201, addr=3D0xfffff807b9afbc00 "block",=20
    flag=3D3, td=3D0xfffff804ec5b1620) at
/usr/src/sys/cam/ctl/ctl_backend_block.c:1792
#9  0xffffffff82835e5f in ctl_ioctl (dev=3D0xfffff8045f074600, cmd=3D324330=
3201,
addr=3D0xfffff807b9afbc00 "block", flag=3D3,=20
    td=3D0xfffff804ec5b1620) at /usr/src/sys/cam/ctl/ctl.c:3065
#10 0xffffffff809c2458 in devfs_ioctl_f (fp=3D0xfffff803bc3f5640, com=3D324=
3303201,
data=3D0xfffff807b9afbc00,=20
    cred=3D0xfffff80175ad3800, td=3D0xfffff804ec5b1620) at
/usr/src/sys/fs/devfs/devfs_vnops.c:791
#11 0xffffffff80b5636d in kern_ioctl (td=3D0xfffff804ec5b1620, fd=3D3,
com=3D3243303201, data=3D<value optimized out>)
    at file.h:323
#12 0xffffffff80b5608c in sys_ioctl (td=3D0xfffff804ec5b1620,
uap=3D0xfffff804ec5b1b58)
    at /usr/src/sys/kern/sys_generic.c:745
#13 0xffffffff80f72dc8 in amd64_syscall (td=3D0xfffff804ec5b1620, traced=3D=
0) at
subr_syscall.c:132
#14 0xffffffff80f5255d in fast_syscall_common () at
/usr/src/sys/amd64/amd64/exception.S:480
#15 0x0000000801202bfa in ?? ()
Previous frame inner to this frame (corrupt stack?)
Current language:  auto; currently minimal
(kgdb)
=3D=3D=3DCut=3D=3D=3D

Kernel binaries and core files are avaiable at
http://san1.linx.playkey.net/r332466M/

I'm downgrading to r332465 to see if this would help.

--=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-227631-227>