Bug#972334: llvm-toolchain-11: autopkgtest failure on i386: integration-test-suite-test FAIL non-zero exit status 2

Witold Baryluk witold.baryluk at gmail.com
Sat Oct 17 19:33:23 BST 2020


Here are some extra details:

-- Testing: 25 tests, 2 workers --
PASS: LLVM regression suite :: basic_clang_tidy.cpp (1 of 25)
PASS: LLVM regression suite :: atomic_fetch.c (2 of 25)
PASS: LLVM regression suite :: basic_lib++2.cpp (3 of 25)
FAIL: LLVM regression suite :: basic_lldb.c (4 of 25)
******************** TEST 'LLVM regression suite :: basic_lldb.c'
FAILED ********************
Script:
--
: 'RUN: at line 1';   /usr/bin/clang-11 -g -o
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/basic_lldb.c.tmp
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/tests/basic_lldb.c
: 'RUN: at line 2';   /usr/bin/lldb-11 -s
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/tests/basic_lldb.in
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/basic_lldb.c.tmp
| grep "main at basic_lldb.c:"
--
Exit Code: 1

Command Output (stderr):
--
error: Lost debug server connection

--

********************
FAIL: LLVM regression suite :: basic_lldb2.cpp (5 of 25)
******************** TEST 'LLVM regression suite :: basic_lldb2.cpp'
FAILED ********************
Script:
--
: 'RUN: at line 1';   /usr/bin/clang++-11 -g -o
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/basic_lldb2.cpp.tmp
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/tests/basic_lldb2.cpp
: 'RUN: at line 2';   /usr/bin/lldb-11 -s
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/tests/basic_lldb2.in
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/basic_lldb2.cpp.tmp
| grep "stop reason = step over"
--
Exit Code: 1

Command Output (stderr):
--
error: Lost debug server connection

--

********************
PASS: LLVM regression suite :: basic_openmp.c (6 of 25)
PASS: LLVM regression suite :: clang_format.c (7 of 25)
PASS: LLVM regression suite :: code_coverage.cpp (8 of 25)
PASS: LLVM regression suite :: code_profiling.cpp (9 of 25)
PASS: LLVM regression suite :: from_chars.cpp (10 of 25)
PASS: LLVM regression suite :: include_limits.c (11 of 25)
PASS: LLVM regression suite :: llvm_config_libs.cpp (12 of 25)
PASS: LLVM regression suite :: lto_and_cfi.c (13 of 25)
PASS: LLVM regression suite :: minimal_llvm_cmake.txt (14 of 25)
PASS: LLVM regression suite :: basic_lib++.cpp (15 of 25)
PASS: LLVM regression suite :: partial-toolchain.cpp (16 of 25)
PASS: LLVM regression suite :: rpass_inline.cpp (17 of 25)
PASS: LLVM regression suite :: plugins.cpp (18 of 25)
UNSUPPORTED: LLVM regression suite :: test_asan_heap.c (19 of 25)
FAIL: LLVM regression suite :: test_asan_lc.c (20 of 25)
******************** TEST 'LLVM regression suite :: test_asan_lc.c'
FAILED ********************
Script:
--
: 'RUN: at line 4';   /usr/bin/clang-11 -fsanitize=address
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/tests/test_asan_lc.c
-o /tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_asan_lc.c.tmp
-lc
: 'RUN: at line 5';
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_asan_lc.c.tmp
--
Exit Code: 139

Command Output (stderr):
--
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_asan_lc.c.script:
line 2:  2694 Segmentation fault
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_asan_lc.c.tmp

--

********************
FAIL: LLVM regression suite :: test_tsan.c (21 of 25)
******************** TEST 'LLVM regression suite :: test_tsan.c'
FAILED ********************
Script:
--
: 'RUN: at line 4';   /usr/bin/clang-11 -o
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_tsan.c.tmp
-fsanitize=thread -g -O1
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/tests/test_tsan.c
: 'RUN: at line 5';   /usr/bin/llvm-nm-11
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_tsan.c.tmp
| grep __tsan
: 'RUN: at line 6';   env TSAN_OPTIONS="log_path=stdout:exitcode=0"
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_tsan.c.tmp
2>&1 > /tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_tsan.c.tmp.out
: 'RUN: at line 7';   grep -q "data race"
/tmp/autopkgtest-lxc.zmambq90/downtmp/autopkgtest_tmp/build/tests/Output/test_tsan.c.tmp.out
--
Exit Code: 1

Command Output (stderr):
--
clang: error: unsupported option '-fsanitize=thread' for target
'i686-pc-linux-gnu'

--

********************
PASS: LLVM regression suite :: warning_conversion.c (22 of 25)
UNSUPPORTED: LLVM regression suite :: whole-toolchain.c (23 of 25)
UNSUPPORTED: LLVM regression suite :: whole-toolchain.cpp (24 of 25)
PASS: LLVM regression suite :: scanbuild_missing_delete.cpp (25 of 25)
********************
Unsupported Tests (3):
  LLVM regression suite :: test_asan_heap.c
  LLVM regression suite :: whole-toolchain.c
  LLVM regression suite :: whole-toolchain.cpp

********************
Failed Tests (4):
  LLVM regression suite :: basic_lldb.c
  LLVM regression suite :: basic_lldb2.cpp
  LLVM regression suite :: test_asan_lc.c
  LLVM regression suite :: test_tsan.c


Testing Time: 13.96s
  Unsupported:  3
  Passed     : 18
  Failed     :  4


According to Clang / LLVM documentation, -fsanitize=thread is not
supported on i386.

https://clang.llvm.org/docs/ThreadSanitizer.html

Citation:

ThreadSanitizer is supported on the following OS:

Android aarch64, x86_64
Darwin arm64, x86_64
FreeBSD
Linux aarch64, x86_64, powerpc64, powerpc64le
NetBSD

Support for other 64-bit architectures is possible, contributions are
welcome. Support for 32-bit platforms is problematic and is not
planned.



More information about the Pkg-llvm-team mailing list