[llvm] [HWASan] remove incorrectly inferred attributes (PR #106565)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 19:31:39 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-clang".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/6242
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: CodeGen/address-safety-attr-flavors.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 8: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-NOASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-NOASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 11: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=address -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-ASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-ASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=address -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 15: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=kernel-address -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-KASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-KASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=kernel-address -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
RUN: at line 19: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=hwaddress -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-HWASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=CHECK-HWASAN /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple i386-unknown-linux -fsanitize=hwaddress -disable-O0-optnone -emit-llvm -o - /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
/b/1/llvm-x86_64-debian-dylib/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 = '/b/1/llvm-x86_64-debian-dylib/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: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ; ModuleID = '/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp'
check:31'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: source_filename = "/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CodeGen/address-safety-attr-flavors.cpp"
check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128"
check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: target triple = "i386-unknown-linux"
check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5:
check:31'0 ~
6: $hwasan.module_ctor = comdat any
check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
13: @hwasan.dummy.global = private constant [0 x i8] zeroinitializer, section "hwasan_globals", comdat($hwasan.module_ctor), !associated !0
...
```
</details>
https://github.com/llvm/llvm-project/pull/106565
More information about the llvm-commits
mailing list