From owner-freebsd-current@FreeBSD.ORG Tue Aug 15 17:49:59 2006 Return-Path: X-Original-To: current@FreeBSD.org 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 00D7216A4DD for ; Tue, 15 Aug 2006 17:49:59 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 0777643D7B for ; Tue, 15 Aug 2006 17:49:43 +0000 (GMT) (envelope-from pho@holm.cc) Received: (qmail 54957 invoked from network); 15 Aug 2006 17:49:41 -0000 Received: from unknown (HELO peter.osted.lan) (unknown) by unknown with SMTP; 15 Aug 2006 17:49:41 -0000 X-pair-Authenticated: 80.165.155.106 Received: from peter.osted.lan (localhost.osted.lan [127.0.0.1]) by peter.osted.lan (8.13.6/8.13.6) with ESMTP id k7FHnebN018430; Tue, 15 Aug 2006 19:49:40 +0200 (CEST) (envelope-from pho@peter.osted.lan) Received: (from pho@localhost) by peter.osted.lan (8.13.6/8.13.6/Submit) id k7FHnexv018429; Tue, 15 Aug 2006 19:49:40 +0200 (CEST) (envelope-from pho) Date: Tue, 15 Aug 2006 19:49:40 +0200 From: Peter Holm To: Robert Watson Message-ID: <20060815174940.GA18388@peter.osted.lan> References: <20060815154836.GA10128@peter.osted.lan> <20060815165955.J45647@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060815165955.J45647@fledge.watson.org> User-Agent: Mutt/1.4.2.1i Cc: current@FreeBSD.org Subject: Re: panic: mutex nfsd_mtx not owned at nfs_srvsock.c:148 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: Tue, 15 Aug 2006 17:49:59 -0000 On Tue, Aug 15, 2006 at 05:01:20PM +0100, Robert Watson wrote: > > On Tue, 15 Aug 2006, Peter Holm wrote: > > >While stress testing GENERIC HEAD from Aug 12 12:55 UTC I got this > >panic: > > > >panic: mutex nfsd_mtx not owned at > >../../../nfsserver/nfs_srvsock.c:148 > >cpuid = 2 > >KDB: enter: panic > >[thread pid 761 tid 100096 ] > >Stopped at kdb_enter+0x2b: nop > >db> where > >Tracing pid 761 tid 100096 td 0xc4041a20 > >kdb_enter(c091cda8) at kdb_enter+0x2b > >panic(c091c0b7,c09210c9,c093241d,94,0,...) at panic+0x14b > >_mtx_assert(c0a64ec0,1,c093241d,94,c07ec53c,...) at _mtx_assert+0x66 > >nfs_rephead(0,c52a0600,48,e662e964,e662e968,...) at nfs_rephead+0x25 > >nfsrv_symlink(c52a0600,c4071e00,c4041a20,e662ec40) at > >nfsrv_symlink+0x3b7 > >nfssvc_nfsd(c4041a20) at nfssvc_nfsd+0x409 > >nfssvc(c4041a20,e662ed04) at nfssvc+0x18c > >syscall(3b,3b,3b,1,0,...) at syscall+0x256 > > > >More details @ http://people.freebsd.org/~pho/stress/log/cons204.html > > Could you use gdb to generate frame debugging information for the frame > above nfs_rephead() (nfsrv_symlink()) also, please? I'm a bit puzzled as > to how things got into this state, as under normal circumstances, > nfsm_reply() is the source of the nfs_rephead() call, and the NFS mutex is > acquired the line before the call to nfsm_reply(). > cons204.html has been updated with info from frame 12. - Peter > Thanks, > > Robert N M Watson > Computer Laboratory > University of Cambridge