From owner-freebsd-alpha Wed Nov 28 14:59:58 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id BE4C037B419; Wed, 28 Nov 2001 14:59:47 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id RAA23083; Wed, 28 Nov 2001 17:59:37 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id fASMxBr83952; Wed, 28 Nov 2001 17:59:11 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15365.27710.920163.142231@grasshopper.cs.duke.edu> Date: Wed, 28 Nov 2001 17:59:10 -0500 (EST) To: John Baldwin Cc: Paul Herman , FreeBSD Alpha Subject: Re: RE: In-Reply-To: References: <200111282233.fASMXUA01849@tick.sc.omation.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John Baldwin writes: > > > The *(tl + 1) is the problem I think. What is the type of 'tl'? > > register u_int32_t *tl; > > Ah yes, definitely the problem here. NFS is evil. It's basically performing > an unaligned access of a 32-bit integer in the middle of a 64-bit word. I'm > not sure what the best way of fixing this is. The bad news is that NFS is > probably full of such bugs. :( Huh? I think the problem is that a u_int32_t is being accessed at a 2 byte boundary. > > (kgdb) print tl > > $1 = (u_int32_t *) 0xfffffe0000b51c22 This is the problem -- 0xfffffe0000b51c22 is on a 2 byte boundary, not a 4 byte boundary like a u_int32_t should be. The question is how did it get there, since the declaration is correct. The nfsm macros are so twisted & hairy, I get dizzy whenever I look at them. Something to do with dpos in nfsm_dissect, but.. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message