Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Subject: Re: What causes a Floating Poing Exception error?
Date: 2000/02/01	[thread overview]
Message-ID: <3896D3A2.458D878F@ife.ee.ethz.ch> (raw)
In-Reply-To: 876gcd$96v$1@nnrp1.deja.com

[there does not seem to be a group comp.os.linux. development.system
also removed]

Dr. Unk wrote:
> 
> I have a few questions that I need to know the answers too, or at least
> some insight.  The questions are about Floating Point Exceptions
> errors.  The reason that I ask these questions is that I compile the
> packages that I download, and if not all, most of them are coded,
> compiled and tested on PC's, not Alphas.  Are FPE's the similar to
> Segmentation fault's?

They are similar in that they cause the program to dump core and abort

> 1.  What causes FPE errors?

Using FP math that is not implemented on the Alpha. Like working with
denormalized numbers or Inf or NaNs.

> 2.  What can be done to fix or prevent them, coding-wise?

Don't call that FP math. It should rarely be a problem to avoid them.

> 3.  Same 2 questions but for Segmentation fault's.

Segfaults occur when you try to access some memory you're not allowed to
access. Often caused by a bad pointer, e.g. a null pointer. load the
core dump into the debugger and look at the pointer. It's often easy to
find the culprit.

> 4.  Does it have anything to do with architecture dependent code or
> system libraries?

The segfaults can be caused by bad code that is architecture dependend
because it relies on pointers fitting into integers. This results in
compiler warnings and possible core dumps.

- Alex



  parent reply	other threads:[~2000-02-01  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 ` Tony Hammitt
2000-02-01  5:00 ` Alex Rhomberg [this message]
2000-02-01  5:00 ` Robert Harley
2000-02-02  5:00 ` Brendan Murray
2000-02-02  5:00   ` Brian V. Smith
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