Date: Mon, 18 Jan 1999 19:08:43 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Nitay cc: djgpp AT delorie DOT com Subject: Re: Question: about FPE? In-Reply-To: <77vjpm$2tc$1@news2.inter.net.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.