Mail Archives: djgpp/1999/01/18/12:10:19
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 -