Re: signal(SIGFPE,SIG_IGN) causes endless loop (fwd)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 23 Apr 1996 22:27:33 +0100 (BST)


> > > It dumps core on Solaris 2.4 with the message:
> > > Floating exception (core dumped).
> Hmm. It gets a Floating exception on Solaris 2.5 with gcc and cc, if
> compiled without optimization, but runs just fine if compiled with -O2 or
> -xO2, respectively. (Just in case someone collects these results:

That sounds like a bug as someone has optimised out the expression and thus
not taken the expected trap.

Alan