Skip to content

Failing sanitizer on TestCases/Linux/getservent_r.cpp #161742

@badumbatish

Description

@badumbatish

Hi there, i'm building llvm with the following command and it's failing ninja -C build check-all

cmake -S llvm -B build -G Ninja -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_CCACHE_BUILD=true -DLLVM_USE_LINKER=lld  -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_ENABLE_RUNTIMES="compiler-rt;flang-rt;openmp"  -DCMAKE_CXX_LINK_FLAGS="-Wl,-rpath,$LD_LIBRARY_PATH" -DLLVM_ENABLE_ZLIB=ON
********************
********************
Failed Tests (6):
  SanitizerCommon-asan-x86_64-Linux :: Linux/getservent_r.cpp
  SanitizerCommon-hwasan-x86_64-Linux :: Linux/getservent_r.cpp
  SanitizerCommon-lsan-x86_64-Linux :: Linux/getservent_r.cpp
  SanitizerCommon-msan-x86_64-Linux :: Linux/getservent_r.cpp
  SanitizerCommon-tsan-x86_64-Linux :: Linux/getservent_r.cpp
  SanitizerCommon-ubsan-x86_64-Linux :: Linux/getservent_r.cpp

More detailed test results below, i'm not quite sure if i'm doing anything wrong or missing any dependencies

FAIL: SanitizerCommon-hwasan-x86_64-Linux :: Linux/getservent_r.cpp (1 of 96219)
******************** TEST 'SanitizerCommon-hwasan-x86_64-Linux :: Linux/getservent_r.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing  -m64 -funwind-tables  -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp &&  /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp # RUN: at line 1
+ /home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing -m64 -funwind-tables -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
+ /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
ERROR: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:42 - No such file or directory
getservent_r.cpp.tmp: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:18: void CheckResult(const char *, int, int): Assertion `ret == 0' failed.
/home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Linux/Output/getservent_r.cpp.script: line 1: 1548982 Aborted                 /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp

--

********************
FAIL: SanitizerCommon-ubsan-x86_64-Linux :: Linux/getservent_r.cpp (2 of 96219)
******************** TEST 'SanitizerCommon-ubsan-x86_64-Linux :: Linux/getservent_r.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=undefined  -m64 -funwind-tables  -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp &&  /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp # RUN: at line 1
+ /home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=undefined -m64 -funwind-tables -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
+ /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
ERROR: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:42 - No such file or directory
getservent_r.cpp.tmp: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:18: void CheckResult(const char *, int, int): Assertion `ret == 0' failed.
/home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-x86_64-Linux/Linux/Output/getservent_r.cpp.script: line 1: 1549035 Aborted                 (core dumped) /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp

--

********************
FAIL: SanitizerCommon-asan-x86_64-Linux :: Linux/getservent_r.cpp (3 of 96219)
******************** TEST 'SanitizerCommon-asan-x86_64-Linux :: Linux/getservent_r.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=address  -m64 -funwind-tables  -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp &&  /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp # RUN: at line 1
+ /home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=address -m64 -funwind-tables -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
+ /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
ERROR: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:42 - No such file or directory
getservent_r.cpp.tmp: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:18: void CheckResult(const char *, int, int): Assertion `ret == 0' failed.
/home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Linux/Output/getservent_r.cpp.script: line 1: 1549068 Aborted                 /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp

--

********************
FAIL: SanitizerCommon-msan-x86_64-Linux :: Linux/getservent_r.cpp (4 of 96219)
******************** TEST 'SanitizerCommon-msan-x86_64-Linux :: Linux/getservent_r.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=memory  -m64 -funwind-tables  -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp &&  /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp # RUN: at line 1
+ /home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=memory -m64 -funwind-tables -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
+ /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
ERROR: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:42 - No such file or directory
getservent_r.cpp.tmp: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:18: void CheckResult(const char *, int, int): Assertion `ret == 0' failed.
/home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Linux/Output/getservent_r.cpp.script: line 1: 1549128 Aborted                 /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp

--

********************
FAIL: SanitizerCommon-lsan-x86_64-Linux :: Linux/getservent_r.cpp (5 of 96219)
******************** TEST 'SanitizerCommon-lsan-x86_64-Linux :: Linux/getservent_r.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=leak  -m64 -funwind-tables  -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp &&  /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp # RUN: at line 1
+ /home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=leak -m64 -funwind-tables -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
+ /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
ERROR: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:42 - No such file or directory
getservent_r.cpp.tmp: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:18: void CheckResult(const char *, int, int): Assertion `ret == 0' failed.
/home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Linux/Output/getservent_r.cpp.script: line 1: 1549119 Aborted                 (core dumped) /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp

--

********************
FAIL: SanitizerCommon-tsan-x86_64-Linux :: Linux/getservent_r.cpp (6 of 96219)
******************** TEST 'SanitizerCommon-tsan-x86_64-Linux :: Linux/getservent_r.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=thread  -m64 -funwind-tables  -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/tsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp &&  /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/tsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp # RUN: at line 1
+ /home/jjasmine/Developer/igalia/llvm-project/build/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=thread -m64 -funwind-tables -I/home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test -ldl -O0 /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp -o /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/tsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
+ /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/tsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp
ERROR: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:42 - No such file or directory
getservent_r.cpp.tmp: /home/jjasmine/Developer/igalia/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/getservent_r.cpp:18: void CheckResult(const char *, int, int): Assertion `ret == 0' failed.
/home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/tsan-x86_64-Linux/Linux/Output/getservent_r.cpp.script: line 1: 1550147 Aborted                 /home/jjasmine/Developer/igalia/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/tsan-x86_64-Linux/Linux/Output/getservent_r.cpp.tmp

--

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions