delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/18/12:10:19

Date: Mon, 18 Jan 1999 19:08:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Nitay <era AT arava DOT co DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: Question: about FPE?
In-Reply-To: <77vjpm$2tc$1@news2.inter.net.il>
Message-ID: <Pine.SUN.3.91.990118190519.5301C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 18 Jan 1999, Nitay wrote:

> "Porgram has recived signal: SIGFPE, arithmetic expcetion!".
> 
> I read about FPE's in the FAQ and the documants that in the info files, but
> i still can't
> understand how to work with signals and FP emulator (identify and manipulate
> it).

When your program crashes due to SIGFPE, it prints what is called ``the 
crash traceback''.  These are several lines of hex numbers that specify 
where the program crashed.  If you compile your program with the -g 
switch, you could then run the `symify' utility on the crash traceback, 
and get the source file and line number where the program crashed.

After that, look at the line where it crashed and find the bug (you might 
be dividing by zero, or passing an integer value to a function that 
expects a floating-point number, or something like that).

Section 12.2 in the FAQ explains more about debugging.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019