[compiler-rt] [compiler-rt] Fix incorrect usages of check_cxx_compiler_flag (PR #83779)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 12:26:42 PST 2024


fmayer wrote:

I think this broke the ppc64be buildbot https://lab.llvm.org/buildbot/#/builders/18/builds/15660/steps/9/logs/stdio

```
[9/10] Running compiler_rt regression tests
AddressSanitizer: CHECK failed: sanitizer_common.h:534 "((size_)) == ((capacity()))" (0xaaaaaaaaaaaaaaaa, 0x0) (tid=92741)
    #0 0x1029e5590 in __asan::CheckUnwind() /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/asan/asan_rtl.cpp:69:3
    #1 0x102a04da4 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:86:5
    #2 0x102a19c28 in push_back /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/../sanitizer_common/sanitizer_common.h:534:7
    #3 0x102a19c28 in ProcessRootRegions /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:573:22
    #4 0x102a19c28 in ClassifyAllChunks /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:642:3
    #5 0x102a19c28 in __lsan::CheckForLeaksCallback(__sanitizer::SuspendedThreadsList const&, void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:733:3
    #6 0x102a27184 in __sanitizer::TracerThread(void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp:321:5
    #7 0x1029f8908 in __sanitizer::internal_clone(int (*)(void*), void*, int, void*, int*, void*, int*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:1571:3
AddressSanitizer: CHECK failed: sanitizer_common.h:534 "((size_)) == ((capacity()))" (0xaaaaaaaaaaaaaaaa, 0x0) (tid=92744)
    #0 0x106235590 in __asan::CheckUnwind() /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/asan/asan_rtl.cpp:69:3
    #1 0x106254da4 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:86:5
    #2 0x106269c28 in push_back /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/../sanitizer_common/sanitizer_common.h:534:7
    #3 0x106269c28 in ProcessRootRegions /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:573:22
    #4 0x106269c28 in ClassifyAllChunks /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:642:3
    #5 0x106269c28 in __lsan::CheckForLeaksCallback(__sanitizer::SuspendedThreadsList const&, void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:733:3
    #6 0x106277184 in __sanitizer::TracerThread(void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp:321:5
    #7 0x106248908 in __sanitizer::internal_clone(int (*)(void*), void*, int, void*, int*, void*, int*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:1571:3
AddressSanitizer: CHECK failed: sanitizer_common.h:534 "((size_)) == ((capacity()))" (0xaaaaaaaaaaaaaaaa, 0x0) (tid=92752)
    #0 0x3fff7a1ca924 in __asan::CheckUnwind() /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/asan/asan_rtl.cpp:69:3
    #1 0x3fff7a0c12f0 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:86:5
    #2 0x3fff7a0db6d4 in push_back /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/../sanitizer_common/sanitizer_common.h:534:7
    #3 0x3fff7a0db6d4 in ProcessRootRegions /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:573:22
    #4 0x3fff7a0db6d4 in ClassifyAllChunks /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:642:3
    #5 0x3fff7a0db6d4 in __lsan::CheckForLeaksCallback(__sanitizer::SuspendedThreadsList const&, void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:733:3
    #6 0x3fff7a0c6168 in __sanitizer::TracerThread(void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp:321:5
    #7 0x3fff7a0b434c in __sanitizer::internal_clone(int (*)(void*), void*, int, void*, int*, void*, int*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:1571:3
AddressSanitizer: CHECK failed: sanitizer_common.h:534 "((size_)) == ((capacity()))" (0xaaaaaaaaaaaaaaaa, 0x0) (tid=92755)
    #0 0x3fff88d3a924 in __asan::CheckUnwind() /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/asan/asan_rtl.cpp:69:3
    #1 0x3fff88c312f0 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:86:5
    #2 0x3fff88c4b6d4 in push_back /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/../sanitizer_common/sanitizer_common.h:534:7
    #3 0x3fff88c4b6d4 in ProcessRootRegions /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:573:22
    #4 0x3fff88c4b6d4 in ClassifyAllChunks /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:642:3
    #5 0x3fff88c4b6d4 in __lsan::CheckForLeaksCallback(__sanitizer::SuspendedThreadsList const&, void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/lsan/lsan_common.cpp:733:3
    #6 0x3fff88c36168 in __sanitizer::TracerThread(void*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp:321:5
    #7 0x3fff88c2434c in __sanitizer::internal_clone(int (*)(void*), void*, int, void*, int*, void*, int*) /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:1571:3
```

https://github.com/llvm/llvm-project/pull/83779


More information about the llvm-commits mailing list