Control: found -1 1:7.2+dfsg-1 Control: tag -1 - moreinfo Control: retitle -1 qemu-user-static: lli-15/arm64 causes segfault on amd64 host
On Sat, 3 Dec 2022 10:43:16 +0300 Michael Tokarev <m...@tls.msk.ru> wrote:
So, it looks like this issue has been fixed now with current qemu 7.1 (and with current clang from unstable, 13.0.1-9). Andreas, can you verify it is fixed for you please?
I can still reproduce it with the latest qemu in sid and llvm-13/llvm-14/llvm-15/llvm-16 (but not with llvm-11). # ./alignof.sh 15 + ver=15 + cat + clang-15 -o alignof.bc -x c -emit-llvm -c alignof.c --target=aarch64-unknown-linux-gnu + lli-15 -force-interpreter alignof.bc PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. Program arguments: lli-15 -force-interpreter alignof.bc Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): /lib/aarch64-linux-gnu/libLLVM-15.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x44)[0x55037e98e0] /lib/aarch64-linux-gnu/libLLVM-15.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x70)[0x55037e7934] /lib/aarch64-linux-gnu/libLLVM-15.so.1(+0xf49e90)[0x55037e9e90] [0x5502896000] [0x550d1d800c] /lib/aarch64-linux-gnu/libLLVM-15.so.1(+0x287304c)[0x550511304c] lli-15(_Z9runOrcJITPKc+0x1f14)[0x550001b9dc] lli-15(main+0x284)[0x5500017c00] /lib/aarch64-linux-gnu/libc.so.6(+0x27780)[0x55096e7780] /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98)[0x55096e7858] lli-15(_start+0x30)[0x5500014d70] qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault + RESULT=139 # ./alignof.sh 11 + ver=11 + cat + clang-11 -o alignof.bc -x c -emit-llvm -c alignof.c --target=aarch64-unknown-linux-gnu + lli-11 -force-interpreter alignof.bc + RESULT=16 It is also not reproducible on the porterbox (i.e. real hardware): anbe@amdahl:~$ ./alignof.sh 15 + ver=15 + cat + clang-15 -o alignof.bc -x c -emit-llvm -c alignof.c --target=aarch64-unknown-linux-gnu + lli-15 -force-interpreter alignof.bc + RESULT=16 I attach my alignof.sh script for easier reproduction, it takes the llvm major version to test as a parameter. (This bug breaks building pocl for arm64 under qemu.) Andreas
alignof.sh
Description: Bourne shell script