Segfault error while multithreaded EvalMult/EvalAtIndex in BFV
Original issue was created at palisade-release#29 (closed) @skmono
While performing MatMul with EvalMult, rarely a segment fault error occurs, throwing the following error
what(): /home/sejunkim/my/palisade_test/build/ext_palisade/src/ext_palisade/src/core/lib/math/discretegaussiangenerator.cpp:161 DGG Inversion Sampling. FindInVector value not found: 0.437470
It happens rarely, averaging 6 occurrence per 10k trials.
The code to reproduce the error is https://gitlab.com/skmono/omp_palisade_tests/-/blob/master/main.cpp