llvmlite
llvmlite copied to clipboard
Python 3.12 pre-check
- [ ] https://github.com/python/cpython/issues/109372 Object cache is SIGILL'ing on OSX x86-on-M1.
-
test_object_cache_getbufferandtest_object_cache_notifyprints:
Fatal Python error: Illegal instruction
Current thread 0x0000000205656280 (most recent call first):
File "/path/to/llvmlite/llvmlite/binding/ffi.py", line 190 in __call__
File "/path/to/llvmlite/llvmlite/binding/executionengine.py", line 92 in finalize_object
File "/path/to/llvmlite/llvmlite/tests/test_binding.py", line 989 in get_sum
lldb backtrace:
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x12)
* frame #0: 0x000000010b60aad0 _ctypes.cpython-312-darwin.so`_CallPythonObject + 64
frame #1: 0x000000010b60aa4e _ctypes.cpython-312-darwin.so`closure_fcn + 46
frame #2: 0x00000001096254c4 libffi.8.dylib`ffi_closure_unix64_inner + 564
frame #3: 0x0000000109625b0c libffi.8.dylib`ffi_closure_unix64 + 72
frame #4: 0x000000012db93d94 libllvmlite.dylib`LLVMPYObjectCache::notifyObjectCompiled(this=0x00006000002209a0, M=0x0000000109599580, MBR=MemoryBufferRef @ 0x00000003017a3130) at executionengine.cpp:195:13
frame #5: 0x000000012ee84a5f libllvmlite.dylib`llvm::MCJIT::emitObject(llvm::Module*) + 463
frame #6: 0x000000012ee84c60 libllvmlite.dylib`llvm::MCJIT::generateCodeForModule(llvm::Module*) + 208
frame #7: 0x000000012ee85a7e libllvmlite.dylib`llvm::MCJIT::finalizeObject() + 446
frame #8: 0x000000012db933ae libllvmlite.dylib`::LLVMPY_FinalizeObject(EE=0x000000010a094a00) at executionengine.cpp:63:23
or
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
* frame #0: 0x000000010ad3cfc9
frame #1: 0x000000012ee84a5f libllvmlite.dylib`llvm::MCJIT::emitObject(llvm::Module*) + 463
frame #2: 0x000000012ee84c60 libllvmlite.dylib`llvm::MCJIT::generateCodeForModule(llvm::Module*) + 208
frame #3: 0x000000012ee85a7e libllvmlite.dylib`llvm::MCJIT::finalizeObject() + 446
frame #4: 0x000000012db933ae libllvmlite.dylib`::LLVMPY_FinalizeObject(EE=0x0000000109881a00) at executionengine.cpp:63:23
@sklam can this now be closed?