vernamlab / cuFHE

CUDA-accelerated Fully Homomorphic Encryption Library
MIT License
213 stars 60 forks source link

SIGSEGV for test_api_cpu #7

Closed l4l closed 6 years ago

l4l commented 6 years ago

Building with -g flag (segfault is also w/o it, but also w/o symbols) causes sigsegv with the following output:

------ Key Generation ------
------ Test Encryption/Decryption ------
Number of tests:        1024
PASS
------ Test NAND Gate ------
Number of tests:        4
PASS

Program received signal SIGSEGV, Segmentation fault.

Debugger points out to that line: https://github.com/vernamlab/cuFHE/blob/ec47abb56bc263e9b5ba1efae216b6e8bd90a753/cufhe/lib/cufhe.cc#L288

Where lwe_sample_device_ is nullptr

p.s. thanks for your amazing work!

gizemscetin commented 6 years ago

Thanks for pointing that out! It's fixed now.