You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built and installed HElib following the instructions (package build). When I tried to run one of the example projects (BGV_binary_arithmetic) it segfaults before doing the two number multiplication. I don't have a solid understanding of HElib but I wanted to use it for a simple project I'm working on that involves error injection on FHE. I'm using macos Sonoma v14.0. This is the output of the (BGV_binary_arithmetic) program that I attached to lldb debugger:
Process 85523 launched: '/Users/ma2323/fhe/HElib/examples/build/bin/BGV_binary_arithmetic' (arm64)
*********************************************************
* Basic Binary Arithmetic Example *
* =============================== *
* *
* This is a sample program for education purposes only. *
* It attempts to demonstrate the use of the API for the *
* binary arithmetic operations that can be performed. *
* *
*********************************************************
Initialising context object...
RecryptData::setAE(): e=12, e'=4
m = 4095, p = 2, phi(m) = 1728
ord(p) = 12
normBnd = 2.25463
polyNormBnd = 22.5545
factors = [3 5 7 13]
generator 2341 has order (== Z_m^*) of 6
generator 3277 has order (== Z_m^*) of 4
generator 911 has order (== Z_m^*) of 6
r = 1
nslots = 144
hwt = 120
ctxtPrimes = [6,7,8,9,10,11,12,13,14]
specialPrimes = [15,16,17,18,19]
number of bits = 798
security level = 24.2499
Security: 24.2499
Creating secret key...
Number of slots: 144
Pre-encryption data:
a = 3871
b = 65210
c = 35980
before multiplication, capacity=487
Process 85523 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x00000001000b351c BGV_binary_arithmetic`helib::SecKey::Decrypt(NTL::ZZX&, helib::Ctxt const&, NTL::ZZX&) const [inlined] helib::PubKey::getContext(this=0x0000000000000000) const at keys.cpp:273:52 [opt]
270
271 bool PubKey::operator!=(const PubKey& other) const { return !(*this == other); }
272
-> 273 const Context& PubKey::getContext() const { return context; }
274 long PubKey::getPtxtSpace() const { return pubEncrKey.ptxtSpace; }
275 bool PubKey::keyExists(long keyID) const
276 {
Target 0: (BGV_binary_arithmetic) stopped.
warning: BGV_binary_arithmetic was compiled with optimization - stepping may behave oddly; variables may not be available.
And if it helps this is the exception's backtrace:
I built and installed HElib following the instructions (package build). When I tried to run one of the example projects (BGV_binary_arithmetic) it segfaults before doing the two number multiplication. I don't have a solid understanding of HElib but I wanted to use it for a simple project I'm working on that involves error injection on FHE. I'm using macos Sonoma v14.0. This is the output of the (BGV_binary_arithmetic) program that I attached to lldb debugger:
Process 85523 launched: '/Users/ma2323/fhe/HElib/examples/build/bin/BGV_binary_arithmetic' (arm64)
And if it helps this is the exception's backtrace:
The text was updated successfully, but these errors were encountered: