Bugzilla – Bug 1212264
Segmentation fault in some python packages using numba
Last modified: 2023-06-21 09:03:20 UTC
Lately, we had lots of segmentation faults in some python packages in openSUSE Tumbleweed aarch64. It seems they are all using numba. Few occurrences: python-quimb python-awkward Error log: [ 351s] tests/test_accel.py::TestDot::test_par_dot_csr_matvec Fatal Python error: /var/tmp/rpm-tmp.mOlv8y: line 152: 2030 Segmentation fault PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}/home/abuild/rpmbuild/BUILDROOT/python-quimb-1.4.2-4.1.aarch64/usr/lib/python3.9/site-packages PYTHONDONTWRITEBYTECODE=1 pytest-3.9 --ignore=_build.python39 --ignore=_build.python311 --ignore=_build.python310 -v -k "not (test_subtract_update and float32)" [ 351s] error: Bad exit status from /var/tmp/rpm-tmp.mOlv8y (%check) Latest status: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:ARM/python-quimb/standard/aarch64
It seems to be caused by an llvm issue: https://github.com/llvm/llvm-project/issues/61402 https://reviews.llvm.org/rG2e1b838a889f9793d4bcd5dbfe10db9796b77143 The commit is only in the main branch and not part of any release yet: https://github.com/llvm/llvm-project/commit/2e1b838a889f9793d4bcd5dbfe10db9796b77143 So, this would need to be backported to llvm14 (version currently used by python-llvmlite) and later (currently 15 and 16).
Adding the maintainer of LLVM.
(In reply to Guillaume GARDET from comment #1) > It seems to be caused by an llvm issue: > https://github.com/llvm/llvm-project/issues/61402 > https://reviews.llvm.org/rG2e1b838a889f9793d4bcd5dbfe10db9796b77143 > > The commit is only in the main branch and not part of any release yet: > https://github.com/llvm/llvm-project/commit/ > 2e1b838a889f9793d4bcd5dbfe10db9796b77143 > > So, this would need to be backported to llvm14 (version currently used by > python-llvmlite) and later (currently 15 and 16). I confirm this patch in llvm14 fixes python-numba:test-py3* and python-quimb (and likely few others) SR for llvm14: https://build.opensuse.org/request/show/1093062
(In reply to Guillaume GARDET from comment #1) > So, this would need to be backported to llvm14 (version currently used by > python-llvmlite) and later (currently 15 and 16). Perhaps llvmlite will switch to ORC JIT before they switch to LLVM 15/16. Maybe we can get an upstream backport to LLVM 16, but I've heard that today's release is going to be the last one for LLVM 16. (In reply to Guillaume GARDET from comment #3) > SR for llvm14: https://build.opensuse.org/request/show/1093062 Forwarded to Factory: https://build.opensuse.org/request/show/1093168. Thanks!
This is an autogenerated message for OBS integration: This bug (1212264) was mentioned in https://build.opensuse.org/request/show/1093400 Factory / llvm14
Fix merged in Factory project and rebuilds triggered.