From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9382,ddfd8abfcc735b46 X-Google-Attributes: gidf9382,public X-Google-Thread: 111c93,ddfd8abfcc735b46 X-Google-Attributes: gid111c93,public From: envbvs@epb1.lbl.gov (Brian V. Smith) Subject: Re: What causes a Floating Poing Exception error? Date: 2000/02/02 Message-ID: <879rqq$7g3@overload.lbl.gov>#1/1 X-Deja-AN: 580886590 References: <876gcd$96v$1@nnrp1.deja.com> Organization: Lawrence Berkeley National Laboratory Newsgroups: comp.os.linux.alpha,comp.os.linux In article , "Brendan Murray" writes: |> |> "Dr. Unk" 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.