-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Summary
I wanted to reproduce some experiments (that worked previously on a VM) on a freshly installed dedicated server. However, I run into an error when compiling the model. To check whether the problem was coming from my code or from ConcreteML, I run the basic logistic regression example from the documentation (https://docs.zama.ai/concrete-ml/built-in-models/linear#example), and I run into the same issue:
#0 0x00007f13df952b51 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/../../concrete_python.libs/libLLVM-17git-0add3cf5.so+0x952b51)
#1 0x00007f13df950564 SignalHandler(int) Signals.cpp:0:0
#2 0x00007f14ca70e050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#3 0x00007f13debf7a0d (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x5f7a0d)
#4 0x00007f13debf7de4 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x5f7de4)
#5 0x00007f13deb89400 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x589400)
#6 0x00007f13deb84f00 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x584f00)
#7 0x00007f13deae54ae (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x4e54ae)
#8 0x00007f13de783a25 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x183a25)
#9 0x00007f13de785593 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x185593)
#10 0x00007f13de77655e (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x17655e)
#11 0x00007f13de7772a3 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x1772a3)
#12 0x00007f13de77b317 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x17b317)
#13 0x00007f13de77b7d4 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x17b7d4)
#14 0x00007f13de73e8ae (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0x13e8ae)
#15 0x00007f13de6dfa62 (/home/debian/privacy-carbon-experiments/experiment/lib/python3.11/site-packages/mlir/_mlir_libs/_concretelang.cpython-311-x86_64-linux-gnu.so+0xdfa62)
#16 0x0000000000547b96 (/usr/bin/python3.11+0x547b96)
#17 0x0000000000517fc3 _PyObject_MakeTpCall (/usr/bin/python3.11+0x517fc3)
#18 0x000000000052b9e0 _PyEval_EvalFrameDefault (/usr/bin/python3.11+0x52b9e0)
#19 0x000000000051f127 _PyObject_FastCallDictTstate (/usr/bin/python3.11+0x51f127)
#20 0x0000000000565b02 (/usr/bin/python3.11+0x565b02)
#21 0x0000000000517f65 _PyObject_MakeTpCall (/usr/bin/python3.11+0x517f65)
#22 0x000000000052b9e0 _PyEval_EvalFrameDefault (/usr/bin/python3.11+0x52b9e0)
#23 0x00000000005236bb PyEval_EvalCode (/usr/bin/python3.11+0x5236bb)
#24 0x0000000000647d97 (/usr/bin/python3.11+0x647d97)
#25 0x00000000006456ef (/usr/bin/python3.11+0x6456ef)
#26 0x0000000000651770 (/usr/bin/python3.11+0x651770)
#27 0x00000000006514bb _PyRun_SimpleFileObject (/usr/bin/python3.11+0x6514bb)
#28 0x00000000006512e4 _PyRun_AnyFileObject (/usr/bin/python3.11+0x6512e4)
#29 0x000000000065007f Py_RunMain (/usr/bin/python3.11+0x65007f)
#30 0x0000000000627d37 Py_BytesMain (/usr/bin/python3.11+0x627d37)
#31 0x00007f14ca6f924a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
#32 0x00007f14ca6f9305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
#33 0x0000000000627bd1 _start (/usr/bin/python3.11+0x627bd1)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Illegal instruction
I checked related GitHub issues #485 and #699 , but the discussions there did not help.
For example, I have checked the flags on my CPU, and I have the AES flag:
`lscpu` output
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
CPU family: 6
Model: 62
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
Stepping: 4
CPU(s) scaling MHz: 31%
CPU max MHz: 3900.0000
CPU min MHz: 1200.0000
BogoMIPS: 7400.37
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts r
ep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes
xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
Virtualization features:
Virtualization: VT-x
Caches (sum of all):
L1d: 128 KiB (4 instances)
L1i: 128 KiB (4 instances)
L2: 1 MiB (4 instances)
L3: 10 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: KVM: Mitigation: VMX disabled
L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Mds: Mitigation; Clear CPU buffers; SMT vulnerable
Meltdown: Mitigation; PTI
Mmio stale data: Unknown: No mitigations
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP conditional; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Srbds: Not affected
Tsx async abort: Not affected
Description
- versions affected:
concrete-ml==1.9.0/concrete-python==2.10.0 - python version: 3.11.2
- config (optional: HW, OS): Debian 12 (Bookworm) / Intel Xeon CPU E5-1620 v2 @ 3.70GHz
- workaround (optional): Have not found anything yet
Step by step procedure someone should follow to trigger the bug:
Execute the basic logistic regression example from the documentation (https://docs.zama.ai/concrete-ml/built-in-models/linear#example)