[llvm] [HWASan] remove incorrectly inferred attributes (PR #106565)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 13:03:45 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `llvm` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[298/304] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[299/304] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[300/304] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[301/304] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[302/304] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[303/304] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[303/304] Running the Clang regression tests
-- Testing: 21054 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:505: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing:  0.. 10.. 20.. 
FAIL: Clang :: CodeGen/address-safety-attr-flavors.cpp (6418 of 21054)
******************** TEST 'Clang :: CodeGen/address-safety-attr-flavors.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 8: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -disable-O0-optnone    -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-NOASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-NOASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 11: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=address    -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp |    /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-ASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=address -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-ASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 15: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=kernel-address    -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp |    /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-KASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=kernel-address -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-KASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 19: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=hwaddress    -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp |    /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-HWASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-HWASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=hwaddress -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp:31:18: error: CHECK-HWASAN: expected string not found in input
// CHECK-HWASAN: Function Attrs: mustprogress noinline nounwind sanitize_hwaddress
                 ^
<stdin>:1:1: note: scanning from here
; ModuleID = '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp'
^
<stdin>:18:3: note: possible intended match here
; Function Attrs: mustprogress nobuiltin noinline nounwind sanitize_hwaddress
  ^

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ; ModuleID = '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp' 
check:31'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
            2: source_filename = "/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp" 
check:31'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Step 8 (check-llvm) failure: check-llvm (failure)
...
[298/304] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[299/304] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[300/304] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[301/304] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[302/304] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[303/304] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[303/304] Running the Clang regression tests
-- Testing: 21054 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:505: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing:  0.. 10.. 20.. 
FAIL: Clang :: CodeGen/address-safety-attr-flavors.cpp (6418 of 21054)
******************** TEST 'Clang :: CodeGen/address-safety-attr-flavors.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 8: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -disable-O0-optnone    -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-NOASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-NOASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 11: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=address    -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp |    /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-ASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=address -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-ASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 15: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=kernel-address    -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp |    /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-KASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=kernel-address -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-KASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 19: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=hwaddress    -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp |    /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-HWASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck -check-prefix=CHECK-HWASAN /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=hwaddress -disable-O0-optnone -emit-llvm -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp:31:18: error: CHECK-HWASAN: expected string not found in input
// CHECK-HWASAN: Function Attrs: mustprogress noinline nounwind sanitize_hwaddress
                 ^
<stdin>:1:1: note: scanning from here
; ModuleID = '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp'
^
<stdin>:18:3: note: possible intended match here
; Function Attrs: mustprogress nobuiltin noinline nounwind sanitize_hwaddress
  ^

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ; ModuleID = '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp' 
check:31'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
            2: source_filename = "/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp" 
check:31'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```

</details>

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


More information about the llvm-commits mailing list