[llvm] [Support] Recycler: Enforce minimum allocation size (PR #121425)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 5 23:29:40 PST 2025


llvm-ci wrote:

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

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

<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)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 88102 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM-Unit :: Support/./SupportTests/135/174 (78782 of 88102)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/135/174' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests-LLVM-Unit-2979769-135-174.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=174 GTEST_SHARD_INDEX=135 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests
--

Note: This is test shard 136 of 174.
[==========] Running 8 tests from 8 test suites.
[----------] Global test environment set-up.
[----------] 1 test from CastingTest
[ RUN      ] CastingTest.isa_and_nonnull
Classof: 0x5d8b472373e0
Classof: 0x5d8b472373e0
[       OK ] CastingTest.isa_and_nonnull (0 ms)
[----------] 1 test from CastingTest (0 ms total)

[----------] 1 test from EndianStream
[ RUN      ] EndianStream.WriteArrayLE
[       OK ] EndianStream.WriteArrayLE (0 ms)
[----------] 1 test from EndianStream (0 ms total)

[----------] 1 test from HashBuilderTest/3, where TypeParam = <type>
[ RUN      ] HashBuilderTest/3.HashUserDefinedStruct
[       OK ] HashBuilderTest/3.HashUserDefinedStruct (0 ms)
[----------] 1 test from HashBuilderTest/3 (0 ms total)

[----------] 1 test from OverflowTest/0, where TypeParam = <type>
[ RUN      ] OverflowTest/0.MulNoOverflowToMax
[       OK ] OverflowTest/0.MulNoOverflowToMax (0 ms)
[----------] 1 test from OverflowTest/0 (0 ms total)

[----------] 1 test from RecyclerTest
[ RUN      ] RecyclerTest.RecycleAllocation
=================================================================
==1610643==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x5020000112d0 in thread T0:
  object passed to delete has wrong type:
  size of the allocated type:   8 bytes;
  size of the deallocated type: 1 bytes.
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 88102 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM-Unit :: Support/./SupportTests/135/174 (78782 of 88102)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/135/174' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests-LLVM-Unit-2979769-135-174.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=174 GTEST_SHARD_INDEX=135 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests
--

Note: This is test shard 136 of 174.
[==========] Running 8 tests from 8 test suites.
[----------] Global test environment set-up.
[----------] 1 test from CastingTest
[ RUN      ] CastingTest.isa_and_nonnull
Classof: 0x5d8b472373e0
Classof: 0x5d8b472373e0
[       OK ] CastingTest.isa_and_nonnull (0 ms)
[----------] 1 test from CastingTest (0 ms total)

[----------] 1 test from EndianStream
[ RUN      ] EndianStream.WriteArrayLE
[       OK ] EndianStream.WriteArrayLE (0 ms)
[----------] 1 test from EndianStream (0 ms total)

[----------] 1 test from HashBuilderTest/3, where TypeParam = <type>
[ RUN      ] HashBuilderTest/3.HashUserDefinedStruct
[       OK ] HashBuilderTest/3.HashUserDefinedStruct (0 ms)
[----------] 1 test from HashBuilderTest/3 (0 ms total)

[----------] 1 test from OverflowTest/0, where TypeParam = <type>
[ RUN      ] OverflowTest/0.MulNoOverflowToMax
[       OK ] OverflowTest/0.MulNoOverflowToMax (0 ms)
[----------] 1 test from OverflowTest/0 (0 ms total)

[----------] 1 test from RecyclerTest
[ RUN      ] RecyclerTest.RecycleAllocation
=================================================================
==1610643==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x5020000112d0 in thread T0:
  object passed to delete has wrong type:
  size of the allocated type:   8 bytes;
  size of the deallocated type: 1 bytes.

```

</details>

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


More information about the llvm-commits mailing list