Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Neutrino 6.3.2 on PPC8347 Divide-by-Zero Exception does not generate SIGFPE: (3 Items)
   
Neutrino 6.3.2 on PPC8347 Divide-by-Zero Exception does not generate SIGFPE  
We have a custom SIGFPE handler working, as long as the "SIGFPE" signal is triggerred  by "raise" or "kill"; Howerever, 
when we put in the test code try to capture the "divide-by-zero" exception, we did not see the handler is triggerred 
(our test code is tricky enough to prevent compiler intervention). We do not  believe the SIGFPE signal was sent out by 
kernel when the actual "divide by zero" occurred. 

Platform Information:
CPU:PPC Release:6.3.2  FreeMem:223Mb/256Mb Processor1: 80830031 E300C1 Core 396MHz FPU.   
procnto-600-instr
 
We want to understand: 

1. Will the QNX 6.3.2 kernel (for PowerPC 8347) send out the SIGFPE signal once the divide by zero exception occurs?

2. If so, should we do some special configuration/setup beforehand to make sure the signal is sent out whenever the 
floating point exception occurs?
 
Thanks
Re: Neutrino 6.3.2 on PPC8347 Divide-by-Zero Exception does not generate SIGFPE  
Despite its name, SIGFPE is not expected upon a division-by-zero of floating point numbers -- according to IEEE 754, 
this operation will result in an 'inf' (infinity).

A SIGFPE you should only get when zero-dividing integers.

- Thomas
Re: Neutrino 6.3.2 on PPC8347 Divide-by-Zero Exception does not generate SIGFPE  
Thanks Thomas.

However, we did test both floating and integer cases. Neither of them triggered the SIGFPE.