From owner-freebsd-current@FreeBSD.ORG Sat Jan 26 14:29:05 2008 Return-Path: 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 10D4916A46B; Sat, 26 Jan 2008 14:29:05 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 54AE213C43E; Sat, 26 Jan 2008 14:29:04 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id m0QET1kx051254; Sat, 26 Jan 2008 17:29:02 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id m0QET1JJ051253; Sat, 26 Jan 2008 17:29:01 +0300 (MSK) (envelope-from yar) Date: Sat, 26 Jan 2008 17:29:01 +0300 From: Yar Tikhiy To: Attilio Rao Message-ID: <20080126142901.GD49535@comp.chem.msu.su> References: <790a9fff0801150552l542a4238ofc12efe5fdb45fc2@mail.gmail.com> <20080115143924.GB57756@deviant.kiev.zoral.com.ua> <20080124122808.GA15600@freefall.freebsd.org> <3bbf2fe10801240518i6e18b2f5w84de652d4170c95b@mail.gmail.com> <20080124145811.GB78114@comp.chem.msu.su> <3bbf2fe10801240707o72b927cg74dbf9b7bbcd88fc@mail.gmail.com> <20080125075551.GB21633@comp.chem.msu.su> <3bbf2fe10801250000k5852c2f2j5d1897c900096818@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bbf2fe10801250000k5852c2f2j5d1897c900096818@mail.gmail.com> User-Agent: Mutt/1.5.9i Cc: Kostik Belousov , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 14:29:05 -0000 On Fri, Jan 25, 2008 at 09:00:07AM +0100, Attilio Rao wrote: > 2008/1/25, Yar Tikhiy : > > > > I don't deserve these kind words because I disinformed you seriously. > > > > My panic appears to be related not to UFS, but to NTFS. Namely I > > have an NTFS volume mounted read-only at /ntfs. I have no idea why > > the ports framework touches the /ntfs sub-tree, but not mounting > > it in the first place makes the panic go away. (I still wonder why > > my system would also panic during buildworld, which should not touch > > my /ntfs at all... Now I'll try to do a buildworld w/o /ntfs mounted.) > > Well, this is still to be fixed :) No doubt. :-) But the urgency of this problem appears much lower than that I estimated in the first place--fortunately. Broken UFS would be a nightmare. > > At the same time, dismounting the NTFS volume leads to an instant > > panic of a similar kind: > > > > panic: System call unmount returning with 5 locks held > > > > More debug output is attached. [...] > Do you see any call to lockmgr_disown() in this ktr trace? > Can you past relevant lines of it, otherwise? I've uploaded the full "show ktr" outputs for the lstat- and umount-triggered panics there: http://people.freebsd.org/~yar/debug/ Here's their summary: $ awk '{print $3}' ktr_lstat.txt | sort | uniq -c 32752 _lockmgr: 8 sharelock: 8 shareunlock: $ awk '{print $4}' ktr_lstat.txt | sort | uniq -c 16 0xc322ccc0 32752 0xc37e1220 $ awk '{print $3}' ktr_umount.txt | sort | uniq -c 28663 _lockmgr: 1901 lockmgr_disown: 1102 sharelock: 1102 shareunlock: $ awk '{print $4}' ktr_umount.txt | sort | uniq -c 4550 0xc322ccc0 288 0xc3281220 14 0xc3282220 322 0xc3282660 104 0xc33e6220 2 0xc33e6440 4 0xc3520220 10 0xc3520440 24 0xc3772220 82 0xc3772aa0 7149 0xc3772cc0 358 0xc3774000 17766 0xc3774220 288 0xc3774440 1058 0xc3774660 719 0xc3774880 30 0xc3775000 That is, I lied again, sorry: There were calls to functions other than _lockmgr. But the ktr log for umount looks much more interesting than that for lstat. I'm ready to do more debug runs if needed--instructions are welcome. Thank you! -- Yar