llvmlite icon indicating copy to clipboard operation
llvmlite copied to clipboard

error sigsegv

Open 0xra0 opened this issue 1 month ago • 4 comments

llvmlite 0.45.1 numba 0.62.1 llvm 20.1.8 python 3.10.19 whisperx 3.1.1 when run whisperx [2] 158242 segmentation fault (core dumped)

ulimit -c unlimited
gdb -batch -ex "bt" /home/home/anaconda3/envs/sonitr/bin/python core.158242 > backtrace.txt
Core was generated by `/home/home/anaconda3/envs/sonitr/bin/whisperx /home/home/anaconda3/envs/sonitr/bin/whisperx'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000000000 in ?? ()
[Current thread is 1 (Thread 0x7f3903058440 (LWP 158242))]
#0 0x0000000000000000 in ?? ()
https://github.com/m-bain/whisperX/issues/1 0x00007f39030f2d56 in __pthread_once_slow (once_control=0x7f384674d028 , init_routine=0x7f38ebce81a4 std::__once_proxy()) at pthread_once.c:116
https://github.com/m-bain/whisperX/issues/2 0x00007f39030f2dc9 in ___pthread_once (once_control=, init_routine=) at pthread_once.c:143
https://github.com/m-bain/whisperX/issues/3 0x00007f3842a00fea in llvm::initializeX86LowerAMXIntrinsicsLegacyPassPass(llvm::PassRegistry&) () from /home/home/anaconda3/envs/sonitr/lib/python3.10/site-packages/llvmlite/binding/libllvmlite.so
https://github.com/m-bain/whisperX/pull/4 0x00007f38429ab852 in LLVMInitializeX86Target () from /home/home/anaconda3/envs/sonitr/lib/python3.10/site-packages/llvmlite/binding/libllvmlite.so
https://github.com/m-bain/whisperX/issues/5 0x00007f384236293c in LLVMInitializeNativeTarget () from /home/home/anaconda3/envs/sonitr/lib/python3.10/site-packages/llvmlite/binding/libllvmlite.so
https://github.com/m-bain/whisperX/pull/6 0x00007f38423629a9 in LLVMPY_InitializeNativeTarget () from /home/home/anaconda3/envs/sonitr/lib/python3.10/site-packages/llvmlite/binding/libllvmlite.so
cat /proc/cpuinfo | grep amx empty
python3
llvm.initialize()
Traceback (most recent call last):
File "", line 1, in
File "/home/home/anaconda3/envs/sonitr/lib/python3.10/site-packages/llvmlite/binding/initfini.py", line 17, in initialize
raise RuntimeError(
RuntimeError: llvmlite.binding.initialize() is deprecated and will be removed. LLVM initialization is now handled automatically. Please remove calls to this function from your code and check for other behavioral changes that may have occurred due to LLVM updates.

0xra0 avatar Dec 04 '25 10:12 0xra0

Problem in Torch

0xra0 avatar Dec 04 '25 12:12 0xra0

Sounds like an issue with software that has not been upgraded.

https://llvmlite.readthedocs.io/en/latest/user-guide/llvm20.html

Initialization of LLVM core is now automatic. Calling [llvmlite.binding.initialize()](https://llvmlite.readthedocs.io/en/latest/user-guide/binding/initialization-finalization.html#llvmlite.binding.initialize) will now raise a RuntimeError with a message indicating that initialization is no longer required. See the API documentation for details.

esc avatar Dec 04 '25 14:12 esc

try llvmlite 0.44 instead and see if it happens there too?

esc avatar Dec 04 '25 14:12 esc

try llvmlite 0.44 instead and see if it happens there too?

llvmlite.binding.initialize() so there is no more of this message but still the problem turns out to be in the PyTorch build

0xra0 avatar Dec 04 '25 14:12 0xra0