From owner-freebsd-current Tue Jul 16 6:11:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A86F737B400; Tue, 16 Jul 2002 06:11:42 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 392BA43E3B; Tue, 16 Jul 2002 06:11:42 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 2BC69534A; Tue, 16 Jul 2002 15:11:40 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Andrew Gallatin Cc: alpha@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: VOP_GETATTR panic on Alpha References: <15668.5911.639776.253419@grasshopper.cs.duke.edu> From: Dag-Erling Smorgrav Date: 16 Jul 2002 15:11:39 +0200 In-Reply-To: <15668.5911.639776.253419@grasshopper.cs.duke.edu> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrew Gallatin writes: > Welcome to hell. Thanks, it sure looks cozy in here :) > If you clear panicstr, you have a chance of getting a dump. How do I do that? BTW, I've looked at the code in vn_statfile(): vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); error = vn_stat(vp, sb, td); VOP_UNLOCK(vp, 0, td); it seems that either vn_lock() fails to actually lock the vnode, or there's a race condition that causes the vnode to get unlocked between vn_lock() and vn_stat(). Since the panic is 100% reproducible, I'm inclined to think it's the former. Note that vn_statfile() fails to check the return code from vn_lock(), but LK_RETRY is supposed to mean vn_lock() never fails. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message