[libcxx-commits] [libcxx] [libc++] Replace the of use custom sections for detecting overriden functions (PR #175896)

LLVM Continuous Integration via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 7 22:48:29 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot1` while building `libcxx` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/33420

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/./Msan-x86_64-with-call-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/./Msan-x86_64-with-call-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/rtl/./TsanRtlTest-x86_64-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/rtl/./TsanRtlTest-x86_64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/unit/./TsanUnitTest-x86_64-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/unit/./TsanUnitTest-x86_64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/nsan/tests/./Nsan-x86_64-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/nsan/tests/./Nsan-x86_64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
-- Testing: 10645 tests, 64 workers --
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (1 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-calls-Test/failed_to_discover_tests_from_gtest (2 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-calls-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Dynamic-Test/failed_to_discover_tests_from_gtest (3 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-inline-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/failed_to_discover_tests_from_gtest (4 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-inline-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (5 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-calls-Test/failed_to_discover_tests_from_gtest (24 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-calls-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest (25 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/failed_to_discover_tests_from_gtest (29 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/./Msan-x86_64-with-call-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/./Msan-x86_64-with-call-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/rtl/./TsanRtlTest-x86_64-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/rtl/./TsanRtlTest-x86_64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/unit/./TsanUnitTest-x86_64-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/unit/./TsanUnitTest-x86_64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
libc++abi: libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been overridden, but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic because `operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, which will terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you override `operator new(size_t, align_val_t, nothrow_t)` as well.
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/nsan/tests/./Nsan-x86_64-Test': Command '['/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/nsan/tests/./Nsan-x86_64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' died with <Signals.SIGABRT: 6>.. Process output: b''
-- Testing: 10645 tests, 64 workers --
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (1 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-calls-Test/failed_to_discover_tests_from_gtest (2 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-calls-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Dynamic-Test/failed_to_discover_tests_from_gtest (3 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-inline-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/failed_to_discover_tests_from_gtest (4 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-i386-inline-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (5 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-calls-Test/failed_to_discover_tests_from_gtest (24 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-calls-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest (25 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/failed_to_discover_tests_from_gtest (29 of 10645)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************

```

</details>

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


More information about the libcxx-commits mailing list