Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 22:30:48 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: panic/lock on 9.3-RELEASE with nullfs/nfs/zfs combination
Message-ID:  <20140724193048.GU93733@kib.kiev.ua>
In-Reply-To: <53D1503B.2030200@omnilan.de>
References:  <53D12973.3010805@omnilan.de> <20140724165917.GT93733@kib.kiev.ua> <53D1503B.2030200@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--aw451JwZw0N/VzGo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 24, 2014 at 08:28:11PM +0200, Harald Schmalzbauer wrote:
>  Bez??glich Konstantin Belousov's Nachricht vom 24.07.2014 18:59
> (localtime):
> > ???
> > The lockmgr flags are LK_SHARE | LK_RETRY, and error 11 =3D=3D EDEADLK
> > indicates that the lock is already taken by the curthread in the
> > exclusive mode. I am interested in what line of code did the locking.
> >
> > Add ddb, INVARIANTS, WITNESS and DEBUG_VFS_LOCKS options to the kernel
> > config, reproduce the issue and, after the panic occured and you
> > get at the ddb prompt, issue command 'show alllocks'.
> >
> > Also, do 'show mount', after which do 'show mount <addr>', where <addr>
> > is the address of your nullfs mount point, printed by 'show mount'.
> >
> > I need all console output starting from the panic message.
>=20
> FreeBSD/amd64 (mira.inop.mo1.omnilan.net) (ttyu0)
>=20
> login: panic: LK_RETRY set with incompatible flags (0x200400) or an
> error occured (11)
> cpuid =3D 1
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2a/frame
> 0xffffff82e565fc70
> kdb_backtrace() at kdb_backtrace+0x37/frame 0xffffff82e565fd30
> panic() at panic+0x1cd/frame 0xffffff82e565fe30
> _vn_lock() at _vn_lock+0x77/frame 0xffffff82e565fe90
> zfs_lookup() at zfs_lookup+0x420/frame 0xffffff82e565ff20
> zfs_freebsd_lookup() at zfs_freebsd_lookup+0xa6/frame 0xffffff82e5660070
> VOP_CACHEDLOOKUP_APV() at VOP_CACHEDLOOKUP_APV+0x102/frame
> 0xffffff82e56600a0
> vfs_cache_lookup() at vfs_cache_lookup+0xff/frame 0xffffff82e5660110
> VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x102/frame 0xffffff82e5660140
> null_lookup() at null_lookup+0x92/frame 0xffffff82e56601c0
> VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x102/frame 0xffffff82e56601f0
> lookup() at lookup+0x32f/frame 0xffffff82e5660290
> namei() at namei+0x3df/frame 0xffffff82e5660340
> vn_open_cred() at vn_open_cred+0x1e2/frame 0xffffff82e56604b0
> vop_stdvptocnp() at vop_stdvptocnp+0x1af/frame 0xffffff82e56607e0
> null_vptocnp() at null_vptocnp+0xf5/frame 0xffffff82e5660850
> VOP_VPTOCNP_APV() at VOP_VPTOCNP_APV+0x105/frame 0xffffff82e5660880
> vn_vptocnp_locked() at vn_vptocnp_locked+0x15b/frame 0xffffff82e5660910
> vn_fullpath1() at vn_fullpath1+0x100/frame 0xffffff82e5660970
> kern___getcwd() at kern___getcwd+0xd4/frame 0xffffff82e56609d0
> amd64_syscall() at amd64_syscall+0x318/frame 0xffffff82e5660af0
> Xfast_syscall() at Xfast_syscall+0xf7/frame 0xffffff82e5660af0
> --- syscall (326, FreeBSD ELF64, sys___getcwd), rip =3D 0x8011a191c, rsp =
=3D
> 0x7fffffffe658, rbp =3D 0x801873400 ---
> KDB: enter: panic
> [ thread pid 1918 tid 100919 ]
> Stopped at kdb_enter+0x3b: movq $0,0x645622(%rip)
> db> show alllocks
> db> <???nothing
You do not have WITNESS in your kernel config, most likely.

--aw451JwZw0N/VzGo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJT0V7oAAoJEJDCuSvBvK1BcDoP/34TDoNILuZpYaG5NhPWacOy
kLo+vWzv9tfVNV++LQWtCe1RyX9v/LsywL9hXGSN7LGiNbZqPyHoexd7OB4OST5X
kdiLRGOgRmJr+26ICEV5aGTq1B8dIYevAxwYDarDOFDLaJCcaer0tJPXclImiOGd
kCLuD/A9kNfOUCBuR/+Bmq50qD68cqhYPA5xh/1lF2nHmvTv3fbQZqv1X3sT2Zy9
UWJA6UpTiClpqJ6iDajSZhnBC250Dggliq6Vx6sI7vK/ZubLDWXERzhklzS54Ykh
MxFnCyiXzakK9ZxfJJbpEvBAa2PkIDMJI0I2OxYcufejjwuYa31wx51qAsLvTEsJ
ZX9/maUKZgLki8FN2FqAw2y84PZDLDilZP9YtwKAjcLXKjwoEIdVDMH8FvKYQxVA
z0zIR1LMp03PHw7TNr6rjj4uxbfzIeU+Fboc0rWOItMcJM7s+pCknT1tnFTKPwM4
ZYDCV8TT+YhtZmTMijE2Ai7nR0jvc6E7eSUnz9v+SpCiWi9tQrafeB63suTj6QIJ
w9DJuW/XwasVz2ZivI+PCGxAP+pUt48VvkheLqW8HIctdkOo5ghHkT1hkKyyqzl4
cDt+m2DsYYmiF969DD5REhZ9DsL2/rdZr3cW+WBngiQu7fFzvsnnO0LiYE0FYHf3
uZ/FukCCXf8NHZ87L5tl
=7NJe
-----END PGP SIGNATURE-----

--aw451JwZw0N/VzGo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140724193048.GU93733>