[llvm-bugs] [Bug 47480] New: 7 GWP-ASan lit test failures in linux self build after commit b22910daab95

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 10 00:51:57 PDT 2020


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

            Bug ID: 47480
           Summary: 7 GWP-ASan lit test failures in linux self build after
                    commit b22910daab95
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: douglas_yung at playstation.sony.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

As part of our testing internally, we do a self-host build of the compiler on
linux and run the lit tests to make sure that everything works. Recently this
self-host build started failing 7 GWP-ASan tests in the stage 1 build of our
self-host build. I bisected the test failure to recent commit
b22910daab95be1ebc6ab8a74190e38130b0e6ef.

The 7 tests that are failing are:

1. GWP-ASan-x86_64 :: double_delete.cpp
2. GWP-ASan-x86_64 :: double_deletea.cpp
3. GWP-ASan-x86_64 :: double_free.cpp
4. GWP-ASan-x86_64 :: invalid_free_left.cpp
5. GWP-ASan-x86_64 :: invalid_free_right.cpp
6. GWP-ASan-x86_64 :: realloc.cpp
7. GwpAsan-Unittest :: ./GwpAsan-x86_64-
Test/BacktraceGuardedPoolAllocator.DoubleFree

I was able to reproduce this locally on my linux machine running Ubuntu 20.04
using both Gcc 9.3.0 and clang 10.0.0 to build the initial compiler.

Steps to reproduce the failure:
1. Build clang using the system compiler (gcc 9.3 or clang 10 in my case)
2. Use the clang built in step 1 to rebuild clang
3. Using the version of clang built in step 2, run the lit tests

The cmake command I used to build was the following:
cmake -G Ninja -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_VERSION_SUFFIX=
-DLLVM_BUILD_RUNTIME=ON -DLLVM_TOOL_LLD_BUILD=OFF "-DLLVM_LIT_ARGS=--verbose
-j150" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_TARGETS_TO_BUILD=all
"-DLLVM_ENABLE_PROJECTS=clang;compiler-rt" -DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++ <path to llvm sources>

The Unittest that failed produced the following output:
FAIL: GwpAsan-Unittest ::
./GwpAsan-x86_64-Test/BacktraceGuardedPoolAllocator.DoubleFree (32710 of 69710)
******************** TEST 'GwpAsan-Unittest ::
./GwpAsan-x86_64-Test/BacktraceGuardedPoolAllocator.DoubleFree' FAILED
********************
Note: Google Test filter = BacktraceGuardedPoolAllocator.DoubleFree
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BacktraceGuardedPoolAllocator
[ RUN      ] BacktraceGuardedPoolAllocator.DoubleFree
/home/dyung/src/upstream/llvm_clean_git/compiler-rt/lib/gwp_asan/tests/backtrace.cpp:45:
Failure
Death test: DeallocateMemory2(GPA, Ptr)
    Result: failed to die.
 Error msg:
[  DEATH   ]
[  FAILED  ] BacktraceGuardedPoolAllocator.DoubleFree (62 ms)
[----------] 1 test from BacktraceGuardedPoolAllocator (62 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (69 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] BacktraceGuardedPoolAllocator.DoubleFree

 1 FAILED TEST


While the regular lit tests that failed all seemed to not produce any output:
FileCheck error: '<stdin>' is empty.
FileCheck command line:  FileCheck
/home/dyung/src/upstream/llvm_clean_git/compiler-rt/test/gwp_asan/double_delete.cpp

-- 
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/20200910/01a6e7a4/attachment-0001.html>


More information about the llvm-bugs mailing list