From owner-freebsd-stable@FreeBSD.ORG Mon Dec 9 17:07:24 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2F56166 for ; Mon, 9 Dec 2013 17:07:23 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 62BC11CE9 for ; Mon, 9 Dec 2013 17:07:23 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id rB9H7B58032056; Mon, 9 Dec 2013 19:07:11 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua rB9H7B58032056 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id rB9H7BgT032055; Mon, 9 Dec 2013 19:07:11 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 9 Dec 2013 19:07:10 +0200 From: Konstantin Belousov To: ?zkan KIRIK Subject: Re: stable/10 r258317 - UFS lock problem Message-ID: <20131209170710.GU59496@kib.kiev.ua> References: <20131206201329.GK59496@kib.kiev.ua> <20131207183044.GA19655@x2.osted.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d1QBpTpNw5tR2ANj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: Peter Holm , freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2013 17:07:24 -0000 --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 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--