From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 20 22:03:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B79916A404 for ; Wed, 20 Feb 2008 22:03:15 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id D3CAA13C4D1 for ; Wed, 20 Feb 2008 22:03:14 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (unknown [202.108.54.204]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTP id 03BE228486; Thu, 21 Feb 2008 06:03:14 +0800 (CST) Received: from localhost (unknown [202.108.54.204]) by tarsier.geekcn.org (Postfix) with ESMTP id BBD35EC433A; Thu, 21 Feb 2008 06:03:13 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([202.108.54.204]) by localhost (mail.geekcn.org [202.108.54.204]) (amavisd-new, port 10024) with ESMTP id HwF58Gw29E1W; Thu, 21 Feb 2008 06:03:08 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 72EDFEB0A2E; Thu, 21 Feb 2008 06:03:06 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=nWVetk+ktLaEBM7SzXyf86cZk+7BZHhza7PUAd4rmr7pDdeluMXBD6NFBuiXXQQ8H PFjiqCtPUBPveTzK+RDRQ== Message-ID: <47BCA398.6000201@delphij.net> Date: Wed, 20 Feb 2008 14:03:04 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20080122) MIME-Version: 1.0 To: Carey Jones References: <35B9ADBA-9AA3-4C61-98D7-3AE22B77CD53@bluetonic.org> In-Reply-To: <35B9ADBA-9AA3-4C61-98D7-3AE22B77CD53@bluetonic.org> X-Enigmail-Version: 0.95.5 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Help debugging kernel dump? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2008 22:03:15 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carey Jones wrote: > I have been getting occasional reboots on my FreeBSD 6-STABLE machine. > I haven't figured out a pattern on it yet, but the most recent crash was > during some pretty heavy NFS usage, and I see nfsd in the dump, so > perhaps that has something to do with it. Could anyone assist in > deciphering the cause of this? This is the first time it's crashed on > me once I enabled debugging, so I can't say for sure whether or not this > is common to all of them. Just a glance at the code, will this work? Index: nfs_srvsock.c =================================================================== RCS file: /home/ncvs/src/sys/nfsserver/nfs_srvsock.c,v retrieving revision 1.94.2.3 diff -p -u -r1.94.2.3 nfs_srvsock.c - --- nfs_srvsock.c 2 Sep 2006 23:58:20 -0000 1.94.2.3 +++ nfs_srvsock.c 20 Feb 2008 22:02:23 -0000 @@ -721,6 +721,7 @@ nfsrv_dorec(struct nfssvc_sock *slp, str if (nd->nd_cr != NULL) crfree(nd->nd_cr); free((caddr_t)nd, M_NFSRVDESC); + *ndp = NULL; return (error); } *ndp = nd; - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHvKOYi+vbBBjt66ARAnIxAJ9MyIqcMspJLd9bI+9ikEb1WH4KvgCfSF2u OaIOdWK+kjGcm/usa/xGzhg= =3e+s -----END PGP SIGNATURE-----