ccf23 / Dependability-for-Harris

DCA research project
2 stars 0 forks source link

floating point exception on pynq #16

Closed danielstumpp closed 3 years ago

danielstumpp commented 3 years ago

a floating point exception occurs when running on the pynq with the following error message:

./test.sh: line 40: 23261 Floating point exception(core dumped) ./Harris_test $img

I haven't seen it happen on my local machine or during the benchmarks. This leads me to believe we are dividing by zero or performing some other illegal operation during fault injection.

danielstumpp commented 3 years ago

I think I have a fix for this. I'm going to do a test run overnight to make sure and will push in the morning if successful

danielstumpp commented 3 years ago

For documentation sake, the bug occurred because when creating the normal distribution on the pynq, sometimes the value was so small it got rounded to zero. This was fixed using a long double type