mozilla-services / hindsight

Hindsight - light weight data processing skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Floating point exception

hanego opened this issue · comments

In the source file src/hs_checkpoint_writer.c, line 167, there is
int emps = ...
When tt << amps, the result is 0 causing the program to have an arithmetic exception.

There is a check on line 166 testing that amps is not zero https://github.com/mozilla-services/hindsight/blob/master/src/hs_checkpoint_writer.c#L166. So it should not be happening there. Do you have a test case that reproduces the FPE?

amps is not 0 in my case.
tt = 399, amps = 49873
Then the division of the 2 is 0.
Do you need other files? (My test case is based on confidential infos so I cannot send you directly the configuration or the logs)

Sorry mis-read the initial comment, thanks. I will get a PR in shortly.