From owner-freebsd-stable@FreeBSD.ORG Wed Dec 11 09:49:17 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B5B3E0D for ; Wed, 11 Dec 2013 09:49:17 +0000 (UTC) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E438D11A2 for ; Wed, 11 Dec 2013 09:49:16 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id w61so6249546wes.14 for ; Wed, 11 Dec 2013 01:49:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=khu+1gzTb1Tu04NUYMzGeZWHWtqlUhUllTweW8heJN4=; b=f81aecqD5OrY8Y+6IP+QFspx9KtE/I16Twk9+i1fjaQOxidFagelzQZvIEHc/jgpp2 NORj9746ZP2+uZc8XOcWsSx0UKaCZolbDuBcHNj3DRyUq3hwrz1zTqfJ4yaPSW5CnpAr Ov2ZcCKrFY9QvU/FcH9jrZ2ur1OS/ICFPMIglSixYEHuqXnVg5cOLQntmZ0AKlz+IG3q Bng77djeEgCyD8mxY//tCKoxAXZO8BAI9J7jOCOT8avmHKHu3GZEMVqF1S7jCik0M4wL AQq3delRm1SN2/4McDZ8xaSVn3/ul4y4ApB9/aQagjxkEYpIpEWMwAwSQEtt2WxYtt6l zf8w== MIME-Version: 1.0 X-Received: by 10.194.84.72 with SMTP id w8mr445293wjy.55.1386755355302; Wed, 11 Dec 2013 01:49:15 -0800 (PST) Received: by 10.217.89.138 with HTTP; Wed, 11 Dec 2013 01:49:15 -0800 (PST) In-Reply-To: <20131209170710.GU59496@kib.kiev.ua> References: <20131206201329.GK59496@kib.kiev.ua> <20131207183044.GA19655@x2.osted.lan> <20131209170710.GU59496@kib.kiev.ua> Date: Wed, 11 Dec 2013 11:49:15 +0200 Message-ID: Subject: Re: stable/10 r258317 - UFS lock problem From: =?ISO-8859-1?Q?=D6zkan_KIRIK?= To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Wed, 11 Dec 2013 09:49:17 -0000 Sorry for late response, All screen shots from ddb are at http://89.252.153.9/okirik/freebsd_ufs_bug_report.zip Archive contains, ps, show pcpu, show allpcpu, show lockedvnods, show locks, show alllocks, trace, where, alltrace outputs. Thanks for your interests, With best regards. Ozkan KIRIK On Mon, Dec 9, 2013 at 7:07 PM, Konstantin Belousov wrote: > On Mon, Dec 09, 2013 at 01:55:27PM +0200, ?zkan KIRIK wrote: > > Hi, > > > > I compiled GENERIC kernel with; > > > > makeoptions DEBUG=-g > > options DDB > > options INVARIANTS > > options INVARIANT_SUPPORT > > options WITNESS > > options WITNESS_SKIPSPIN > > options DEBUG_LOCKS > > options DEBUG_VFS_LOCKS > > options DIAGNOSTIC > > > > > > When I run portsnap fetch extract, I catched these situations on console: > > > > 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 = Ox80088alfa. rsp = > > Ox7fffffffd998, rbp = Ox7fffffffda60 --- > > > > > > "ps" output over ssh is below: > > > > # ps ax | grep D+ > > 29730 0 D+ 0:00.00 tar -xz --numeric-owner -f > > > /var/db/portsnap/files/cafbda170898ff0143598e1363c08fc3ac82ba2f4d43334fc53b251dbcd28063.gz > > -C /usr/ports/games/highmoon/ (bsdtar) > > > > > > > > > > > > On Sun, Dec 8, 2013 at 9:38 PM, ?zkan KIRIK > wrote: > > > > > 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/kerneldebug-deadlocks.htmlpage, > You did not read this page. > > Without information listed, I cannot even guess what the problem is. >