[Lazarus] What's "External: SIGFPE"?

leledumbo leledumbo_cool at yahoo.co.id
Thu Mar 7 09:53:37 CET 2013


> Could anyone explain what's SIGFPE?

SIGFPE stands for SIGnal Floating Point Exception, that is caused by a
probably invalid operation involving floating points.

> Why there is a SetExceptionMask?

Probably to override the same thing already done by (implicitly used)
libraries, e.g. gtk2

> Why a normal empty form application will generate SIGFPE with these masks,
> and how to trace down to the cause of this error?

Because setting the mask means telling the processor to generate (or not to
generate? I forgot) SIGFPE for the given operations. e.g. exZeroDivide may
trigger SIGFPE if there's a division by zero with floating point operation.
How to trace? You already get it, the program will report the line that
causes it, you can directly go to the respective line to see what happens.
But this requires that the code lies in the program space (not in external
library) and the code is compiled with runtime error backtrace (-gl).
Otherwise, the program can only report as deep as it can find.



--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-s-External-SIGFPE-tp4029706p4029715.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.




More information about the Lazarus mailing list