[clang] [clang] Lifetimebound in assignment operator should work for non-gsl annotated types. (PR #113180)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 06:39:40 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-msan` running on `sanitizer-buildbot5` while building `clang` at step 2 "annotate".

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

<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-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/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: 86435 tests, 88 workers --
Testing:  0.. 10.. 
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17620 of 86435)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
75.65s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
54.51s: Clang :: Analysis/runtime-regression.c
39.62s: Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret.c
32.61s: Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret-bfloat.c
31.15s: Clang :: Driver/fsanitize.c
28.99s: Clang :: OpenMP/target_update_codegen.cpp
28.28s: LLVM :: MC/Mips/mips-jump-pc-region.s
27.97s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
26.85s: Clang :: CodeGen/X86/avx-builtins.c
26.77s: Clang :: Preprocessor/riscv-target-features.c
26.22s: Clang :: CodeGen/X86/rot-intrinsics.c
26.03s: Clang :: CodeGen/X86/sse2-builtins.c
23.83s: LLVM :: CodeGen/X86/vector-interleaved-load-i8-stride-8.ll
23.78s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
22.49s: Clang :: Driver/arm-cortex-cpus-2.c
21.65s: Clang :: Driver/arm-cortex-cpus-1.c
21.35s: Clang :: Headers/arm-neon-header.c
Step 10 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/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: 86435 tests, 88 workers --
Testing:  0.. 10.. 
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17620 of 86435)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
75.65s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
54.51s: Clang :: Analysis/runtime-regression.c
39.62s: Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret.c
32.61s: Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret-bfloat.c
31.15s: Clang :: Driver/fsanitize.c
28.99s: Clang :: OpenMP/target_update_codegen.cpp
28.28s: LLVM :: MC/Mips/mips-jump-pc-region.s
27.97s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
26.85s: Clang :: CodeGen/X86/avx-builtins.c
26.77s: Clang :: Preprocessor/riscv-target-features.c
26.22s: Clang :: CodeGen/X86/rot-intrinsics.c
26.03s: Clang :: CodeGen/X86/sse2-builtins.c
23.83s: LLVM :: CodeGen/X86/vector-interleaved-load-i8-stride-8.ll
23.78s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
22.49s: Clang :: Driver/arm-cortex-cpus-2.c
21.65s: Clang :: Driver/arm-cortex-cpus-1.c
21.35s: Clang :: Headers/arm-neon-header.c
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/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: 83559 tests, 88 workers --
Testing:  0.. 10.. 
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17625 of 83559)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
24.09s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
20.48s: Clang :: Driver/fsanitize.c
16.57s: Clang :: OpenMP/target_update_codegen.cpp
16.18s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
15.67s: Clang :: Preprocessor/riscv-target-features.c
14.73s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
13.90s: Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret.c
13.68s: lit :: shtest-define.py
13.53s: Clang :: Driver/arm-cortex-cpus-2.c
13.25s: Clang :: Driver/arm-cortex-cpus-1.c
12.32s: Clang :: Analysis/runtime-regression.c
11.74s: lit :: shtest-shell.py
11.52s: Clang :: Preprocessor/arm-target-features.c
11.41s: Clang :: Preprocessor/aarch64-target-features.c
11.32s: Clang :: OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp
10.53s: LLVM :: CodeGen/RISCV/attributes.ll
10.44s: LLVM :: CodeGen/X86/vector-interleaved-load-i8-stride-8.ll

```

</details>

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


More information about the cfe-commits mailing list