[lazarus] SIGFPE in fpc_round
Florian Klaempfl
Florian.Klaempfl at gmx.de
Sat Nov 29 09:40:03 EST 2003
Mattias Gaertner wrote:
> Hi,
>
> I spotted a bug in current fpc 1.9.1 and the Round function.
> I was not able to reproduce the error in a small context or find the bug in
> the fpc bug list. Perhaps the needed context has something to do with the
> gtk libs. So, maybe someone else knows this bug:
>
> The bug appears in gtkwinapi.inc 7773 in the line "Result:=Round(Value);":
>
> Program received signal SIGFPE, Arithmetic exception.
> 0x0813ca57 in fpc_round ()
>
> Value is 0, so rounding should be pretty easy.
> Adding a writeln(Value); in front "fixes" the bug.
>
> Any clues/hints?
Can you set a break point before the round call and post an fpu dump
(including status registers)?
More information about the Lazarus
mailing list