Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

FAIL: libomptarget :: offloading/parallel_offloading_map.cpp on rolling distros and Ubuntu 20.10 #48502

Open Quuxplusone opened 3 years ago

Quuxplusone commented 3 years ago
Bugzilla Link PR49533
Status NEW
Importance P normal
Reported by Neil Nelson (nnelson@infowest.com)
Reported on 2021-03-10 17:58:16 -0800
Last modified on 2021-09-27 10:15:30 -0700
Version unspecified
Hardware PC Linux
CC bryanpkc@gmail.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, lukebenes@hotmail.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also PR49250, PR51150
FAIL: libomptarget :: offloading/parallel_offloading_map.cpp (84762 of 89700)
******************** TEST 'libomptarget ::
offloading/parallel_offloading_map.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';   echo ignored-command
: 'RUN: at line 2';   echo ignored-command
: 'RUN: at line 3';   echo ignored-command
: 'RUN: at line 4';   /home/nnelson/Documents/llvm-project/build/./bin/clang++ -
fopenmp -pthread -fno-experimental-isel  -I /home/nnelson/Documents/llvm-
project/openmp/libomptarget/test -I /home/nnelson/Documents/llvm-
project/build/projects/openmp/runtime/src -L /home/nnelson/Documents/llvm-
project/build/projects/openmp/libomptarget -L /home/nnelson/Documents/llvm-
project/build/lib  -fopenmp-targets=x86_64-pc-linux-gnu
/home/nnelson/Documents/llvm-
project/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp -o
/home/nnelson/Documents/llvm-
project/build/projects/openmp/libomptarget/test/offloading/Output/parallel_offloading_map.cpp.tmp-
x86_64-pc-linux-gnu && /home/nnelson/Documents/llvm-
project/build/projects/openmp/libomptarget/test/offloading/Output/parallel_offloading_map.cpp.tmp-
x86_64-pc-linux-gnu | /home/nnelson/Documents/llvm-
project/build/./bin/FileCheck /home/nnelson/Documents/llvm-
project/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp
: 'RUN: at line 5';   echo ignored-command
--
Exit Code: 2

Command Output (stdout):
--
$ ":" "RUN: at line 1"
note: command had no output on stdout or stderr
$ "echo" "ignored-command"
# command output:
ignored-command

$ ":" "RUN: at line 2"
note: command had no output on stdout or stderr
$ "echo" "ignored-command"
# command output:
ignored-command

$ ":" "RUN: at line 3"
note: command had no output on stdout or stderr
$ "echo" "ignored-command"
# command output:
ignored-command

$ ":" "RUN: at line 4"
note: command had no output on stdout or stderr
$ "/home/nnelson/Documents/llvm-project/build/./bin/clang++" "-fopenmp" "-
pthread" "-fno-experimental-isel" "-I" "/home/nnelson/Documents/llvm-
project/openmp/libomptarget/test" "-I" "/home/nnelson/Documents/llvm-
project/build/projects/openmp/runtime/src" "-L" "/home/nnelson/Documents/llvm-
project/build/projects/openmp/libomptarget" "-L" "/home/nnelson/Documents/llvm-
project/build/lib" "-fopenmp-targets=x86_64-pc-linux-gnu"
"/home/nnelson/Documents/llvm-
project/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp" "-o"
"/home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget/test/offloading/Output/parallel_offloading_map.cpp.tmp-x86_64-pc-linux-gnu"
note: command had no output on stdout or stderr
$ "/home/nnelson/Documents/llvm-
project/build/projects/openmp/libomptarget/test/offloading/Output/parallel_offloading_map.cpp.tmp-x86_64-pc-linux-gnu"
# command stderr:
parallel_offloading_map.cpp.tmp-x86_64-pc-linux-gnu:
/home/nnelson/Documents/llvm-
project/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp:35: int
main(int, char **): Assertion `array[i] == ref' failed.

error: command failed with exit status: -6
$ "/home/nnelson/Documents/llvm-project/build/./bin/FileCheck"
"/home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp"
# command stderr:
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nnelson/Documents/llvm-
project/build/./bin/FileCheck /home/nnelson/Documents/llvm-
project/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp

error: command failed with exit status: 2
This bug obtained with the following sequence.
Xubuntu 20.10.

From the Ubuntu distribution
clang++ --version
Ubuntu clang version 11.0.0-2

git command executed close to 9pm Mar. 9, 2021, Mountain Standard Time.
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
cd build

cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;llvm;clang-tools-extra;compiler-
rt;flang;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;parallel-
libs;polly;pstl;utils" -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE="Release" -
DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_LIBPFM=OFF -
DRUN_HAVE_GNU_POSIX_REGEX=0 -DLLVM_LIBC_ENABLE_LINTING=ON -Wno-dev ../llvm &>
~/Documents/cmake.log

ninja -j 31 &> ~/Documents/ninja.log
ninja -j 31 check-all &> ~/Documents/check-all.log

From check-all.log
Failed Tests (11):
  Builtins-i386-linux :: muldc3_test.c
  HWAddressSanitizer-x86_64 :: TestCases/global.c
  SanitizerCommon-asan-i386-Linux :: Linux/crypt_r.cpp
  SanitizerCommon-asan-i386-Linux :: Posix/crypt.cpp
  SanitizerCommon-lsan-i386-Linux :: Linux/crypt_r.cpp
  SanitizerCommon-lsan-i386-Linux :: Posix/crypt.cpp
  SanitizerCommon-ubsan-i386-Linux :: Linux/crypt_r.cpp
  SanitizerCommon-ubsan-i386-Linux :: Posix/crypt.cpp
  libomptarget :: offloading/memory_manager.cpp
  libomptarget :: offloading/parallel_offloading_map.cpp
  lldb-api :: tools/lldb-vscode/runInTerminal/TestVSCode_runInTerminal.py

Testing Time: 467.65s
  Unsupported      : 23487
  Passed           : 66034
  Expectedly Failed:   168
  Failed           :    11
Quuxplusone commented 3 years ago

This failure appears to affect newer distros. I'm seeing the parallel_offloading_map.cpp failure with OpenSUSE Tumbleweed 20210428, gcc 10.3. The same system passes these tests under Ubuntu 20.4. Shilei suggested this could be related to Bug 48330 or elf64 using libffi.

Quuxplusone commented 3 years ago

I see this failure on Ubuntu 18.04 (both x86_64 and aarch64) and CentOS 7.7 (aarch64). I build LLVM with GCC 9.3. libelf and libffi development packages are provided by the operating systems.

Quuxplusone commented 3 years ago

The parallel_offloading_map.cpp test has been disabled for x86_64-pc-linux-gnu

https://github.com/llvm/llvm-project/commit/ad0f6e1d984067a3dc81c17abcdd2fc3c7ff9946