scipr-lab / libsnark

C++ library for zkSNARKs
Other
1.81k stars 572 forks source link

Get Floating point exception (core dumped) when running the profile program #134

Open huikang opened 5 years ago

huikang commented 5 years ago

On a linux 64bit machine, to reproduce:

docker build -t libsnark .
docker run -ti libsnark /bin/bash

cd build
make profile_r1cs_ppzksnark

Then I run

root@86cb8de795ae:~/libsnark/build# ./libsnark/profile_r1cs_ppzksnark 1000 10 Fr        
Floating point exception (core dumped)=

Could anyone help on this? Thanks.

huikang commented 5 years ago

The c++ version 5.4 causes this issue. If I downgrade the version to 4.8, the problem disappears.