Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: should divide-by-zero generate a SIGFPE?



On Sat, Dec 25, 2010 at 07:56:34AM +0000, Michael van Elst wrote:
> 
> That's because the signal handler will just return to the offending
> instruction and retry it, causing another exception that triggers
> the assertion. You are supposed to exit from the sigfpe handler
> with longjmp() or some equivalent.

Or change the values so that the retried instuction doesn't fault ...

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index