Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#999421: qemu-user-static: lli-13/arm64 causes segfault on amd64 host

28 views
Skip to first unread message

Andreas Beckmann

unread,
Nov 10, 2021, 3:20:03 PM11/10/21
to
Package: qemu-user-static
Version: 1:6.1+dfsg-8
Severity: important

on an amd64 host in in arm64 chroot running under qemu-user-static,
I observed some segmentation fault while building pocl against llvm-13
this is not reproducible on a porter box
it works fine with lli-12

in the arm64 chroot llvm-13 and clang-13 need to be installed

# cat compile_test_6cqj4.c


#ifndef offsetof
#define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif

typedef double double16 __attribute__((__ext_vector_type__(16)));

int main(int argc, char** argv) {

typedef struct { char x; double16 y; } ac__type_alignof_;
int r = offsetof(ac__type_alignof_, y);
return r;

}


# clang-13 -o try_run.bc -x c -emit-llvm -c --target=aarch64-unknown-linux-gnu compile_test_6cqj4.c

# lli-13 -force-interpreter try_run.bc ; echo $?
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: lli-13 -force-interpreter try_run.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):
/usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x44)[0x55015f4368]
/usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x70)[0x55015f2588]
/usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(+0xdb9914)[0x55015f4914]
[0x4dc890]
[0x5509ac000c]
/usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(+0x22cd730)[0x5502b08730]
lli-13(_Z9runOrcJITPKc+0x2218)[0x41aa20]
lli-13(main+0x290)[0x416960]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8)[0x55063ea8b8]
lli-13(_start+0x38)[0x415278]
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
139

Andreas

Michael Tokarev

unread,
May 1, 2022, 6:10:04 AM5/1/22
to
Control: tag -1 + confirmed upstream
Control: found -1 1:7.0+dfsg-1

I was able to reproduce this one, including qemu 7.0 version.

/mjt

Michael Tokarev

unread,
May 1, 2022, 6:30:03 AM5/1/22
to
But unfortunately I hardly can do anything with this bug report.
I'd say it is better to ask upstream about this one.

/mjt

Michael Tokarev

unread,
Dec 3, 2022, 2:50:04 AM12/3/22
to
Control: tag -1 + moreinfo

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?

Thanks!

/mjt

Michael Tokarev

unread,
Jul 10, 2023, 3:20:05 AM7/10/23
to
Control: found -1 1:8.0.2+dfsg-3

This bug is still present in 8.0.2 qemu version, confirmed it
with llvm-16 too.

FWIW.

/mjt
0 new messages