Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 19:07:10 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        ?zkan KIRIK <ozkan.kirik@gmail.com>
Cc:        Peter Holm <peter@holm.cc>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: stable/10 r258317 - UFS lock problem
Message-ID:  <20131209170710.GU59496@kib.kiev.ua>
In-Reply-To: <CAAcX-AFKzW=tPgb5jKzNNZQazrdwhDo2SxQGuwLw71iHGezQog@mail.gmail.com>
References:  <CAAcX-AHM6WXmWM1aTmaRETJFSMvAGqXsrCHo9a3nxhU9%2BHQhSQ@mail.gmail.com> <20131206201329.GK59496@kib.kiev.ua> <CAAcX-AHbwsSZHREL-RpFFojMWEwLDR0sCSkPTddmZMPbuV0E5A@mail.gmail.com> <20131207183044.GA19655@x2.osted.lan> <CAAcX-AEWiEzHaqt8=aYxHhD80astwXUJ3Q9Ub52WCv54Cd-5bw@mail.gmail.com> <CAAcX-AFKzW=tPgb5jKzNNZQazrdwhDo2SxQGuwLw71iHGezQog@mail.gmail.com>

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

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

On Mon, Dec 09, 2013 at 01:55:27PM +0200, ?zkan KIRIK wrote:
> Hi,
>=20
> I compiled GENERIC kernel with;
>=20
> makeoptions DEBUG=3D-g
> options DDB
> options INVARIANTS
> options INVARIANT_SUPPORT
> options WITNESS
> options WITNESS_SKIPSPIN
> options DEBUG_LOCKS
> options DEBUG_VFS_LOCKS
> options DIAGNOSTIC
>=20
>=20
> When I run portsnap fetch extract, I catched these situations on console:
>=20
> lock order reversal:
>  1st Oxfffffe0080531888 bufwait (bufwait) ? ,usr/src/sys/kern/vfs
> bio.c:3050
>  2nd Oxfffff8000d48a400 dirhash (dirhash)
> /usr/src/sys/ufs/ufs/ufs_dirhash.c:284
> KDB: stack backtrace:
> kdb_trace_self_wrapper() at db_trace_self_wrapper.0x2b/frame
> Oxfffffe009aaa3700
> db_backtrace() at kdb backtrace.0x39/frame Oxfffffe009aaa37b0
> witness_checkorder() at witness_checkorder.Oxd23/frame Oxfffffe009aaa3840
> _sx_xlock() at _sx xlock.0x75/frame Oxfffffe009aaa3880
> ufsdirhash_remove() at ufsdirhash remove.0x47/frame Oxfffffe009aaa38b0
> ufs_dirremove() at ufs_dirremove.0x11b/frame Oxfffffe009aaa3900
> ufs_rmdir() at ufs_rmdir.Oxe3/frame Oxfffffe009aaa3940
> VOP_RMDIR_APV() at VOP RHDIR APV.0x12d/frame Oxfffffe009aaa3970
> kern_rmdirat() at kern rmdirat.0x1b8/frame Oxfffffe009aaa3ae0
> amd64_syscall() at amd64_syscal1.0x282/frame Oxfffffe009aaa3bf0
> Xfast_syscall() at Xfast_syscall.Oxfb/frame Oxfffffe009aaa3bf0
> --- syscall (137. FreeBSD ELF64. sys_rmdir). rip =3D Ox80088alfa. rsp =3D
> Ox7fffffffd998, rbp =3D Ox7fffffffda60 ---
>=20
>=20
> "ps" output over ssh is below:
>=20
> # ps ax | grep D+
> 29730  0  D+    0:00.00 tar -xz --numeric-owner -f
> /var/db/portsnap/files/cafbda170898ff0143598e1363c08fc3ac82ba2f4d43334fc5=
3b251dbcd28063.gz
> -C /usr/ports/games/highmoon/ (bsdtar)
>=20
>=20
>=20
>=20
>=20
> On Sun, Dec 8, 2013 at 9:38 PM, ?zkan KIRIK <ozkan.kirik@gmail.com> wrote:
>=20
> > Hi,
> >
> > You're right Peter. Now i am compiling with DDB option.
> > But
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ke=
rneldebug-deadlocks.html page,
You did not read this page.

Without information listed, I cannot even guess what the problem is.

--d1QBpTpNw5tR2ANj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBAgAGBQJSpfi+AAoJEJDCuSvBvK1BT3QP/0ZZ4PTCSKh4OA064+HQj4MU
VieyruczUEwkvYC14Wy/MPVqgdEsQ0NQMt3RzzmKRel5itmleZHOJGwlNgPxGDui
J0jMg7pMiOYrLb0wP20wr7izrQktV04untacCLuqehb8Fhgw0Pebw2go1NqCchaJ
yB+2tCTIrq6jDVuIJjngY4bE5v2p9gCDXqMWW5YyveBZdq2Tz3lw1ENMwLFiTfPN
LVDnW7a/i3Ve+QVkKv+SlbBJZzlXIbpqtNGht6dtjO8BTz1FMoesnV8OIeTyDFJX
YYXPXfoXKiiOAYb6sMYwUMaY2/wL8ksBTPBE9zve/lvWeP7NIolrQx0a17eGx5J8
lMZqBbGxDzJPnwCsJhAlt1ijv5OJKkHZpI3mzwU25kiFEXxjn3vMX2qJ+GmIJ9yD
HQGmO6hW7CQ4MzvdblfE6UxtXVGL3hdSdt7uMDXLzDFlUtl741Lu4KRiMhBroqgl
sSbNfb38HkD9gix0mIW81LGrYHvJ0ApjVoBj2E+7In9fCKshKZ9ZyGuEdjcT+NWX
ki478hvKrLgwxtejL4bCaysmW8Ku4eTOZ/oo9eOkPuN943Lmr+boc9Xis0ENOWSx
6JbBohTyzFqo3Y/FytckOcKNDM8q7okQOhsx1KeWmZ0ynRISGj7cW7rnde47GCsQ
jVt0MnBRbeaZNYCCGX/h
=dEub
-----END PGP SIGNATURE-----

--d1QBpTpNw5tR2ANj--



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