Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA10665; Fri, 8 Dec 95 18:11:04 EST
Received: from pain.lcs.mit.edu by MIT.EDU with SMTP
	id AA29977; Fri, 8 Dec 95 18:09:59 EST
Received: (from daemon@localhost) by pain.lcs.mit.edu (8.6.12/8.6.9) id RAA25262; Fri, 8 Dec 1995 17:44:44 -0500
Received: from BALVENIE.PDL.CS.CMU.EDU by pain.lcs.mit.edu (8.6.12/8.6.9) with SMTP id RAA25251 for <netbsd-developers@netbsd.org>; Fri, 8 Dec 1995 17:42:32 -0500
Received: from LOCALHOST by BALVENIE.PDL.CS.CMU.EDU id aa27276;
          8 Dec 95 17:42 EST
To: Aaron Brown <abrown@eecs.harvard.edu>
Cc: Paul Kranenburg <pk@cs.few.eur.nl>, phil@steelhead.cs.wwu.edu,
        thorpej@nas.nasa.gov, netbsd-developers@NetBSD.ORG
X-Copyright: Copyright 1995, Christopher G. Demetriou.  All rights reserved.
X-Notice: Duplication and redistribution prohibited without consent of
	  the author.
Subject: Re: sparc/4m port 
In-Reply-To: Your message of "Thu, 07 Dec 1995 18:52:34 EST."
             <Pine.HPP.3.91.951207184853.14977A-100000@muscato> 
Date: Fri, 08 Dec 1995 17:41:43 -0500
Message-Id: <27605.818462503@BALVENIE.PDL.CS.CMU.EDU>
From: Chris G Demetriou <Chris_G_Demetriou@BALVENIE.PDL.CS.CMU.EDU>
Sender: owner-netbsd-developers@NetBSD.ORG
Precedence: first-class
X-Loop: netbsd-developers@NetBSD.ORG

> P.S. Has anyone ever tried to use accounting with a NFS-mounted /var? If
> I turn it on, the kernel panics since the NFS statfs code accesses curproc,
> which for some reason is null when the hardclock handler calls the accounting
> routines. I'm trying to determine if this is bug in the port or in the MI
> code; should curproc be NULL here?

Yeah, i encountered and diagnosed this probably a year ago, on the
Alpha (when i was still running mostly-diskless, and wanted to test
the accounting code).

short form: yes, it's reasonable for curproc to be NULL when hardclock
calls the accounting routines.  The bug is either in the NFS code or
in the accounting code.  (i'd unconditionally say the latter, but i
don't really know how to fix it there easily...  but then, i don't
really know how to fix it in the NFS code too easily, either....  8-)



chris
