the following system runs for cleartext, openfhe, interpreted_openfhe, but yosys_interpreted_openfhe causes a segfault
when run with a debugger gives the following backtrace
Thread 1 "bug_yosys_inter" received signal SIGSEGV, Segmentation fault.
gnu_cxx::atomic_add_dispatch (val=1, mem=0xea)
at /usr/include/c++/9/ext/atomicity.h:96
96 atomic_add(mem, __val);
(gdb) bt
the following system runs for cleartext, openfhe, interpreted_openfhe, but yosys_interpreted_openfhe causes a segfault
when run with a debugger gives the following backtrace Thread 1 "bug_yosys_inter" received signal SIGSEGV, Segmentation fault. gnu_cxx::atomic_add_dispatch (val=1, mem=0xea) at /usr/include/c++/9/ext/atomicity.h:96 96 atomic_add(mem, __val); (gdb) bt
0 __gnu_cxx::atomic_add_dispatch (val=1, __mem=0xea)
1 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_add_ref_copy (
2 std::shared_count<(__gnu_cxx::_Lock_policy)2>::operator= (r=...,
3 std::__shared_ptr<lbcrypto::LWECiphertextImpl, (__gnu_cxx::_Lock_policy)2>::operator= (this=0x555555bb1018)
4 std::shared_ptr::operator= (
5 fully_homomorphic_encryption::transpiler::YosysOpenFheRunner::YosysOpenFheRunnerState::Run (this=0x555555bcc850, result=..., in_args=...,
6 0x00005555555c82d4 in fully_homomorphic_encryption::transpiler::YosysOpenFheRunner::Run (this=, result=...,
7 0x000055555558d3bc in select_struct_UNSAFE(absl::Span<std::shared_ptr const>, absl::Span<std::shared_ptr const>, absl::Span<std::shared_ptr const>, absl::Span<std::shared_ptr >, lbcrypto::BinFHEContext) () at /usr/include/c++/9/bits/stl_tree.h:211
8 0x0000555555589de8 in select_struct(OpenFheArrayRef<BugStruct, 2u>, OpenFheRef, OpenFheRef, OpenFheRef, lbcrypto::BinFHEContext) () at /usr/include/c++/9/bits/stl_tree.h:211
9 0x0000555555582e0b in main () at /usr/include/c++/9/ext/new_allocator.h:89
(gdb) bug.zip