Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Hadsell <hadsell@blueskystudios.com>
To: axp-list@redhat.com
Subject: Re: How do I find/fix unaligned accesses?
Date: Mon, 07 Dec 1998 19:44:29 -0500	[thread overview]
Message-ID: <366C766D.3D0D@blueskystudios.com> (raw)
In-Reply-To: yv4r9ubzfcy.fsf@tuxedo.applix.com

Eric Ding wrote:
> 
> thanks for the tips... ok, so now I'm looking at
> 
>         unaligned trap at 0000015556b9d360: 0000000120d9740c 27 1
> 
> and the variable being accessed is a double, which means it must be aligned
> on 4 byte boundaries, right?  But it's correct, then, isn't it?  That is,
> 0x0000000120d9740c is divisible by 4, so why is there still an error?

Doubles are 8 bytes.

I treat unaligned traps just like any memory error.  I usually find
access through a pointer that was never initialized, has been clobbered
by some other errant code, or has been overwritten because it was on the
heap but the structure it belonged to has been freed.  There are other
ways to get bad pointers, but I rarely find that the compiler generated
a bad pointer.

-- 
Dick Hadsell			914-381-8400 x5446 Fax: 914-381-9790
Reply-to:			hadsell@blueskystudios.com
Blue Sky | VIFX                 http://www.bluesky-vifx.com
1 South Road, Harrison, NY 10528


  reply	other threads:[~1998-12-08  0:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-04 18:25 How do I find/fix unaligned accesses? Eric Ding
1998-12-04 21:16 ` Oscar Levi
1998-12-04 21:17 ` nbecker
1998-12-04 21:18 ` Harvey J. Stein
1998-12-04 21:35 ` Rich Payne
1998-12-05  2:29   ` Tom Linden
1998-12-05 16:37     ` Oscar Levi
1998-12-07 23:45     ` Eric Ding
1998-12-08  0:44       ` Richard Hadsell [this message]
1998-12-08  1:07       ` Uncle George
1998-12-08  3:58         ` Eric Ding
1998-12-08  7:16           ` Wes Bauske
1998-12-08 11:14           ` Uncle George
1998-12-08 13:04             ` nbecker
  -- strict thread matches above, loose matches on Subject: below --
1998-12-08 21:13 Christian Groessler
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox