Source: llm-toolchain-14
Version: 1:14.0.6-12

Hello,

python3-numba and packages using numba like python3-sparse are
segfaulting on ARM64, upstream maintainers are suggesting we backport
this small change.

https://github.com/llvm/llvm-project/commit/2e1b838a889f9793d4bcd5dbfe10db9796b77143

diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 3c7f4ec47eb84c..282c357f2de2c4 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -2406,6 +2406,7 @@ Error RuntimeDyldELF::finalizeLoad(const
ObjectFile &Obj,
     }
   }
 
+  GOTOffsetMap.clear();
   GOTSectionID = 0;
   CurrentGOTIndex = 0;
 

Here's the sparse developer recommending it;

https://github.com/pydata/sparse/issues/628#issuecomment-2076366957

And here's the numba comment.

https://github.com/numba/numba/issues/9109#issuecomment-2042747383

I tried to figure out how to build llvm, but wasn't sure how to get the
right set of patches for the branch I had checked out.

Thanks,
Diane

Reply via email to