[llvm-bugs] [Bug 50739] New: Race condition in regression test bug49334.cpp

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 16 08:02:07 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50739

            Bug ID: 50739
           Summary: Race condition in regression test bug49334.cpp
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at meinersbur.de
                CC: llvm-bugs at lists.llvm.org, tianshilei1992 at gmail.com

The regression test bug49334.cpp occasionally fails because of a race condition
in the asynchronous data movement. The test case was introduced in
https://reviews.llvm.org/D97329 to fix http://llvm.org/PR49334. PR49334 was a
null dereference not a race condition.


== https://lab.llvm.org/staging/#/builders/154/builds/540

******************** TEST 'libomptarget :: nvptx64-nvidia-cuda ::
offloading/bug49334.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';  
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/clang++
-fopenmp  -fno-experimental-isel --cuda-path=/opt/cuda  -I
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test
-I
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src
-L
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget
-L
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src
 -fopenmp-targets=nvptx64-nvidia-cuda
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp
-o
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/nvptx64-nvidia-cuda/offloading/Output/bug49334.cpp.tmp
&&
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/nvptx64-nvidia-cuda/offloading/Output/bug49334.cpp.tmp
|
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/FileCheck
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp
--
Exit Code: 2
Command Output (stdout):
--
$ ":" "RUN: at line 1"
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/clang++"
"-fopenmp" "-fno-experimental-isel" "--cuda-path=/opt/cuda" "-I"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test"
"-I"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src"
"-L"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget"
"-L"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src"
"-fopenmp-targets=nvptx64-nvidia-cuda"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp"
"-o"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/nvptx64-nvidia-cuda/offloading/Output/bug49334.cpp.tmp"
# command stderr:
clang-13: warning: Unknown CUDA version. cuda.h: CUDA_VERSION=11030. Assuming
the latest supported version 10.1 [-Wunknown-cuda-version]
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/nvptx64-nvidia-cuda/offloading/Output/bug49334.cpp.tmp"
note: command had no output on stdout or stderr
error: command failed with exit status: 1
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/FileCheck"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp"
# command stderr:
FileCheck error: '<stdin>' is empty.
FileCheck command line: 
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/FileCheck
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp
error: command failed with exit status: 2
--
********************

******************** TEST 'libomptarget :: x86_64-pc-linux-gnu ::
offloading/bug49334.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';  
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/clang++
-fopenmp  -fno-experimental-isel --cuda-path=/opt/cuda  -I
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test
-I
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src
-L
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget
-L
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src
 -fopenmp-targets=x86_64-pc-linux-gnu
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp
-o
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/x86_64-pc-linux-gnu/offloading/Output/bug49334.cpp.tmp
&&
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/x86_64-pc-linux-gnu/offloading/Output/bug49334.cpp.tmp
|
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/FileCheck
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp
--
Exit Code: 2
Command Output (stdout):
--
$ ":" "RUN: at line 1"
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/clang++"
"-fopenmp" "-fno-experimental-isel" "--cuda-path=/opt/cuda" "-I"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test"
"-I"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src"
"-L"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget"
"-L"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src"
"-fopenmp-targets=x86_64-pc-linux-gnu"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp"
"-o"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/x86_64-pc-linux-gnu/offloading/Output/bug49334.cpp.tmp"
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/runtimes/runtimes-bins/openmp/libomptarget/test/x86_64-pc-linux-gnu/offloading/Output/bug49334.cpp.tmp"
note: command had no output on stdout or stderr
error: command failed with exit status: 1
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/FileCheck"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp"
# command stderr:
FileCheck error: '<stdin>' is empty.
FileCheck command line: 
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.build/./bin/FileCheck
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-runtime/llvm.src/openmp/libomptarget/test/offloading/bug49334.cpp
error: command failed with exit status: 2
--
********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210616/29d40bbb/attachment-0001.html>


More information about the llvm-bugs mailing list