From: envbvs@epb1.lbl.gov (Brian V. Smith)
Subject: Re: What causes a Floating Poing Exception error?
Date: 2000/02/02 [thread overview]
Message-ID: <879rqq$7g3@overload.lbl.gov> (raw)
In-Reply-To: NxMl4.56597$zU5.767914@wbnws01.ne.mediaone.net
In article <NxMl4.56597$zU5.767914@wbnws01.ne.mediaone.net>, "Brendan Murray" <bpmurray@nospam.mediaone.net> writes:
|>
|> "Dr. Unk" <dr_unk@hotmail.com> wrote in message
|> news:876gcd$96v$1@nnrp1.deja.com...
|> > 4. Does it have anything to do with architecture dependent code or
|> > system libraries?
|>
|> It can. If you're trying to access a 16-bit datum via a pointer that points
|> to an odd byte address on e.g. a SPARC, you'll get an alignment interrupt
|> which can, depending on the compiler switches, result in a segmentation
|> fault. Similarly, accessing a 32-bit entity on a non-four-bytye-aligned
|> address causes the same thing.
Unaligned accesses usually cause bus errors (SIGBUS), not segfaults.
--
--------------------------------------------------------
Brian V. Smith (bvsmith@lbl.gov) http://www-epb.lbl.gov/BVSmith
Lawrence Berkeley National Laboratory
I don't speak for LBL; they don't pay me enough for that.
Check out the xfig site at http://www-epb.lbl.gov/xfig
To the optimist, the glass is half full. To the pessimist, the
glass is half empty. To the engineer, the glass is twice as big
as it needs to be.
prev parent reply other threads:[~2000-02-02 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-01 5:00 What causes a Floating Poing Exception error? Dr. Unk
2000-02-01 5:00 ` Robert Harley
2000-02-01 5:00 ` Tony Hammitt
2000-02-01 5:00 ` Alex Rhomberg
2000-02-02 5:00 ` Brendan Murray
2000-02-02 5:00 ` Brian V. Smith [this message]
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