Re: catching floating point exception on OS X Intel
Re: catching floating point exception on OS X Intel
- Subject: Re: catching floating point exception on OS X Intel
- From: "Alexey V. Medvedev" <email@hidden>
- Date: Wed, 9 May 2007 11:00:49 +0400
- Organization: GDT Software Group
Hi,
Kristoffer Eriksen wrote:
> It correctly generates the nan, but doesn't crash. For kicks, if I
> raise a SIGFPE manually, it crashes like it's supposed to, meaning
> that the default behavior for a SIGFPE is correct.
AFAIR, matherr is responsible for SIGFPE generation
in sqrt() and other math library functions, try
to dig for it.
Try to replace sqrt() with simple division-by-zero
instruction -- it'll be easier to make it work I think.
Hope it helps
--
Regargds,
Alexey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden