From owner-freebsd-current@FreeBSD.ORG  Thu Jan 24 17:54:48 2008
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EAEDE16A419
	for <freebsd-current@freebsd.org>; Thu, 24 Jan 2008 17:54:47 +0000 (UTC)
	(envelope-from asmrookie@gmail.com)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156])
	by mx1.freebsd.org (Postfix) with ESMTP id 785AC13C459
	for <freebsd-current@freebsd.org>; Thu, 24 Jan 2008 17:54:47 +0000 (UTC)
	(envelope-from asmrookie@gmail.com)
Received: by fg-out-1718.google.com with SMTP id 16so338465fgg.35
	for <freebsd-current@freebsd.org>; Thu, 24 Jan 2008 09:54:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
	bh=MepzIdhbEiseX8v1OK5vgUySFZRC7pPPb5wIIwlXTgk=;
	b=A1u9eupJ+VjnQiPaQlHNwGbxsKwgzsbusYgAMxDFrYMx6rFLPShmyoUDqHF4H2hE4am/MZ+2JAnlMBnIYym72tQ9bX1PRh1RGtwlPerdhj6SXHu82ghuo6W5m7YYoLaQvaIbJ4ZK6ywjqaMGF3SEDBJoRnKtquUR9nLzT32iP6w=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
	b=Xqx3DYB0tAdjst5bGisvKiQSP3dm8IFBV9sahN/mF/tOEmg9whPJg9WhtU4ejh16K92w/uWcGJP6RATShUEET6e8S5X5Z5TthYCx9jjeD6IcPumGFq8eifLyD7J3qHVAXtavFWFbNi2keKxxeUbTP1naCCBtzAg/ltqZd6n7pzE=
Received: by 10.86.99.9 with SMTP id w9mr863138fgb.44.1201197286132;
	Thu, 24 Jan 2008 09:54:46 -0800 (PST)
Received: by 10.86.53.7 with HTTP; Thu, 24 Jan 2008 09:54:46 -0800 (PST)
Message-ID: <3bbf2fe10801240954r1aa5ae1g3ce347cf4dbbbba@mail.gmail.com>
Date: Thu, 24 Jan 2008 18:54:46 +0100
From: "Attilio Rao" <attilio@freebsd.org>
Sender: asmrookie@gmail.com
To: "Yar Tikhiy" <yar@comp.chem.msu.su>
In-Reply-To: <20080124174759.GC78114@comp.chem.msu.su>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <790a9fff0801150552l542a4238ofc12efe5fdb45fc2@mail.gmail.com>
	<20080115143924.GB57756@deviant.kiev.zoral.com.ua>
	<20080124122808.GA15600@freefall.freebsd.org>
	<3bbf2fe10801240518i6e18b2f5w84de652d4170c95b@mail.gmail.com>
	<20080124174759.GC78114@comp.chem.msu.su>
X-Google-Sender-Auth: 3d730bb7106d8c93
Cc: Kostik Belousov <kostikbel@gmail.com>, freebsd-current@freebsd.org
Subject: Re: panic: System call lstat returning with 1 locks held
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2008 17:54:48 -0000

2008/1/24, Yar Tikhiy <yar@comp.chem.msu.su>:
> On Thu, Jan 24, 2008 at 02:18:56PM +0100, Attilio Rao wrote:
> > 2008/1/24, Yar Tikhiy <yar@freebsd.org>:
> > > On Tue, Jan 15, 2008 at 04:39:24PM +0200, Kostik Belousov wrote:
> > > >
> > > > I think this could be related to the recent vn_lock()/VOP_LOCK() KPI changes.
> > > > Please, add DEBUG_VFS_LOCKS to the kernel config, and do the
> > > >       show lockedvnods
> > > > from the ddb prompt when the panic occurs. The witness does not track
> > > > the lockmgr locks.
> > >
> > > I think I'm seeing the same panic on UFS.  It's rather nasty: I
> > > cannot rebuild CURRENT natively due to it so I have to build it
> > > under 6-STABLE.  My favourite way to trigger the panic reliably is
> > > running `make install' in a simple port directory, e.g., portmaster,
> > > but my system also panics during daily scripts run and, as already
> > > said, if trying to build world.
> >
> > Yar,
> > as it seems reproducible for you, can you please add this patch to the tree:
> > http://www.freebsd.org/~attilio/debug_tdlocks.diff
> >
> > compile your kernel with:
> > options KTR
> > options KTR_COMPILE=(KTR_SPARE2)
> > options KTR_MASK=(KTR_SPARE2)
> > options KTR_ENTRIES=32768
> >
> > and once kernel panics, at ddb prompts do:
> > > show ktr
>
> The first lines of the ktr output are attached.  I can try to extract
> all 32768 lines if needed, but they all look almost the same.  I.e.,
> the function name and the td pointer are the same while td_locks
> bump is 1 or -1.

You mean the traced owner is always the same?
Do you see any call to lockmgr_disown() in the code?

Thanks,
Attilio


-- 
Peace can only be achieved by understanding - A. Einstein