Proposed: testsuite segfaults on ARM64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
llvm-toolchain-9 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
pocl (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
A recent rebuild of this package in proposed led to multiple failures on ARM/ARM64. The only differences between release (where it builds fine) and proposed are:
- llvm upgrade from 1:9.0.1-16.1ubuntu1 to 1:9.0.1-20
- glibc upgrade from 2.34-0ubuntu2 to 2.34-0ubuntu3
After debugging a test that segfaults, it seems to be an LLVM issue though, below the backtrace:
Thread 1 "test_shuffle" received signal SIGSEGV, Segmentation fault.
0x0000fffff296d868 in llvm::StringMap
(gdb) bt
#0 0x0000fffff296d868 in llvm::StringMap
() from /usr/lib/
#1 0x0000fffff2acc148 in llvm::Module:
M-9.so.1
#2 0x0000fffff2acc3e0 in llvm::Module:
const ()
from /usr/lib/
#3 0x0000fffff2acc584 in llvm::Module:
from /usr/lib/
#4 0x0000fffff7ac5600 in pocl_llvm_
program=
user_options_
program_
global char16 out) {\nout = shuffle2( *in1, *in2, *mask);\n}\n", num_input_
input_headers=
header_
linking_
at /usr/lib/
#5 0x0000fffff7a52864 in compile_
compile_
link_program=
num_devices=
--Type <RET> for more, q to quit, c to continue without paging--
options=<optimized out>, num_input_
input_headers=
header_
num_input_
input_programs=
pfn_notify=
at ./lib/CL/
#6 0x0000fffff7a51c50 in POclBuildProgram (program=<optimized out>,
num_devices=
options=<optimized out>, pfn_notify=
user_data=
#7 0x0000aaaaaaaa3810 in TestShuffle<signed char, unsigned char>::run (
this=this@
#8 0x0000aaaaaaaa21ec in main (argc=<optimized out>, argv=0xffffffff
at ./tests/
tags: | added: fr-1848 |
Changed in pocl (Ubuntu): | |
status: | New → Invalid |
Changed in llvm-toolchain-9 (Ubuntu): | |
status: | New → Invalid |
I downgraded llvm to 1:9.0.1-16.1ubuntu1 and the test passes without any segfault.