From owner-freebsd-alpha Wed Nov 28 15:19:38 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by hub.freebsd.org (Postfix) with ESMTP id BF85037B419 for ; Wed, 28 Nov 2001 15:19:31 -0800 (PST) Received: (qmail 7547 invoked from network); 28 Nov 2001 23:19:30 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Nov 2001 23:19:30 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15365.27710.920163.142231@grasshopper.cs.duke.edu> Date: Wed, 28 Nov 2001 15:19:28 -0800 (PST) From: John Baldwin To: Andrew Gallatin Subject: Re: RE: Cc: FreeBSD Alpha , Cc: FreeBSD Alpha , Paul Herman 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 On 28-Nov-01 Andrew Gallatin wrote: > > 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. Ok, I'm an idiot then. I'll retreat. :) > > > (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. Humm. > 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.. Peter's untangled them some in -current. Ugh, t1 vs. tl is a pain. What is the value of dpos in these crashes? > Drew -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message