Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2008 14:03:04 -0800
From:      Xin LI <delphij@delphij.net>
To:        Carey Jones <mcj@bluetonic.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Help debugging kernel dump?
Message-ID:  <47BCA398.6000201@delphij.net>
In-Reply-To: <35B9ADBA-9AA3-4C61-98D7-3AE22B77CD53@bluetonic.org>
References:  <35B9ADBA-9AA3-4C61-98D7-3AE22B77CD53@bluetonic.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <delphij@delphij.net>	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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47BCA398.6000201>