Skip to content

[PAC][ELF][AArch64] Support signed personality function pointer #113148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

kovdan01
Copy link
Contributor

If function pointer signing is enabled, sign personality function pointer stored in .DW.ref.__gxx_personality_v0 section with IA key, 0x7EAD = ptrauth_string_discriminator("personality") constant discriminator and address diversity enabled.

@kovdan01 kovdan01 marked this pull request as ready for review October 21, 2024 10:32
@llvmbot llvmbot added clang Clang issues not falling into any other category backend:AArch64 clang:codegen IR generation bugs: mangling, exceptions, etc. debuginfo labels Oct 21, 2024
@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2024

@llvm/pr-subscribers-backend-aarch64

@llvm/pr-subscribers-clang-codegen

Author: Daniil Kovalev (kovdan01)

Changes

If function pointer signing is enabled, sign personality function pointer stored in .DW.ref.__gxx_personality_v0 section with IA key, 0x7EAD = ptrauth_string_discriminator("personality") constant discriminator and address diversity enabled.


Full diff: https://github.com/llvm/llvm-project/pull/113148.diff

14 Files Affected:

  • (modified) clang/lib/CodeGen/CodeGenModule.cpp (+3)
  • (added) clang/test/CodeGen/ptrauth-module-flags.c (+8)
  • (modified) llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h (+7-1)
  • (modified) llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h (+7-1)
  • (modified) llvm/include/llvm/Target/TargetLoweringObjectFile.h (+2-1)
  • (modified) llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (+2-1)
  • (modified) llvm/lib/CodeGen/MachineModuleInfoImpls.cpp (+12)
  • (modified) llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (+9-1)
  • (modified) llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp (+16)
  • (modified) llvm/lib/Target/AArch64/AArch64TargetObjectFile.h (+4)
  • (modified) llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp (+10)
  • (modified) llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h (+7)
  • (modified) llvm/lib/Target/TargetLoweringObjectFile.cpp (+3-4)
  • (added) llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll (+39)
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 24655b809b2eff..261d8c46822b73 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1218,6 +1218,9 @@ void CodeGenModule::Release() {
                                 "sign-return-address-with-bkey", 1);
 
     if (getTriple().isOSLinux()) {
+      if (LangOpts.PointerAuthCalls)
+        getModule().addModuleFlag(llvm::Module::Min, "ptrauth-sign-personality",
+                                  1);
       assert(getTriple().isOSBinFormatELF());
       using namespace llvm::ELF;
       uint64_t PAuthABIVersion =
diff --git a/clang/test/CodeGen/ptrauth-module-flags.c b/clang/test/CodeGen/ptrauth-module-flags.c
new file mode 100644
index 00000000000000..150e5bf59fb05e
--- /dev/null
+++ b/clang/test/CodeGen/ptrauth-module-flags.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple aarch64-linux-gnu                   -emit-llvm %s  -o - | FileCheck %s --check-prefix=OFF
+// RUN: %clang_cc1 -triple aarch64-linux-gnu -fptrauth-calls   -emit-llvm %s  -o - | FileCheck %s --check-prefix=PERSONALITY
+
+// PERSONALITY:      !llvm.module.flags = !{
+// PERSONALITY-SAME: !1
+// PERSONALITY:      !1 = !{i32 8, !"ptrauth-sign-personality", i32 1}
+
+// OFF-NOT: "ptrauth-
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h b/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
index c1ae3d2d966df5..f7a028625ee3c8 100644
--- a/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
+++ b/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
@@ -83,10 +83,14 @@ class MachineModuleInfoELF : public MachineModuleInfoImpl {
   /// extern_weak symbols.
   DenseMap<MCSymbol *, const MCExpr *> AuthPtrStubs;
 
+  /// HasSignedPersonality is true if the corresponding IR module has the
+  /// "ptrauth-sign-personality" flag set to 1.
+  bool HasSignedPersonality = false;
+
   virtual void anchor(); // Out of line virtual method.
 
 public:
-  MachineModuleInfoELF(const MachineModuleInfo &) {}
+  MachineModuleInfoELF(const MachineModuleInfo &);
 
   StubValueTy &getGVStubEntry(MCSymbol *Sym) {
     assert(Sym && "Key cannot be null");
@@ -105,6 +109,8 @@ class MachineModuleInfoELF : public MachineModuleInfoImpl {
   ExprStubListTy getAuthGVStubList() {
     return getSortedExprStubs(AuthPtrStubs);
   }
+
+  bool hasSignedPersonality() const { return HasSignedPersonality; }
 };
 
 /// MachineModuleInfoCOFF - This is a MachineModuleInfoImpl implementation
diff --git a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
index 8eef45ce565deb..a2a9e5d499e527 100644
--- a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+++ b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
@@ -52,7 +52,13 @@ class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
   void emitModuleMetadata(MCStreamer &Streamer, Module &M) const override;
 
   void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &DL,
-                            const MCSymbol *Sym) const override;
+                            const MCSymbol *Sym,
+                            const MachineModuleInfo *MMI) const override;
+
+  virtual void emitPersonalityValueImpl(MCStreamer &Streamer,
+                                        const DataLayout &DL,
+                                        const MCSymbol *Sym,
+                                        const MachineModuleInfo *MMI) const;
 
   /// Given a constant with the SectionKind, return a section that it should be
   /// placed in.
diff --git a/llvm/include/llvm/Target/TargetLoweringObjectFile.h b/llvm/include/llvm/Target/TargetLoweringObjectFile.h
index 0c09cfe684783b..4864ba843f4886 100644
--- a/llvm/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/llvm/include/llvm/Target/TargetLoweringObjectFile.h
@@ -82,7 +82,8 @@ class TargetLoweringObjectFile : public MCObjectFileInfo {
   virtual void Initialize(MCContext &ctx, const TargetMachine &TM);
 
   virtual void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &TM,
-                                    const MCSymbol *Sym) const;
+                                    const MCSymbol *Sym,
+                                    const MachineModuleInfo *MMI) const;
 
   /// Emit the module-level metadata that the platform cares about.
   virtual void emitModuleMetadata(MCStreamer &Streamer, Module &M) const {}
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index 087ee02a7f2b35..4fac4bbc98477d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -50,7 +50,8 @@ void DwarfCFIException::endModule() {
   // Emit indirect reference table for all used personality functions
   for (const GlobalValue *Personality : Personalities) {
     MCSymbol *Sym = Asm->getSymbol(Personality);
-    TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym);
+    TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym,
+                              Asm->MMI);
   }
   Personalities.clear();
 }
diff --git a/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp b/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
index 956317510dc736..0d8c30883d6dcf 100644
--- a/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
@@ -14,6 +14,8 @@
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/STLExtras.h"
+#include "llvm/IR/Constants.h"
+#include "llvm/IR/Module.h"
 #include "llvm/MC/MCSymbol.h"
 
 using namespace llvm;
@@ -59,3 +61,13 @@ MachineModuleInfoImpl::ExprStubListTy MachineModuleInfoImpl::getSortedExprStubs(
   ExprStubs.clear();
   return List;
 }
+
+MachineModuleInfoELF::MachineModuleInfoELF(const MachineModuleInfo &MMI) {
+  const Module *M = MMI.getModule();
+  const auto *Flag = mdconst::extract_or_null<ConstantInt>(
+      M->getModuleFlag("ptrauth-sign-personality"));
+  if (Flag && Flag->getZExtValue() == 1)
+    HasSignedPersonality = true;
+  else
+    HasSignedPersonality = false;
+}
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index ce50a3c19ffe04..d5342b5d3651f1 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -413,7 +413,8 @@ MCSymbol *TargetLoweringObjectFileELF::getCFIPersonalitySymbol(
 }
 
 void TargetLoweringObjectFileELF::emitPersonalityValue(
-    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym) const {
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
   SmallString<64> NameData("DW.ref.");
   NameData += Sym->getName();
   MCSymbolELF *Label =
@@ -431,6 +432,13 @@ void TargetLoweringObjectFileELF::emitPersonalityValue(
   Streamer.emitELFSize(Label, E);
   Streamer.emitLabel(Label);
 
+  emitPersonalityValueImpl(Streamer, DL, Sym, MMI);
+}
+
+void TargetLoweringObjectFileELF::emitPersonalityValueImpl(
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
+  unsigned Size = DL.getPointerSize();
   Streamer.emitSymbolValue(Sym, Size);
 }
 
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
index d916f644de9b50..69c884fb320aa6 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
@@ -9,6 +9,7 @@
 #include "AArch64TargetObjectFile.h"
 #include "AArch64TargetMachine.h"
 #include "MCTargetDesc/AArch64MCExpr.h"
+#include "MCTargetDesc/AArch64TargetStreamer.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/BinaryFormat/Dwarf.h"
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
@@ -29,6 +30,21 @@ void AArch64_ELFTargetObjectFile::Initialize(MCContext &Ctx,
   SupportDebugThreadLocalLocation = false;
 }
 
+void AArch64_ELFTargetObjectFile::emitPersonalityValueImpl(
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
+  if (!MMI->getObjFileInfo<MachineModuleInfoELF>().hasSignedPersonality()) {
+    TargetLoweringObjectFileELF::emitPersonalityValueImpl(Streamer, DL, Sym,
+                                                          MMI);
+    return;
+  }
+  auto *TS = static_cast<AArch64TargetStreamer *>(Streamer.getTargetStreamer());
+  // The value is ptrauth_string_discriminator("personality")
+  constexpr uint16_t Discriminator = 0x7EAD;
+  TS->emitAuthValue(MCSymbolRefExpr::create(Sym, getContext()), Discriminator,
+                    AArch64PACKey::IA, true, getContext());
+}
+
 const MCExpr *AArch64_ELFTargetObjectFile::getIndirectSymViaGOTPCRel(
     const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV,
     int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const {
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
index 2ef8bda2988d47..0c822ac84f200c 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
@@ -35,6 +35,10 @@ class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
                                  MachineModuleInfo *MMI, const MCSymbol *RawSym,
                                  AArch64PACKey::ID Key,
                                  uint16_t Discriminator) const;
+
+  void emitPersonalityValueImpl(MCStreamer &Streamer, const DataLayout &DL,
+                                const MCSymbol *Sym,
+                                const MachineModuleInfo *MMI) const override;
 };
 
 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
index dc5383ce941ed9..c453cd6f768c3d 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
@@ -35,6 +35,16 @@ AArch64TargetStreamer::AArch64TargetStreamer(MCStreamer &S)
 
 AArch64TargetStreamer::~AArch64TargetStreamer() = default;
 
+void AArch64TargetStreamer::emitAuthValue(const MCExpr *Expr,
+                                          uint16_t Discriminator,
+                                          AArch64PACKey::ID Key,
+                                          bool HasAddressDiversity,
+                                          MCContext &Ctx) {
+  Streamer.emitValueImpl(AArch64AuthMCExpr::create(Expr, Discriminator, Key,
+                                                   HasAddressDiversity, Ctx),
+                         8);
+}
+
 // The constant pool handling is shared by all AArch64TargetStreamer
 // implementations.
 const MCExpr *AArch64TargetStreamer::addConstantPoolEntry(const MCExpr *Expr,
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
index ac441ae3b603ff..e6d448e45d45d3 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
 
+#include "AArch64MCExpr.h"
 #include "llvm/MC/MCStreamer.h"
 
 namespace {
@@ -38,6 +39,12 @@ class AArch64TargetStreamer : public MCTargetStreamer {
   void emitNoteSection(unsigned Flags, uint64_t PAuthABIPlatform = -1,
                        uint64_t PAuthABIVersion = -1);
 
+  /// Callback used to emit AUTH expressions (e.g. signed
+  /// personality function pointer).
+  void emitAuthValue(const MCExpr *Expr, uint16_t Discriminator,
+                     AArch64PACKey::ID Key, bool HasAddressDiversity,
+                     MCContext &Ctx);
+
   /// Callback used to implement the .inst directive.
   virtual void emitInst(uint32_t Inst);
 
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 7d9b926f4c42b6..4fe9d13d062265 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -141,10 +141,9 @@ MCSymbol *TargetLoweringObjectFile::getCFIPersonalitySymbol(
   return TM.getSymbol(GV);
 }
 
-void TargetLoweringObjectFile::emitPersonalityValue(MCStreamer &Streamer,
-                                                    const DataLayout &,
-                                                    const MCSymbol *Sym) const {
-}
+void TargetLoweringObjectFile::emitPersonalityValue(
+    MCStreamer &Streamer, const DataLayout &, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {}
 
 void TargetLoweringObjectFile::emitCGProfileMetadata(MCStreamer &Streamer,
                                                      Module &M) const {
diff --git a/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll b/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
new file mode 100644
index 00000000000000..d4ee49d9aeeabf
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
@@ -0,0 +1,39 @@
+; RUN: llc -mtriple=aarch64-linux -filetype=asm %s -o - | FileCheck %s
+; RUN: llc -mtriple=aarch64-linux -filetype=obj %s -o - | \
+; RUN:   llvm-readelf -r -x .data.DW.ref.__gxx_personality_v0 - | \
+; RUN:   FileCheck --check-prefix=RELOC %s
+
+@_ZTISt9exception = external constant ptr
+
+define i32 @main() personality ptr @__gxx_personality_v0 {
+entry:
+  invoke void @foo() to label %cont unwind label %lpad
+
+lpad:
+  %0 = landingpad { ptr, i32 }
+    catch ptr null
+    catch ptr @_ZTISt9exception
+  ret i32 0
+
+cont:
+  ret i32 0
+}
+
+declare i32 @__gxx_personality_v0(...)
+
+declare void @foo()
+
+!llvm.module.flags = !{!0}
+!0 = !{i32 8, !"ptrauth-sign-personality", i32 1}
+
+; CHECK:      DW.ref.__gxx_personality_v0:
+; CHECK-NEXT:     .xword  __gxx_personality_v0@AUTH(ia,32429,addr)
+
+; RELOC:      Relocation section '.rela.data.DW.ref.__gxx_personality_v0' at offset 0x2a0 contains 1 entries:
+; RELOC-NEXT:     Offset             Info             Type               Symbol's Value  Symbol's Name + Addend
+; RELOC-NEXT: 0000000000000000  0000000f00000244 R_AARCH64_AUTH_ABS64   0000000000000000 __gxx_personality_v0 + 0
+
+; RELOC:      Hex dump of section '.data.DW.ref.__gxx_personality_v0':
+; RELOC-NEXT: 0x00000000 00000000 ad7e0080
+;                                 ^^^^ 0x7EAD = discriminator
+;                                       ^^ 0b10000000: bit 63 = 1 -> address diversity enabled, bits 61:60 = 0b00 -> key is IA

@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2024

@llvm/pr-subscribers-clang

Author: Daniil Kovalev (kovdan01)

Changes

If function pointer signing is enabled, sign personality function pointer stored in .DW.ref.__gxx_personality_v0 section with IA key, 0x7EAD = ptrauth_string_discriminator("personality") constant discriminator and address diversity enabled.


Full diff: https://github.com/llvm/llvm-project/pull/113148.diff

14 Files Affected:

  • (modified) clang/lib/CodeGen/CodeGenModule.cpp (+3)
  • (added) clang/test/CodeGen/ptrauth-module-flags.c (+8)
  • (modified) llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h (+7-1)
  • (modified) llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h (+7-1)
  • (modified) llvm/include/llvm/Target/TargetLoweringObjectFile.h (+2-1)
  • (modified) llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (+2-1)
  • (modified) llvm/lib/CodeGen/MachineModuleInfoImpls.cpp (+12)
  • (modified) llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (+9-1)
  • (modified) llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp (+16)
  • (modified) llvm/lib/Target/AArch64/AArch64TargetObjectFile.h (+4)
  • (modified) llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp (+10)
  • (modified) llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h (+7)
  • (modified) llvm/lib/Target/TargetLoweringObjectFile.cpp (+3-4)
  • (added) llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll (+39)
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 24655b809b2eff..261d8c46822b73 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1218,6 +1218,9 @@ void CodeGenModule::Release() {
                                 "sign-return-address-with-bkey", 1);
 
     if (getTriple().isOSLinux()) {
+      if (LangOpts.PointerAuthCalls)
+        getModule().addModuleFlag(llvm::Module::Min, "ptrauth-sign-personality",
+                                  1);
       assert(getTriple().isOSBinFormatELF());
       using namespace llvm::ELF;
       uint64_t PAuthABIVersion =
diff --git a/clang/test/CodeGen/ptrauth-module-flags.c b/clang/test/CodeGen/ptrauth-module-flags.c
new file mode 100644
index 00000000000000..150e5bf59fb05e
--- /dev/null
+++ b/clang/test/CodeGen/ptrauth-module-flags.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple aarch64-linux-gnu                   -emit-llvm %s  -o - | FileCheck %s --check-prefix=OFF
+// RUN: %clang_cc1 -triple aarch64-linux-gnu -fptrauth-calls   -emit-llvm %s  -o - | FileCheck %s --check-prefix=PERSONALITY
+
+// PERSONALITY:      !llvm.module.flags = !{
+// PERSONALITY-SAME: !1
+// PERSONALITY:      !1 = !{i32 8, !"ptrauth-sign-personality", i32 1}
+
+// OFF-NOT: "ptrauth-
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h b/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
index c1ae3d2d966df5..f7a028625ee3c8 100644
--- a/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
+++ b/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
@@ -83,10 +83,14 @@ class MachineModuleInfoELF : public MachineModuleInfoImpl {
   /// extern_weak symbols.
   DenseMap<MCSymbol *, const MCExpr *> AuthPtrStubs;
 
+  /// HasSignedPersonality is true if the corresponding IR module has the
+  /// "ptrauth-sign-personality" flag set to 1.
+  bool HasSignedPersonality = false;
+
   virtual void anchor(); // Out of line virtual method.
 
 public:
-  MachineModuleInfoELF(const MachineModuleInfo &) {}
+  MachineModuleInfoELF(const MachineModuleInfo &);
 
   StubValueTy &getGVStubEntry(MCSymbol *Sym) {
     assert(Sym && "Key cannot be null");
@@ -105,6 +109,8 @@ class MachineModuleInfoELF : public MachineModuleInfoImpl {
   ExprStubListTy getAuthGVStubList() {
     return getSortedExprStubs(AuthPtrStubs);
   }
+
+  bool hasSignedPersonality() const { return HasSignedPersonality; }
 };
 
 /// MachineModuleInfoCOFF - This is a MachineModuleInfoImpl implementation
diff --git a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
index 8eef45ce565deb..a2a9e5d499e527 100644
--- a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+++ b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
@@ -52,7 +52,13 @@ class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
   void emitModuleMetadata(MCStreamer &Streamer, Module &M) const override;
 
   void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &DL,
-                            const MCSymbol *Sym) const override;
+                            const MCSymbol *Sym,
+                            const MachineModuleInfo *MMI) const override;
+
+  virtual void emitPersonalityValueImpl(MCStreamer &Streamer,
+                                        const DataLayout &DL,
+                                        const MCSymbol *Sym,
+                                        const MachineModuleInfo *MMI) const;
 
   /// Given a constant with the SectionKind, return a section that it should be
   /// placed in.
diff --git a/llvm/include/llvm/Target/TargetLoweringObjectFile.h b/llvm/include/llvm/Target/TargetLoweringObjectFile.h
index 0c09cfe684783b..4864ba843f4886 100644
--- a/llvm/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/llvm/include/llvm/Target/TargetLoweringObjectFile.h
@@ -82,7 +82,8 @@ class TargetLoweringObjectFile : public MCObjectFileInfo {
   virtual void Initialize(MCContext &ctx, const TargetMachine &TM);
 
   virtual void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &TM,
-                                    const MCSymbol *Sym) const;
+                                    const MCSymbol *Sym,
+                                    const MachineModuleInfo *MMI) const;
 
   /// Emit the module-level metadata that the platform cares about.
   virtual void emitModuleMetadata(MCStreamer &Streamer, Module &M) const {}
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index 087ee02a7f2b35..4fac4bbc98477d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -50,7 +50,8 @@ void DwarfCFIException::endModule() {
   // Emit indirect reference table for all used personality functions
   for (const GlobalValue *Personality : Personalities) {
     MCSymbol *Sym = Asm->getSymbol(Personality);
-    TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym);
+    TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym,
+                              Asm->MMI);
   }
   Personalities.clear();
 }
diff --git a/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp b/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
index 956317510dc736..0d8c30883d6dcf 100644
--- a/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
@@ -14,6 +14,8 @@
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/STLExtras.h"
+#include "llvm/IR/Constants.h"
+#include "llvm/IR/Module.h"
 #include "llvm/MC/MCSymbol.h"
 
 using namespace llvm;
@@ -59,3 +61,13 @@ MachineModuleInfoImpl::ExprStubListTy MachineModuleInfoImpl::getSortedExprStubs(
   ExprStubs.clear();
   return List;
 }
+
+MachineModuleInfoELF::MachineModuleInfoELF(const MachineModuleInfo &MMI) {
+  const Module *M = MMI.getModule();
+  const auto *Flag = mdconst::extract_or_null<ConstantInt>(
+      M->getModuleFlag("ptrauth-sign-personality"));
+  if (Flag && Flag->getZExtValue() == 1)
+    HasSignedPersonality = true;
+  else
+    HasSignedPersonality = false;
+}
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index ce50a3c19ffe04..d5342b5d3651f1 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -413,7 +413,8 @@ MCSymbol *TargetLoweringObjectFileELF::getCFIPersonalitySymbol(
 }
 
 void TargetLoweringObjectFileELF::emitPersonalityValue(
-    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym) const {
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
   SmallString<64> NameData("DW.ref.");
   NameData += Sym->getName();
   MCSymbolELF *Label =
@@ -431,6 +432,13 @@ void TargetLoweringObjectFileELF::emitPersonalityValue(
   Streamer.emitELFSize(Label, E);
   Streamer.emitLabel(Label);
 
+  emitPersonalityValueImpl(Streamer, DL, Sym, MMI);
+}
+
+void TargetLoweringObjectFileELF::emitPersonalityValueImpl(
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
+  unsigned Size = DL.getPointerSize();
   Streamer.emitSymbolValue(Sym, Size);
 }
 
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
index d916f644de9b50..69c884fb320aa6 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
@@ -9,6 +9,7 @@
 #include "AArch64TargetObjectFile.h"
 #include "AArch64TargetMachine.h"
 #include "MCTargetDesc/AArch64MCExpr.h"
+#include "MCTargetDesc/AArch64TargetStreamer.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/BinaryFormat/Dwarf.h"
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
@@ -29,6 +30,21 @@ void AArch64_ELFTargetObjectFile::Initialize(MCContext &Ctx,
   SupportDebugThreadLocalLocation = false;
 }
 
+void AArch64_ELFTargetObjectFile::emitPersonalityValueImpl(
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
+  if (!MMI->getObjFileInfo<MachineModuleInfoELF>().hasSignedPersonality()) {
+    TargetLoweringObjectFileELF::emitPersonalityValueImpl(Streamer, DL, Sym,
+                                                          MMI);
+    return;
+  }
+  auto *TS = static_cast<AArch64TargetStreamer *>(Streamer.getTargetStreamer());
+  // The value is ptrauth_string_discriminator("personality")
+  constexpr uint16_t Discriminator = 0x7EAD;
+  TS->emitAuthValue(MCSymbolRefExpr::create(Sym, getContext()), Discriminator,
+                    AArch64PACKey::IA, true, getContext());
+}
+
 const MCExpr *AArch64_ELFTargetObjectFile::getIndirectSymViaGOTPCRel(
     const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV,
     int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const {
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
index 2ef8bda2988d47..0c822ac84f200c 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
@@ -35,6 +35,10 @@ class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
                                  MachineModuleInfo *MMI, const MCSymbol *RawSym,
                                  AArch64PACKey::ID Key,
                                  uint16_t Discriminator) const;
+
+  void emitPersonalityValueImpl(MCStreamer &Streamer, const DataLayout &DL,
+                                const MCSymbol *Sym,
+                                const MachineModuleInfo *MMI) const override;
 };
 
 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
index dc5383ce941ed9..c453cd6f768c3d 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
@@ -35,6 +35,16 @@ AArch64TargetStreamer::AArch64TargetStreamer(MCStreamer &S)
 
 AArch64TargetStreamer::~AArch64TargetStreamer() = default;
 
+void AArch64TargetStreamer::emitAuthValue(const MCExpr *Expr,
+                                          uint16_t Discriminator,
+                                          AArch64PACKey::ID Key,
+                                          bool HasAddressDiversity,
+                                          MCContext &Ctx) {
+  Streamer.emitValueImpl(AArch64AuthMCExpr::create(Expr, Discriminator, Key,
+                                                   HasAddressDiversity, Ctx),
+                         8);
+}
+
 // The constant pool handling is shared by all AArch64TargetStreamer
 // implementations.
 const MCExpr *AArch64TargetStreamer::addConstantPoolEntry(const MCExpr *Expr,
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
index ac441ae3b603ff..e6d448e45d45d3 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
 
+#include "AArch64MCExpr.h"
 #include "llvm/MC/MCStreamer.h"
 
 namespace {
@@ -38,6 +39,12 @@ class AArch64TargetStreamer : public MCTargetStreamer {
   void emitNoteSection(unsigned Flags, uint64_t PAuthABIPlatform = -1,
                        uint64_t PAuthABIVersion = -1);
 
+  /// Callback used to emit AUTH expressions (e.g. signed
+  /// personality function pointer).
+  void emitAuthValue(const MCExpr *Expr, uint16_t Discriminator,
+                     AArch64PACKey::ID Key, bool HasAddressDiversity,
+                     MCContext &Ctx);
+
   /// Callback used to implement the .inst directive.
   virtual void emitInst(uint32_t Inst);
 
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 7d9b926f4c42b6..4fe9d13d062265 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -141,10 +141,9 @@ MCSymbol *TargetLoweringObjectFile::getCFIPersonalitySymbol(
   return TM.getSymbol(GV);
 }
 
-void TargetLoweringObjectFile::emitPersonalityValue(MCStreamer &Streamer,
-                                                    const DataLayout &,
-                                                    const MCSymbol *Sym) const {
-}
+void TargetLoweringObjectFile::emitPersonalityValue(
+    MCStreamer &Streamer, const DataLayout &, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {}
 
 void TargetLoweringObjectFile::emitCGProfileMetadata(MCStreamer &Streamer,
                                                      Module &M) const {
diff --git a/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll b/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
new file mode 100644
index 00000000000000..d4ee49d9aeeabf
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
@@ -0,0 +1,39 @@
+; RUN: llc -mtriple=aarch64-linux -filetype=asm %s -o - | FileCheck %s
+; RUN: llc -mtriple=aarch64-linux -filetype=obj %s -o - | \
+; RUN:   llvm-readelf -r -x .data.DW.ref.__gxx_personality_v0 - | \
+; RUN:   FileCheck --check-prefix=RELOC %s
+
+@_ZTISt9exception = external constant ptr
+
+define i32 @main() personality ptr @__gxx_personality_v0 {
+entry:
+  invoke void @foo() to label %cont unwind label %lpad
+
+lpad:
+  %0 = landingpad { ptr, i32 }
+    catch ptr null
+    catch ptr @_ZTISt9exception
+  ret i32 0
+
+cont:
+  ret i32 0
+}
+
+declare i32 @__gxx_personality_v0(...)
+
+declare void @foo()
+
+!llvm.module.flags = !{!0}
+!0 = !{i32 8, !"ptrauth-sign-personality", i32 1}
+
+; CHECK:      DW.ref.__gxx_personality_v0:
+; CHECK-NEXT:     .xword  __gxx_personality_v0@AUTH(ia,32429,addr)
+
+; RELOC:      Relocation section '.rela.data.DW.ref.__gxx_personality_v0' at offset 0x2a0 contains 1 entries:
+; RELOC-NEXT:     Offset             Info             Type               Symbol's Value  Symbol's Name + Addend
+; RELOC-NEXT: 0000000000000000  0000000f00000244 R_AARCH64_AUTH_ABS64   0000000000000000 __gxx_personality_v0 + 0
+
+; RELOC:      Hex dump of section '.data.DW.ref.__gxx_personality_v0':
+; RELOC-NEXT: 0x00000000 00000000 ad7e0080
+;                                 ^^^^ 0x7EAD = discriminator
+;                                       ^^ 0b10000000: bit 63 = 1 -> address diversity enabled, bits 61:60 = 0b00 -> key is IA

@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2024

@llvm/pr-subscribers-debuginfo

Author: Daniil Kovalev (kovdan01)

Changes

If function pointer signing is enabled, sign personality function pointer stored in .DW.ref.__gxx_personality_v0 section with IA key, 0x7EAD = ptrauth_string_discriminator("personality") constant discriminator and address diversity enabled.


Full diff: https://github.com/llvm/llvm-project/pull/113148.diff

14 Files Affected:

  • (modified) clang/lib/CodeGen/CodeGenModule.cpp (+3)
  • (added) clang/test/CodeGen/ptrauth-module-flags.c (+8)
  • (modified) llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h (+7-1)
  • (modified) llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h (+7-1)
  • (modified) llvm/include/llvm/Target/TargetLoweringObjectFile.h (+2-1)
  • (modified) llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (+2-1)
  • (modified) llvm/lib/CodeGen/MachineModuleInfoImpls.cpp (+12)
  • (modified) llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (+9-1)
  • (modified) llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp (+16)
  • (modified) llvm/lib/Target/AArch64/AArch64TargetObjectFile.h (+4)
  • (modified) llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp (+10)
  • (modified) llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h (+7)
  • (modified) llvm/lib/Target/TargetLoweringObjectFile.cpp (+3-4)
  • (added) llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll (+39)
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 24655b809b2eff..261d8c46822b73 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1218,6 +1218,9 @@ void CodeGenModule::Release() {
                                 "sign-return-address-with-bkey", 1);
 
     if (getTriple().isOSLinux()) {
+      if (LangOpts.PointerAuthCalls)
+        getModule().addModuleFlag(llvm::Module::Min, "ptrauth-sign-personality",
+                                  1);
       assert(getTriple().isOSBinFormatELF());
       using namespace llvm::ELF;
       uint64_t PAuthABIVersion =
diff --git a/clang/test/CodeGen/ptrauth-module-flags.c b/clang/test/CodeGen/ptrauth-module-flags.c
new file mode 100644
index 00000000000000..150e5bf59fb05e
--- /dev/null
+++ b/clang/test/CodeGen/ptrauth-module-flags.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple aarch64-linux-gnu                   -emit-llvm %s  -o - | FileCheck %s --check-prefix=OFF
+// RUN: %clang_cc1 -triple aarch64-linux-gnu -fptrauth-calls   -emit-llvm %s  -o - | FileCheck %s --check-prefix=PERSONALITY
+
+// PERSONALITY:      !llvm.module.flags = !{
+// PERSONALITY-SAME: !1
+// PERSONALITY:      !1 = !{i32 8, !"ptrauth-sign-personality", i32 1}
+
+// OFF-NOT: "ptrauth-
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h b/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
index c1ae3d2d966df5..f7a028625ee3c8 100644
--- a/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
+++ b/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h
@@ -83,10 +83,14 @@ class MachineModuleInfoELF : public MachineModuleInfoImpl {
   /// extern_weak symbols.
   DenseMap<MCSymbol *, const MCExpr *> AuthPtrStubs;
 
+  /// HasSignedPersonality is true if the corresponding IR module has the
+  /// "ptrauth-sign-personality" flag set to 1.
+  bool HasSignedPersonality = false;
+
   virtual void anchor(); // Out of line virtual method.
 
 public:
-  MachineModuleInfoELF(const MachineModuleInfo &) {}
+  MachineModuleInfoELF(const MachineModuleInfo &);
 
   StubValueTy &getGVStubEntry(MCSymbol *Sym) {
     assert(Sym && "Key cannot be null");
@@ -105,6 +109,8 @@ class MachineModuleInfoELF : public MachineModuleInfoImpl {
   ExprStubListTy getAuthGVStubList() {
     return getSortedExprStubs(AuthPtrStubs);
   }
+
+  bool hasSignedPersonality() const { return HasSignedPersonality; }
 };
 
 /// MachineModuleInfoCOFF - This is a MachineModuleInfoImpl implementation
diff --git a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
index 8eef45ce565deb..a2a9e5d499e527 100644
--- a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+++ b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
@@ -52,7 +52,13 @@ class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
   void emitModuleMetadata(MCStreamer &Streamer, Module &M) const override;
 
   void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &DL,
-                            const MCSymbol *Sym) const override;
+                            const MCSymbol *Sym,
+                            const MachineModuleInfo *MMI) const override;
+
+  virtual void emitPersonalityValueImpl(MCStreamer &Streamer,
+                                        const DataLayout &DL,
+                                        const MCSymbol *Sym,
+                                        const MachineModuleInfo *MMI) const;
 
   /// Given a constant with the SectionKind, return a section that it should be
   /// placed in.
diff --git a/llvm/include/llvm/Target/TargetLoweringObjectFile.h b/llvm/include/llvm/Target/TargetLoweringObjectFile.h
index 0c09cfe684783b..4864ba843f4886 100644
--- a/llvm/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/llvm/include/llvm/Target/TargetLoweringObjectFile.h
@@ -82,7 +82,8 @@ class TargetLoweringObjectFile : public MCObjectFileInfo {
   virtual void Initialize(MCContext &ctx, const TargetMachine &TM);
 
   virtual void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &TM,
-                                    const MCSymbol *Sym) const;
+                                    const MCSymbol *Sym,
+                                    const MachineModuleInfo *MMI) const;
 
   /// Emit the module-level metadata that the platform cares about.
   virtual void emitModuleMetadata(MCStreamer &Streamer, Module &M) const {}
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index 087ee02a7f2b35..4fac4bbc98477d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -50,7 +50,8 @@ void DwarfCFIException::endModule() {
   // Emit indirect reference table for all used personality functions
   for (const GlobalValue *Personality : Personalities) {
     MCSymbol *Sym = Asm->getSymbol(Personality);
-    TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym);
+    TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym,
+                              Asm->MMI);
   }
   Personalities.clear();
 }
diff --git a/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp b/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
index 956317510dc736..0d8c30883d6dcf 100644
--- a/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
@@ -14,6 +14,8 @@
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/STLExtras.h"
+#include "llvm/IR/Constants.h"
+#include "llvm/IR/Module.h"
 #include "llvm/MC/MCSymbol.h"
 
 using namespace llvm;
@@ -59,3 +61,13 @@ MachineModuleInfoImpl::ExprStubListTy MachineModuleInfoImpl::getSortedExprStubs(
   ExprStubs.clear();
   return List;
 }
+
+MachineModuleInfoELF::MachineModuleInfoELF(const MachineModuleInfo &MMI) {
+  const Module *M = MMI.getModule();
+  const auto *Flag = mdconst::extract_or_null<ConstantInt>(
+      M->getModuleFlag("ptrauth-sign-personality"));
+  if (Flag && Flag->getZExtValue() == 1)
+    HasSignedPersonality = true;
+  else
+    HasSignedPersonality = false;
+}
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index ce50a3c19ffe04..d5342b5d3651f1 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -413,7 +413,8 @@ MCSymbol *TargetLoweringObjectFileELF::getCFIPersonalitySymbol(
 }
 
 void TargetLoweringObjectFileELF::emitPersonalityValue(
-    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym) const {
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
   SmallString<64> NameData("DW.ref.");
   NameData += Sym->getName();
   MCSymbolELF *Label =
@@ -431,6 +432,13 @@ void TargetLoweringObjectFileELF::emitPersonalityValue(
   Streamer.emitELFSize(Label, E);
   Streamer.emitLabel(Label);
 
+  emitPersonalityValueImpl(Streamer, DL, Sym, MMI);
+}
+
+void TargetLoweringObjectFileELF::emitPersonalityValueImpl(
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
+  unsigned Size = DL.getPointerSize();
   Streamer.emitSymbolValue(Sym, Size);
 }
 
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
index d916f644de9b50..69c884fb320aa6 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
@@ -9,6 +9,7 @@
 #include "AArch64TargetObjectFile.h"
 #include "AArch64TargetMachine.h"
 #include "MCTargetDesc/AArch64MCExpr.h"
+#include "MCTargetDesc/AArch64TargetStreamer.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/BinaryFormat/Dwarf.h"
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
@@ -29,6 +30,21 @@ void AArch64_ELFTargetObjectFile::Initialize(MCContext &Ctx,
   SupportDebugThreadLocalLocation = false;
 }
 
+void AArch64_ELFTargetObjectFile::emitPersonalityValueImpl(
+    MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {
+  if (!MMI->getObjFileInfo<MachineModuleInfoELF>().hasSignedPersonality()) {
+    TargetLoweringObjectFileELF::emitPersonalityValueImpl(Streamer, DL, Sym,
+                                                          MMI);
+    return;
+  }
+  auto *TS = static_cast<AArch64TargetStreamer *>(Streamer.getTargetStreamer());
+  // The value is ptrauth_string_discriminator("personality")
+  constexpr uint16_t Discriminator = 0x7EAD;
+  TS->emitAuthValue(MCSymbolRefExpr::create(Sym, getContext()), Discriminator,
+                    AArch64PACKey::IA, true, getContext());
+}
+
 const MCExpr *AArch64_ELFTargetObjectFile::getIndirectSymViaGOTPCRel(
     const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV,
     int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const {
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
index 2ef8bda2988d47..0c822ac84f200c 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
@@ -35,6 +35,10 @@ class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
                                  MachineModuleInfo *MMI, const MCSymbol *RawSym,
                                  AArch64PACKey::ID Key,
                                  uint16_t Discriminator) const;
+
+  void emitPersonalityValueImpl(MCStreamer &Streamer, const DataLayout &DL,
+                                const MCSymbol *Sym,
+                                const MachineModuleInfo *MMI) const override;
 };
 
 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
index dc5383ce941ed9..c453cd6f768c3d 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
@@ -35,6 +35,16 @@ AArch64TargetStreamer::AArch64TargetStreamer(MCStreamer &S)
 
 AArch64TargetStreamer::~AArch64TargetStreamer() = default;
 
+void AArch64TargetStreamer::emitAuthValue(const MCExpr *Expr,
+                                          uint16_t Discriminator,
+                                          AArch64PACKey::ID Key,
+                                          bool HasAddressDiversity,
+                                          MCContext &Ctx) {
+  Streamer.emitValueImpl(AArch64AuthMCExpr::create(Expr, Discriminator, Key,
+                                                   HasAddressDiversity, Ctx),
+                         8);
+}
+
 // The constant pool handling is shared by all AArch64TargetStreamer
 // implementations.
 const MCExpr *AArch64TargetStreamer::addConstantPoolEntry(const MCExpr *Expr,
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
index ac441ae3b603ff..e6d448e45d45d3 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
 
+#include "AArch64MCExpr.h"
 #include "llvm/MC/MCStreamer.h"
 
 namespace {
@@ -38,6 +39,12 @@ class AArch64TargetStreamer : public MCTargetStreamer {
   void emitNoteSection(unsigned Flags, uint64_t PAuthABIPlatform = -1,
                        uint64_t PAuthABIVersion = -1);
 
+  /// Callback used to emit AUTH expressions (e.g. signed
+  /// personality function pointer).
+  void emitAuthValue(const MCExpr *Expr, uint16_t Discriminator,
+                     AArch64PACKey::ID Key, bool HasAddressDiversity,
+                     MCContext &Ctx);
+
   /// Callback used to implement the .inst directive.
   virtual void emitInst(uint32_t Inst);
 
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 7d9b926f4c42b6..4fe9d13d062265 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -141,10 +141,9 @@ MCSymbol *TargetLoweringObjectFile::getCFIPersonalitySymbol(
   return TM.getSymbol(GV);
 }
 
-void TargetLoweringObjectFile::emitPersonalityValue(MCStreamer &Streamer,
-                                                    const DataLayout &,
-                                                    const MCSymbol *Sym) const {
-}
+void TargetLoweringObjectFile::emitPersonalityValue(
+    MCStreamer &Streamer, const DataLayout &, const MCSymbol *Sym,
+    const MachineModuleInfo *MMI) const {}
 
 void TargetLoweringObjectFile::emitCGProfileMetadata(MCStreamer &Streamer,
                                                      Module &M) const {
diff --git a/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll b/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
new file mode 100644
index 00000000000000..d4ee49d9aeeabf
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
@@ -0,0 +1,39 @@
+; RUN: llc -mtriple=aarch64-linux -filetype=asm %s -o - | FileCheck %s
+; RUN: llc -mtriple=aarch64-linux -filetype=obj %s -o - | \
+; RUN:   llvm-readelf -r -x .data.DW.ref.__gxx_personality_v0 - | \
+; RUN:   FileCheck --check-prefix=RELOC %s
+
+@_ZTISt9exception = external constant ptr
+
+define i32 @main() personality ptr @__gxx_personality_v0 {
+entry:
+  invoke void @foo() to label %cont unwind label %lpad
+
+lpad:
+  %0 = landingpad { ptr, i32 }
+    catch ptr null
+    catch ptr @_ZTISt9exception
+  ret i32 0
+
+cont:
+  ret i32 0
+}
+
+declare i32 @__gxx_personality_v0(...)
+
+declare void @foo()
+
+!llvm.module.flags = !{!0}
+!0 = !{i32 8, !"ptrauth-sign-personality", i32 1}
+
+; CHECK:      DW.ref.__gxx_personality_v0:
+; CHECK-NEXT:     .xword  __gxx_personality_v0@AUTH(ia,32429,addr)
+
+; RELOC:      Relocation section '.rela.data.DW.ref.__gxx_personality_v0' at offset 0x2a0 contains 1 entries:
+; RELOC-NEXT:     Offset             Info             Type               Symbol's Value  Symbol's Name + Addend
+; RELOC-NEXT: 0000000000000000  0000000f00000244 R_AARCH64_AUTH_ABS64   0000000000000000 __gxx_personality_v0 + 0
+
+; RELOC:      Hex dump of section '.data.DW.ref.__gxx_personality_v0':
+; RELOC-NEXT: 0x00000000 00000000 ad7e0080
+;                                 ^^^^ 0x7EAD = discriminator
+;                                       ^^ 0b10000000: bit 63 = 1 -> address diversity enabled, bits 61:60 = 0b00 -> key is IA

@kovdan01 kovdan01 self-assigned this Oct 25, 2024
@kovdan01
Copy link
Contributor Author

Would be glad to see everyone's feedback on the changes.

1 similar comment
@kovdan01
Copy link
Contributor Author

kovdan01 commented Nov 9, 2024

Would be glad to see everyone's feedback on the changes.

@kovdan01
Copy link
Contributor Author

Would be glad to see everyone's feedback on the changes.

If function pointer signing is enabled, sign personality function pointer
stored in `.DW.ref.__gxx_personality_v0` section with IA key,
0x7EAD = `ptrauth_string_discriminator("personality")` constant discriminator
and address diversity enabled.
@kovdan01
Copy link
Contributor Author

Would be glad to see everyone's feedback on the changes.

void AArch64_ELFTargetObjectFile::emitPersonalityValueImpl(
MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
const MachineModuleInfo *MMI) const {
if (!MMI->getObjFileInfo<MachineModuleInfoELF>().hasSignedPersonality()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a subclass of MachineModuleInfoELF similar to AMDGPUMachineModuleInfo, then move HasSignedpersonality there. Here you can use a static_cast.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a subclass of MachineModuleInfoELF similar to AMDGPUMachineModuleInfo, then move HasSignedpersonality there. Here you can use a static_cast.

Thanks for suggestion, please let me know if b4ca8b1 resolves your comment

AArch64PACKey::ID Key,
bool HasAddressDiversity,
MCContext &Ctx) {
Streamer.emitValueImpl(AArch64AuthMCExpr::create(Expr, Discriminator, Key,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Streamer.getContext() and remove Ctx parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in bb04654, thanks for suggestion

@kovdan01
Copy link
Contributor Author

kovdan01 commented Dec 8, 2024

@MaskRay Please let me know if latest changes fix your previous comments and if this could be merged.

@kovdan01 kovdan01 merged commit 4fb1cda into llvm:main Dec 10, 2024
8 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
20.832 [8/6/40] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-state.cpp.o
21.468 [5/8/41] Linking C shared library openmp/runtime/src/libomp.so
21.489 [4/8/42] Generating python-module/ompd/__init__.py
21.635 [4/7/43] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdAPITests.c.o
21.953 [4/6/44] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdModule.c.o
22.040 [3/6/45] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
22.167 [3/5/46] Linking C shared module openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
22.504 [3/4/47] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o
22.944 [3/3/48] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o
23.192 [2/3/49] Linking CXX shared library openmp/libompd/src/libompd.so
FAILED: openmp/libompd/src/libompd.so 
: && /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -fcolor-diagnostics -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -fno-semantic-interposition -fdata-sections -std=c++11 -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,libompd.so -o openmp/libompd/src/libompd.so openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-state.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o   && :
/usr/bin/ld: openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o: unrecognized relocation type 0x244 in section `.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]'
/usr/bin/ld: is this version of the linker - (GNU Binutils for Ubuntu) 2.38 - out of date ?
/usr/bin/ld: final link failed: bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
23.866 [2/2/50] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
23.932 [2/1/51] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/runtimes/runtimes-bins && /usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-dylib running on linaro-flang-aarch64-dylib while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
12.474 [5/9/40] Generating python-module/ompd/__init__.py
12.483 [5/8/41] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o
12.840 [4/8/42] Linking C shared library openmp/runtime/src/libomp.so
12.909 [4/7/43] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
13.159 [4/6/44] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdAPITests.c.o
13.446 [4/5/45] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdModule.c.o
13.598 [3/5/46] Linking C shared module openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
14.196 [3/4/47] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o
14.699 [3/3/48] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o
14.971 [2/3/49] Linking CXX shared library openmp/libompd/src/libompd.so
FAILED: openmp/libompd/src/libompd.so 
: && /home/tcwg-buildbot/worker/flang-aarch64-dylib/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -fcolor-diagnostics -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -fno-semantic-interposition -fdata-sections -std=c++11 -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,libompd.so -o openmp/libompd/src/libompd.so openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-state.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o   && :
/usr/bin/ld: openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o: unrecognized relocation type 0x244 in section `.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]'
/usr/bin/ld: is this version of the linker - (GNU Binutils for Ubuntu) 2.38 - out of date ?
/usr/bin/ld: final link failed: bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
16.049 [2/2/50] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
16.109 [2/1/51] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-dylib/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/tcwg-buildbot/worker/flang-aarch64-dylib/build/runtimes/runtimes-bins && /usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-release running on linaro-flang-aarch64-release while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
8.013 [5/10/39] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-state.cpp.o
8.047 [5/9/40] Generating python-module/ompd/__init__.py
8.157 [5/8/41] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o
8.302 [4/8/42] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdAPITests.c.o
8.697 [4/7/43] Linking C shared library openmp/runtime/src/libomp.so
8.792 [4/6/44] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o
8.843 [4/5/45] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
9.133 [4/4/46] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o
9.163 [3/4/47] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdModule.c.o
9.244 [2/4/48] Linking CXX shared library openmp/libompd/src/libompd.so
FAILED: openmp/libompd/src/libompd.so 
: && /home/tcwg-buildbot/worker/flang-aarch64-release/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -fcolor-diagnostics -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -fno-semantic-interposition -fdata-sections -std=c++11 -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,libompd.so -o openmp/libompd/src/libompd.so openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-state.cpp.o openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o   && :
/usr/bin/ld: openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o: unrecognized relocation type 0x244 in section `.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]'
/usr/bin/ld: is this version of the linker - (GNU Binutils for Ubuntu) 2.38 - out of date ?
/usr/bin/ld: final link failed: bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
9.316 [2/3/49] Linking C shared module openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
9.840 [2/2/50] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
10.092 [2/1/51] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-release/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/tcwg-buildbot/worker/flang-aarch64-release/build/runtimes/runtimes-bins && /usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder lldb-aarch64-ubuntu running on linaro-lldb-aarch64-ubuntu while building clang,llvm at step 6 "test".

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

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
UNSUPPORTED: lldb-api :: api/multiple-targets/TestMultipleTargets.py (5 of 2060)
UNSUPPORTED: lldb-api :: arm/breakpoint-it/TestBreakpointIt.py (6 of 2060)
UNSUPPORTED: lldb-api :: arm/breakpoint-thumb-codesection/TestBreakpointThumbCodesection.py (7 of 2060)
PASS: lldb-api :: assert_messages_test/TestAssertMessages.py (8 of 2060)
PASS: lldb-api :: arm/emulation/TestEmulations.py (9 of 2060)
UNSUPPORTED: lldb-api :: commands/add-dsym/uuid/TestAddDsymCommand.py (10 of 2060)
PASS: lldb-api :: commands/apropos/basic/TestApropos.py (11 of 2060)
PASS: lldb-api :: clear-sbvalue-nonaddressable-bits/TestClearSBValueNonAddressableBits.py (12 of 2060)
PASS: lldb-api :: commands/breakpoint/command/list/TestBreakpointCommandList.py (13 of 2060)
UNRESOLVED: lldb-api :: api/command-return-object/TestSBCommandReturnObject.py (14 of 2060)
******************** TEST 'lldb-api :: api/command-return-object/TestSBCommandReturnObject.py' FAILED ********************
Script:
--
/usr/bin/python3.10 /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin --arch aarch64 --build-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/lldb --compiler /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/clang --dsymutil /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/dsymutil --make /usr/bin/make --llvm-tools-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin --lldb-obj-root /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb --lldb-libs-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object -p TestSBCommandReturnObject.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision 4fb1cda6606ba75782aa1964835abf1a69e2adae)
  clang revision 4fb1cda6606ba75782aa1964835abf1a69e2adae
  llvm revision 4fb1cda6606ba75782aa1964835abf1a69e2adae
Skipping the following test categories: ['libc++', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang-aarch64) :: test_sb_command_return_object (TestSBCommandReturnObject.TestSBCommandReturnObject)
======================================================================
ERROR: test_sb_command_return_object (TestSBCommandReturnObject.TestSBCommandReturnObject)
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/make VPATH=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object -C /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject.test_sb_command_return_object -I /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object -I /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object/Makefile all ARCH=aarch64 CC=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang CC_TYPE=clang CXX=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang++ LLVM_AR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/llvm-ar AR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/llvm-ar OBJCOPY=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/llvm-objcopy STRIP=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/llvm-strip ARCHIVER=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/llvm-ar DWP=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api LLDB_OBJ_ROOT=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb CXX_SOURCES=main.cpp EXE=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject.test_sb_command_return_object/command-return-object 'CFLAGS_EXTRAS=-std=c++11  -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/include ' 'LD_EXTRAS=-L/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib -llldb -Wl,-rpath,/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib' OS=Linux HOST_OS=Linux

Build Command Output:
make: Entering directory '/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject.test_sb_command_return_object'
/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang++  -std=c++11 -g -O0   -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info  -std=c++11  -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/include     --driver-mode=g++ -MT main.o -MD -MP -MF main.d -c -o main.o /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object/main.cpp
/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang main.o -g -O0   -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info  -std=c++11  -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/include  -L/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib -llldb -Wl,-rpath,/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib   --driver-mode=g++ -o "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject.test_sb_command_return_object/command-return-object"
/usr/bin/ld: main.o: unrecognized relocation type 0x244 in section `.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]'
/usr/bin/ld: is this version of the linker - (GNU Binutils for Ubuntu) 2.38 - out of date ?
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.rules:522: /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject.test_sb_command_return_object/command-return-object] Error 1
make: Leaving directory '/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject.test_sb_command_return_object'

Test Directory:
/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/command-return-object

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-5 while building clang,llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/llc -mtriple=aarch64-linux -filetype=asm /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/llc -mtriple=aarch64-linux -filetype=asm /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
�[0;1;32m              ^
�[0m�[1m<stdin>:68:29: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mDW.ref.__gxx_personality_v0:
�[0;1;32m                            ^
�[0m�[1m<stdin>:69:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m .xword __gxx_personality_v0
�[0;1;32m ^
�[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46m .text �[0m
�[0;1;30m           2: �[0m�[1m�[0;1;46m .file "ptrauth-sign-personality.ll" �[0m
�[0;1;30m           3: �[0m�[1m�[0;1;46m .globl main // -- Begin function main �[0m
�[0;1;30m           4: �[0m�[1m�[0;1;46m .p2align 2 �[0m
�[0;1;30m           5: �[0m�[1m�[0;1;46m .type main,@function �[0m
�[0;1;30m           6: �[0m�[1m�[0;1;46mmain: // @main �[0m
�[0;1;30m           7: �[0m�[1m�[0;1;46m.Lfunc_begin0: �[0m
�[0;1;30m           8: �[0m�[1m�[0;1;46m .cfi_startproc �[0m
�[0;1;30m           9: �[0m�[1m�[0;1;46m .cfi_personality 156, DW.ref.__gxx_personality_v0 �[0m
�[0;1;30m          10: �[0m�[1m�[0;1;46m .cfi_lsda 28, .Lexception0 �[0m
�[0;1;30m          11: �[0m�[1m�[0;1;46m// %bb.0: // %entry �[0m
�[0;1;30m          12: �[0m�[1m�[0;1;46m str x30, [sp, #-16]! // 8-byte Folded Spill �[0m
�[0;1;30m          13: �[0m�[1m�[0;1;46m .cfi_def_cfa_offset 16 �[0m
�[0;1;30m          14: �[0m�[1m�[0;1;46m .cfi_offset w30, -16 �[0m
�[0;1;30m          15: �[0m�[1m�[0;1;46m.Ltmp0: �[0m
�[0;1;30m          16: �[0m�[1m�[0;1;46m bl foo �[0m
�[0;1;30m          17: �[0m�[1m�[0;1;46m.Ltmp1: �[0m
�[0;1;30m          18: �[0m�[1m�[0;1;46m.LBB0_1: // %common.ret �[0m
�[0;1;30m          19: �[0m�[1m�[0;1;46m mov w0, wzr �[0m
�[0;1;30m          20: �[0m�[1m�[0;1;46m ldr x30, [sp], #16 // 8-byte Folded Reload �[0m
�[0;1;30m          21: �[0m�[1m�[0;1;46m ret �[0m
�[0;1;30m          22: �[0m�[1m�[0;1;46m.LBB0_2: // %lpad �[0m
�[0;1;30m          23: �[0m�[1m�[0;1;46m.Ltmp2: �[0m
�[0;1;30m          24: �[0m�[1m�[0;1;46m b .LBB0_1 �[0m
�[0;1;30m          25: �[0m�[1m�[0;1;46m.Lfunc_end0: �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-debug-reverse-iteration running on linaro-flang-aarch64-debug-reverse-iteration while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
91.600 [4/10/40] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o
91.832 [4/9/41] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o
91.851 [4/8/42] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o
93.684 [4/7/43] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o
94.051 [4/6/44] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o
104.512 [4/5/45] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
104.980 [4/4/46] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o
105.532 [3/4/47] Linking C shared library openmp/runtime/src/libomp.so
112.436 [3/3/48] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
112.828 [2/3/49] Linking CXX shared library openmp/tools/archer/libarcher.so
FAILED: openmp/tools/archer/libarcher.so 
: && /home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Wall -fcolor-diagnostics -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -fno-semantic-interposition -fdata-sections -g  -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -shared -Wl,-soname,libarcher.so -o openmp/tools/archer/libarcher.so openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o  -ldl && :
ld.lld: error: openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
113.900 [2/2/50] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
118.305 [2/1/51] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/runtimes/runtimes-bins && /usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder lldb-remote-linux-ubuntu running on as-builder-9 while building clang,llvm at step 16 "test-check-lldb-api".

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

Here is the relevant piece of the build log for the reference
Step 16 (test-check-lldb-api) failure: Test just built components: check-lldb-api completed (failure)
...
-- Generating done (0.2s)
-- Build files have been written to: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins
1.068 [4/2/5] Running utility command for lldb-python
1.922 [3/1/6] Performing build step for 'runtimes-aarch64-unknown-linux-gnu'
0.333 [0/1/1] Generating /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/compile_commands.json
2.274 [2/1/7] No install step for 'runtimes-aarch64-unknown-linux-gnu'
2.307 [1/1/9] Completed 'runtimes-aarch64-unknown-linux-gnu'
2.307 [0/1/9] Running lldb api test suite
-- Testing: 1214 tests, 8 workers --
UNRESOLVED: lldb-api :: api/multithreaded/TestMultithreaded.py (1 of 1214)
******************** TEST 'lldb-api :: api/multithreaded/TestMultithreaded.py' FAILED ********************
Script:
--
/usr/bin/python3.12 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin --libcxx-include-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include/c++/v1 --libcxx-include-target-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include/aarch64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib/aarch64-unknown-linux-gnu --arch aarch64 --build-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin/lldb --compiler /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/clang --dsymutil /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin/dsymutil --make /usr/bin/make --llvm-tools-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin --lldb-obj-root /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb --lldb-libs-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib --platform-url connect://jetson-agx-2198.lab.llvm.org:1234 --platform-working-dir /home/ubuntu/lldb-tests --sysroot /mnt/fs/jetson-agx-ubuntu --env ARCH_CFLAGS=-mcpu=cortex-a78 --platform-name remote-linux /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/API/api/multithreaded -p TestMultithreaded.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision 4fb1cda6606ba75782aa1964835abf1a69e2adae)
  clang revision 4fb1cda6606ba75782aa1964835abf1a69e2adae
  llvm revision 4fb1cda6606ba75782aa1964835abf1a69e2adae
Setting up remote platform 'remote-linux'
Connecting to remote platform 'remote-linux' at 'connect://jetson-agx-2198.lab.llvm.org:1234'...
error: failed to connect to remote platform using URL 'connect://jetson-agx-2198.lab.llvm.org:1234': error: Failed to connect port

--
Command Output (stderr):
--
WARNING:root:Custom libc++ is not supported for remote runs: ignoring --libcxx arguments

--

********************
UNRESOLVED: lldb-api :: api/check_public_api_headers/TestPublicAPIHeaders.py (2 of 1214)
******************** TEST 'lldb-api :: api/check_public_api_headers/TestPublicAPIHeaders.py' FAILED ********************
Script:
--
/usr/bin/python3.12 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin --libcxx-include-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include/c++/v1 --libcxx-include-target-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include/aarch64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib/aarch64-unknown-linux-gnu --arch aarch64 --build-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin/lldb --compiler /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/clang --dsymutil /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin/dsymutil --make /usr/bin/make --llvm-tools-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./bin --lldb-obj-root /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb --lldb-libs-dir /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib --platform-url connect://jetson-agx-2198.lab.llvm.org:1234 --platform-working-dir /home/ubuntu/lldb-tests --sysroot /mnt/fs/jetson-agx-ubuntu --env ARCH_CFLAGS=-mcpu=cortex-a78 --platform-name remote-linux /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/API/api/check_public_api_headers -p TestPublicAPIHeaders.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision 4fb1cda6606ba75782aa1964835abf1a69e2adae)
  clang revision 4fb1cda6606ba75782aa1964835abf1a69e2adae
  llvm revision 4fb1cda6606ba75782aa1964835abf1a69e2adae
Setting up remote platform 'remote-linux'
Connecting to remote platform 'remote-linux' at 'connect://jetson-agx-2198.lab.llvm.org:1234'...
Step 17 (test-check-lldb-shell) failure: Test just built components: check-lldb-shell completed (failure)
******************** TEST 'lldb-shell :: Breakpoint/invalid-condition.test' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/clang --target=specify-a-target-or-use-a-_host-substitution --target=aarch64-unknown-linux-gnu -pthread -fmodules-cache-path=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-shell --sysroot=/mnt/fs/jetson-agx-ubuntu -L/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib/aarch64-unknown-linux-gnu -lc++ /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/Shell/Breakpoint/Inputs/dummy-target.c -o /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb/test/Shell/Breakpoint/Output/invalid-condition.test.tmp.out
+ /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/clang --target=specify-a-target-or-use-a-_host-substitution --target=aarch64-unknown-linux-gnu -pthread -fmodules-cache-path=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-shell --sysroot=/mnt/fs/jetson-agx-ubuntu -L/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/./lib/aarch64-unknown-linux-gnu -lc++ /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/Shell/Breakpoint/Inputs/dummy-target.c -o /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb/test/Shell/Breakpoint/Output/invalid-condition.test.tmp.out
clang: warning: argument unused during compilation: '-fmodules-cache-path=/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-shell' [-Wunused-command-line-argument]
RUN: at line 3: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/lldb -O "platform select remote-linux" -O "platform connect connect://jetson-agx-2198.lab.llvm.org:1234" -O "platform shell mkdir -p /home/ubuntu/lldb-tests/shell/home/ubuntu/lldb-tests/shell/Breakpoint/invalid-condition.test" -O "platform settings -w /home/ubuntu/lldb-tests/shell/home/ubuntu/lldb-tests/shell/Breakpoint/invalid-condition.test" --no-lldbinit -S /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb/test/Shell/lit-lldb-init-quiet -b -o "br s -n main -c 'bogus'" -o "run" /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb/test/Shell/Breakpoint/Output/invalid-condition.test.tmp.out 2>&1 | /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/Shell/Breakpoint/invalid-condition.test
+ /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/lldb -O 'platform select remote-linux' -O 'platform connect connect://jetson-agx-2198.lab.llvm.org:1234' -O 'platform shell mkdir -p /home/ubuntu/lldb-tests/shell/home/ubuntu/lldb-tests/shell/Breakpoint/invalid-condition.test' -O 'platform settings -w /home/ubuntu/lldb-tests/shell/home/ubuntu/lldb-tests/shell/Breakpoint/invalid-condition.test' --no-lldbinit -S /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb/test/Shell/lit-lldb-init-quiet -b -o 'br s -n main -c '\''bogus'\''' -o run /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/lldb/test/Shell/Breakpoint/Output/invalid-condition.test.tmp.out
+ /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/Shell/Breakpoint/invalid-condition.test
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/Shell/Breakpoint/invalid-condition.test:5:10: error: CHECK: expected string not found in input
# CHECK: error: stopped due to an error evaluating condition of breakpoint 1.1: "bogus"
         ^
<stdin>:1:1: note: scanning from here
(lldb) platform select remote-linux
^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/Shell/Breakpoint/invalid-condition.test

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

Input was:
<<<<<<
         1: (lldb) platform select remote-linux 
check:5     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
         2:  Platform: remote-linux 
check:5     ~~~~~~~~~~~~~~~~~~~~~~~~
         3:  Connected: no 
check:5     ~~~~~~~~~~~~~~~
         4: (lldb) platform connect connect://jetson-agx-2198.lab.llvm.org:1234 
check:5     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         5: error: Failed to connect port 
check:5     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building clang,llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Interpreter/global-dtor.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 6: cat /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Interpreter/global-dtor.cpp | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang-repl | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Interpreter/global-dtor.cpp
+ cat /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Interpreter/global-dtor.cpp
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang-repl
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Interpreter/global-dtor.cpp
JIT session error: Unsupported aarch64 relocation:580: R_AARCH64_AUTH_ABS64
error: Failed to materialize symbols: { (main, { _ZN1DD2Ev, __clang_call_terminate, __orc_init_func.incr_module_10, _ZN1DC2Ev, $.incr_module_10.__inits.0, d }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_10 }) }
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Interpreter/global-dtor.cpp:11:11: error: CHECK: expected string not found in input
// CHECK: D[f=1.000000, m=0x0]
          ^
<stdin>:1:1: note: scanning from here

^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Interpreter/global-dtor.cpp

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

Input was:
<<<<<<
          1:  
check:11     X error: no match found
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux running on sanitizer-buildbot8 while building clang,llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 4759 tests, 48 workers --
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (1 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest (2 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-calls-Noinst-Test/failed_to_discover_tests_from_gtest (4 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Noinst-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest (7 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-aarch64-linux :: TestCases/Linux/dlopen-mixed-c-cxx.c (74 of 4759)
******************** TEST 'AddressSanitizer-aarch64-linux :: TestCases/Linux/dlopen-mixed-c-cxx.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -xc++ -shared -fPIC -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/AARCH64LinuxConfig/TestCases/Linux/Output/dlopen-mixed-c-cxx.c.tmp.so - < /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -xc++ -shared -fPIC -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/AARCH64LinuxConfig/TestCases/Linux/Output/dlopen-mixed-c-cxx.c.tmp.so -
ld: error: /tmp/lit-tmp-x8wl8ty6/--00790d.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 4759 tests, 48 workers --
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (1 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest (2 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-calls-Noinst-Test/failed_to_discover_tests_from_gtest (4 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Noinst-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest (7 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-aarch64-linux :: TestCases/Linux/dlopen-mixed-c-cxx.c (74 of 4759)
******************** TEST 'AddressSanitizer-aarch64-linux :: TestCases/Linux/dlopen-mixed-c-cxx.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -xc++ -shared -fPIC -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/AARCH64LinuxConfig/TestCases/Linux/Output/dlopen-mixed-c-cxx.c.tmp.so - < /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -xc++ -shared -fPIC -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/AARCH64LinuxConfig/TestCases/Linux/Output/dlopen-mixed-c-cxx.c.tmp.so -
ld: error: /tmp/lit-tmp-x8wl8ty6/--00790d.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 2378 of 4759 tests, 48 workers --
Testing:  0
FAIL: LeakSanitizer-Standalone-aarch64 :: TestCases/disabler.cpp (100 of 2378)
******************** TEST 'LeakSanitizer-Standalone-aarch64 :: TestCases/disabler.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  --driver-mode=g++ -O0   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -gline-tables-only -fsanitize=leak -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/../ /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/TestCases/disabler.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Output/disabler.cpp.tmp
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang --driver-mode=g++ -O0 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -gline-tables-only -fsanitize=leak -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/../ /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/TestCases/disabler.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Output/disabler.cpp.tmp
ld: error: /tmp/lit-tmp-ycj9n9a7/disabler-f2ad51.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0
FAIL: LeakSanitizer-Standalone-aarch64 :: TestCases/lsan_annotations.cpp (106 of 2378)
******************** TEST 'LeakSanitizer-Standalone-aarch64 :: TestCases/lsan_annotations.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  --driver-mode=g++ -O0   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -gline-tables-only -fsanitize=leak -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/../ -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Output/lsan_annotations.cpp.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Output/lsan_annotations.cpp.tmp
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang --driver-mode=g++ -O0 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -gline-tables-only -fsanitize=leak -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/../ -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Output/lsan_annotations.cpp.tmp
ld: error: /tmp/lit-tmp-ycj9n9a7/lsan_annotations-b560fc.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.
FAIL: LeakSanitizer-Standalone-aarch64 :: TestCases/Linux/libdl_deadlock.cpp (146 of 2378)
******************** TEST 'LeakSanitizer-Standalone-aarch64 :: TestCases/Linux/libdl_deadlock.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  --driver-mode=g++ -O0   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -gline-tables-only -fsanitize=leak -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/../ /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Linux/Output/libdl_deadlock.cpp.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Linux/Output/libdl_deadlock.cpp.tmp
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang --driver-mode=g++ -O0 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -gline-tables-only -fsanitize=leak -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/../ /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/lsan/AARCH64LsanConfig/TestCases/Linux/Output/libdl_deadlock.cpp.tmp
ld: error: /tmp/lit-tmp-ycj9n9a7/libdl_deadlock-06bfe9.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoCxxUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test: error while loading shared libraries: unexpected reloc type 0x00000244
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/formats/googletest.py:38: warning: unable to discover google-tests in '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test': Command '['/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/gwp_asan/tests/./GwpAsan-aarch64-Test', '--gtest_list_tests', '--gtest_filter=-*DISABLED_*']' returned non-zero exit status 127.. Process output: b''
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 4759 tests, 48 workers --
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest (1 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-calls-Test/failed_to_discover_tests_from_gtest (3 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest (5 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-Unit :: ./Asan-aarch64-inline-Test/failed_to_discover_tests_from_gtest (6 of 4759)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Test/failed_to_discover_tests_from_gtest' FAILED ********************

********************
Testing: 
FAIL: AddressSanitizer-aarch64-linux :: TestCases/Linux/dlopen-mixed-c-cxx.c (74 of 4759)
******************** TEST 'AddressSanitizer-aarch64-linux :: TestCases/Linux/dlopen-mixed-c-cxx.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -xc++ -shared -fPIC -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/AARCH64LinuxConfig/TestCases/Linux/Output/dlopen-mixed-c-cxx.c.tmp.so - < /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -xc++ -shared -fPIC -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/AARCH64LinuxConfig/TestCases/Linux/Output/dlopen-mixed-c-cxx.c.tmp.so -
ld: error: /tmp/lit-tmp-g7s25zmw/--5e242d.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
-- Performing Test CXX_SUPPORTS_FALIGNED_ALLOCATION_FLAG
-- Performing Test CXX_SUPPORTS_FALIGNED_ALLOCATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG - Success
-- Configuring done (13.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/msan/libcxx_msan_aarch64/build
[82/161] Generating TsanRtlTest-aarch64-Test
FAILED: lib/tsan/tests/rtl/TsanRtlTest-aarch64-Test /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/tsan/tests/rtl/TsanRtlTest-aarch64-Test 
cd /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/tsan/tests/rtl && /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang++ TsanUnitTestsObjects.tsan_bench.cpp.aarch64.o TsanUnitTestsObjects.tsan_mop.cpp.aarch64.o TsanUnitTestsObjects.tsan_mutex.cpp.aarch64.o TsanUnitTestsObjects.tsan_posix.cpp.aarch64.o TsanUnitTestsObjects.tsan_string.cpp.aarch64.o TsanUnitTestsObjects.tsan_test.cpp.aarch64.o TsanUnitTestsObjects.tsan_thread.cpp.aarch64.o TsanUnitTestsObjects.tsan_test_util_posix.cpp.aarch64.o TsanUnitTestsObjects.gtest-all.cc.aarch64.o -o /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/tsan/tests/rtl/./TsanRtlTest-aarch64-Test -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build -lstdc++ -fsanitize=thread -lm -march=armv8-a
ld: error: TsanUnitTestsObjects.tsan_bench.cpp.aarch64.o:(.data.DW.ref.__gxx_personality_v0+0x0): unknown relocation (580) against symbol __gxx_personality_v0
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[114/161] Generating RtsanTestObjects_FileOffset64.rtsan_test_interceptors_posix.cpp.aarch64.o
[116/161] Generating GwpAsanTestObjects.backtrace.cpp.aarch64.o
[117/161] Generating ASAN_INST_TEST_OBJECTS.gtest-all.cc.aarch64-calls.o
[118/161] Generating RtsanNoInstTestObjects.gtest-all.cc.aarch64.o
[119/161] Generating RtsanTestObjects_FileOffset64.gtest-all.cc.aarch64.o
[120/161] Generating RtsanTestObjects.gtest-all.cc.aarch64.o
[121/161] Generating ASAN_INST_TEST_OBJECTS.gtest-all.cc.aarch64-inline.o
[122/161] Generating GwpAsanTestObjects.gtest-all.cc.aarch64.o
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-global-isel running on linaro-clang-aarch64-global-isel while building clang,llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Interpreter/const.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 8: cat /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/Interpreter/const.cpp | /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/clang-repl | /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/Interpreter/const.cpp
+ cat /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/Interpreter/const.cpp
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/Interpreter/const.cpp
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/clang-repl
JIT session error: Unsupported aarch64 relocation:580: R_AARCH64_AUTH_ABS64
JIT session error: Failed to materialize symbols: { (main, { __clang_call_terminate, _ZN1AD1Ev, _ZN1AD2Ev }) }
error: Failed to materialize symbols: { (main, { _ZL1a, _ZGVL1a, __orc_init_func.incr_module_18, $.incr_module_18.__inits.0 }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_18 }) }
JIT session error: Failed to materialize symbols: { (main, { _ZN1AD1Ev }) }
error: Failed to materialize symbols: { (main, { $.incr_module_23.__inits.0, __orc_init_func.incr_module_23 }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23 }) }
JIT session error: Failed to materialize symbols: { (main, { _ZN1AD1Ev }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_25, $.incr_module_25.__inits.0 }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_25 }) }
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/Interpreter/const.cpp:19:11: error: CHECK: expected string not found in input
// CHECK: A(1), this = [[THIS:.+]]
          ^
<stdin>:1:1: note: scanning from here

^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/Interpreter/const.cpp

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

Input was:
<<<<<<
          1:  
check:19     X error: no match found
>>>>>>

--

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

Step 13 (test-suite) failure: test (failure)
...
size..init_array: 16 
size..interp: 27 
size..note.ABI-tag: 32 
size..plt: 704 
size..rela.dyn: 2256 
size..rela.plt: 1008 
size..rodata: 5626 
size..text: 43040 
**********
NOEXE: test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test (1359 of 3429)
******************** TEST 'test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/MicroBenchmarks/Builtins/Int128/Builtins' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test (1360 of 3429)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter.test (1361 of 3429)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter' is missing
********************
PASS: test-suite :: Bitcode/simd_ops/simd_ops_test_op_usubl_1310.test (1362 of 3429)
********** TEST 'test-suite :: Bitcode/simd_ops/simd_ops_test_op_usubl_1310.test' RESULTS **********
compile_time: 0.0000 
exec_time: 0.0204 
hash: "53dc90a164c32a002d6398c06024a11e" 
link_time: 0.0862 
size: 82152 
size..bss: 3160 
size..comment: 206 
size..data: 264 
size..data.rel.ro: 1200 
size..dynamic: 528 
size..dynstr: 552 
size..dynsym: 1152 
size..eh_frame: 1412 
size..eh_frame_hdr: 340 
size..fini: 20 
size..fini_array: 40 
size..gnu.hash: 28 
size..gnu.version: 96 
size..gnu.version_r: 80 
size..got: 296 
size..got.plt: 360 
size..init: 24 
size..init_array: 16 
size..interp: 27 
size..note.ABI-tag: 32 
size..plt: 704 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

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

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

Here is the relevant piece of the build log for the reference
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: 87724 of 87725 tests, 88 workers --
Testing:  0.. 10.. 20.. 30..
FAIL: LLVM :: CodeGen/Generic/machine-function-splitter.ll (2096 of 87724)
******************** TEST 'LLVM :: CodeGen/Generic/machine-function-splitter.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 5: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -mtriple=x86_64-unknown-linux-gnu -split-machine-functions | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -check-prefixes=MFS-DEFAULTS,MFS-DEFAULTS-X86,MFS-NOBBSECTIONS
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=x86_64-unknown-linux-gnu -split-machine-functions
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -check-prefixes=MFS-DEFAULTS,MFS-DEFAULTS-X86,MFS-NOBBSECTIONS
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs-count-threshold=2000 | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll --dump-input=always -check-prefixes=MFS-OPTS1,MFS-OPTS1-X86
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs-count-threshold=2000
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll --dump-input=always -check-prefixes=MFS-OPTS1,MFS-OPTS1-X86

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll

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

Input was:
<<<<<<
     1:  .text 
     2:  .file "<stdin>" 
     3:  .section .text.hot.foo1,"ax",@progbits 
     4:  .globl foo1 # -- Begin function foo1 
     5:  .p2align 4 
     6:  .type foo1,@function 
     7: foo1: # @foo1 
     8: # %bb.0: 
     9:  pushq %rax 
    10:  testl %edi, %edi 
    11:  je foo1.cold 
    12: # %bb.1: 
    13:  callq bar@PLT 
    14:  popq %rax 
    15:  jmp qux@PLT # TAILCALL 
    16: .LBB_END0_1: 
    17:  .section .text.split.foo1,"ax",@progbits 
    18: foo1.cold: 
    19:  callq baz@PLT 
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: 87724 of 87725 tests, 88 workers --
Testing:  0.. 10.. 20.. 30..
FAIL: LLVM :: CodeGen/Generic/machine-function-splitter.ll (2096 of 87724)
******************** TEST 'LLVM :: CodeGen/Generic/machine-function-splitter.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 5: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -mtriple=x86_64-unknown-linux-gnu -split-machine-functions | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -check-prefixes=MFS-DEFAULTS,MFS-DEFAULTS-X86,MFS-NOBBSECTIONS
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=x86_64-unknown-linux-gnu -split-machine-functions
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -check-prefixes=MFS-DEFAULTS,MFS-DEFAULTS-X86,MFS-NOBBSECTIONS
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs-count-threshold=2000 | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll --dump-input=always -check-prefixes=MFS-OPTS1,MFS-OPTS1-X86
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs-count-threshold=2000
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll --dump-input=always -check-prefixes=MFS-OPTS1,MFS-OPTS1-X86

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll

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

Input was:
<<<<<<
     1:  .text 
     2:  .file "<stdin>" 
     3:  .section .text.hot.foo1,"ax",@progbits 
     4:  .globl foo1 # -- Begin function foo1 
     5:  .p2align 4 
     6:  .type foo1,@function 
     7: foo1: # @foo1 
     8: # %bb.0: 
     9:  pushq %rax 
    10:  testl %edi, %edi 
    11:  je foo1.cold 
    12: # %bb.1: 
    13:  callq bar@PLT 
    14:  popq %rax 
    15:  jmp qux@PLT # TAILCALL 
    16: .LBB_END0_1: 
    17:  .section .text.split.foo1,"ax",@progbits 
    18: foo1.cold: 
    19:  callq baz@PLT 
Step 13 (stage2/msan check) failure: stage2/msan 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_msan/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_msan/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_msan/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_msan/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_msan/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_msan/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_msan/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: 87723 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40
FAIL: LLVM :: CodeGen/Generic/machine-function-splitter.ll (1923 of 87723)
******************** TEST 'LLVM :: CodeGen/Generic/machine-function-splitter.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 5: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -mtriple=x86_64-unknown-linux-gnu -split-machine-functions | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -check-prefixes=MFS-DEFAULTS,MFS-DEFAULTS-X86,MFS-NOBBSECTIONS
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=x86_64-unknown-linux-gnu -split-machine-functions
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -check-prefixes=MFS-DEFAULTS,MFS-DEFAULTS-X86,MFS-NOBBSECTIONS
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs-count-threshold=2000 | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll --dump-input=always -check-prefixes=MFS-OPTS1,MFS-OPTS1-X86
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll --dump-input=always -check-prefixes=MFS-OPTS1,MFS-OPTS1-X86
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs-count-threshold=2000

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/machine-function-splitter.ll

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

Input was:
<<<<<<
     1:  .text 
     2:  .file "<stdin>" 
     3:  .section .text.hot.foo1,"ax",@progbits 
     4:  .globl foo1 # -- Begin function foo1 
     5:  .p2align 4 
     6:  .type foo1,@function 
     7: foo1: # @foo1 
     8: # %bb.0: 
     9:  pushq %rax 
    10:  testl %edi, %edi 
    11:  je foo1.cold 
    12: # %bb.1: 
    13:  callq bar@PLT 
    14:  popq %rax 
    15:  jmp qux@PLT # TAILCALL 
    16: .LBB_END0_1: 
    17:  .section .text.split.foo1,"ax",@progbits 
    18: foo1.cold: 
    19:  callq baz@PLT 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-android running on sanitizer-buildbot-android while building clang,llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/small_quarantine_size_mb.cpp (114 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/vfork.cpp (115 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/odr-vtable.cpp (116 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/stack-overflow-sigbus.cpp (117 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/syscalls.cpp (118 of 1719)
XFAIL: AddressSanitizer-aarch64-android :: TestCases/Linux/odr-violation.cpp (119 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/logging_options_in_help.cpp (120 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Posix/asan-symbolize-bad-path.cpp (121 of 1719)
UNSUPPORTED: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/plugin_no_op_symbolicate.cpp (122 of 1719)
UNSUPPORTED: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/plugin_wrong_frame_number_bug.cpp (123 of 1719)
FAIL: AddressSanitizer-aarch64-android :: TestCases/Linux/sized_delete_test.cpp (124 of 1719)
******************** TEST 'AddressSanitizer-aarch64-android :: TestCases/Linux/sized_delete_test.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld  -shared-libasan -fsized-deallocation -O0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -shared-libasan -fsized-deallocation -O0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp
RUN: at line 2: not  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp scalar 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -check-prefix=SCALAR
+ not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp scalar
+ FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -check-prefix=SCALAR
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp:67:13: error: SCALAR: expected string not found in input
 // SCALAR: OK SO FAR
            ^
<stdin>:1:1: note: scanning from here
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp"
^
<stdin>:1:5: note: possible intended match here
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp"
    ^

Input file: <stdin>
Check file: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp

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

Input was:
<<<<<<
            1: CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp" 
check:67'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:67'1         ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        possible intended match
>>>>>>

--

********************
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/thread_local_quarantine_size_kb.cpp (125 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/plugin_no_op_help_output.cpp (126 of 1719)
UNSUPPORTED: AddressSanitizer-aarch64-android :: TestCases/Posix/bcmp_test.cpp (127 of 1719)
Step 21 (run lit tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]) failure: run lit tests [aarch64/aosp_coral-userdebug/AOSP.MASTER] (failure)
...
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/small_quarantine_size_mb.cpp (114 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/vfork.cpp (115 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/odr-vtable.cpp (116 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/stack-overflow-sigbus.cpp (117 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/syscalls.cpp (118 of 1719)
XFAIL: AddressSanitizer-aarch64-android :: TestCases/Linux/odr-violation.cpp (119 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/logging_options_in_help.cpp (120 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Posix/asan-symbolize-bad-path.cpp (121 of 1719)
UNSUPPORTED: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/plugin_no_op_symbolicate.cpp (122 of 1719)
UNSUPPORTED: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/plugin_wrong_frame_number_bug.cpp (123 of 1719)
FAIL: AddressSanitizer-aarch64-android :: TestCases/Linux/sized_delete_test.cpp (124 of 1719)
******************** TEST 'AddressSanitizer-aarch64-android :: TestCases/Linux/sized_delete_test.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld  -shared-libasan -fsized-deallocation -O0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -shared-libasan -fsized-deallocation -O0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp
RUN: at line 2: not  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp scalar 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -check-prefix=SCALAR
+ not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp scalar
+ FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp -check-prefix=SCALAR
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp:67:13: error: SCALAR: expected string not found in input
 // SCALAR: OK SO FAR
            ^
<stdin>:1:1: note: scanning from here
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp"
^
<stdin>:1:5: note: possible intended match here
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp"
    ^

Input file: <stdin>
Check file: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cpp

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

Input was:
<<<<<<
            1: CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/asan/AARCH64AndroidConfig/TestCases/Linux/Output/sized_delete_test.cpp.tmp" 
check:67'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:67'1         ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        possible intended match
>>>>>>

--

********************
PASS: AddressSanitizer-aarch64-android :: TestCases/Linux/thread_local_quarantine_size_kb.cpp (125 of 1719)
PASS: AddressSanitizer-aarch64-android :: TestCases/Posix/asan_symbolize_script/plugin_no_op_help_output.cpp (126 of 1719)
UNSUPPORTED: AddressSanitizer-aarch64-android :: TestCases/Posix/bcmp_test.cpp (127 of 1719)
Step 22 (run sanitizer_common tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]) failure: run sanitizer_common tests [aarch64/aosp_coral-userdebug/AOSP.MASTER] (failure)
@@@BUILD_STEP run sanitizer_common tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]@@@
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Step 23 (run asan tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]) failure: run asan tests [aarch64/aosp_coral-userdebug/AOSP.MASTER] (failure)
@@@BUILD_STEP run asan tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]@@@
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Step 24 (run instrumented asan tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]) failure: run instrumented asan tests [aarch64/aosp_coral-userdebug/AOSP.MASTER] (failure)
@@@BUILD_STEP run instrumented asan tests [aarch64/aosp_coral-userdebug/AOSP.MASTER]@@@
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Serial 17031FQCB00176
Step 31 (run lit tests [aarch64/bluejay-userdebug/TQ3A.230805.001]) failure: run lit tests [aarch64/bluejay-userdebug/TQ3A.230805.001] (failure)
...
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/aarch64-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=aarch64-unknown-linux-android', '--target=aarch64-linux-android24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/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: 1719 tests, 12 workers --
FAIL: cfi-standalone-lld-aarch64 :: multiple-inheritance.cpp (1 of 1719)
******************** TEST 'cfi-standalone-lld-aarch64 :: multiple-inheritance.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang   --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld -flto  -fsanitize=cfi --driver-mode=g++ -fvisibility=hidden -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp1 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -flto -fsanitize=cfi --driver-mode=g++ -fvisibility=hidden -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp1 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
RUN: at line 2: not --crash  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp1 2>&1 | FileCheck --check-prefix=CFI /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
+ not --crash /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp1
+ FileCheck --check-prefix=CFI /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
RUN: at line 3: not --crash  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp1 x 2>&1 | FileCheck --check-prefix=CFI /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
+ not --crash /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp1 x
+ FileCheck --check-prefix=CFI /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
RUN: at line 5: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang   --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld -flto  -fsanitize=cfi --driver-mode=g++ -fvisibility=hidden -DB32 -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --target=aarch64-linux-android24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -flto -fsanitize=cfi --driver-mode=g++ -fvisibility=hidden -DB32 -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
RUN: at line 6: not --crash  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2 2>&1 | FileCheck --check-prefix=CFI /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
+ not --crash /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2
+ FileCheck --check-prefix=CFI /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp:55:10: error: CFI: expected string not found in input
 // CFI: 1
         ^
<stdin>:1:1: note: scanning from here
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2"
^

Input file: <stdin>
Check file: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/cfi/multiple-inheritance.cpp

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

Input was:
<<<<<<
          1: CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2": unknown reloc type 580 in "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_aarch64/test/cfi/Standalone-lld-aarch64/Output/multiple-inheritance.cpp.tmp2" 
check:55     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
>>>>>>

--

Step 32 (run sanitizer_common tests [aarch64/bluejay-userdebug/TQ3A.230805.001]) failure: run sanitizer_common tests [aarch64/bluejay-userdebug/TQ3A.230805.001] (failure)
@@@BUILD_STEP run sanitizer_common tests [aarch64/bluejay-userdebug/TQ3A.230805.001]@@@
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/SanitizerTest": unknown reloc type 580 in "/data/local/tmp/Output/SanitizerTest"

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Step 33 (run asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001]) failure: run asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001] (failure)
@@@BUILD_STEP run asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001]@@@
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanNoinstTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanNoinstTest"

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Step 34 (run instrumented asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001]) failure: run instrumented asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001] (failure)
@@@BUILD_STEP run instrumented asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001]@@@
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"
CANNOT LINK EXECUTABLE "/data/local/tmp/Output/AsanTest": unknown reloc type 580 in "/data/local/tmp/Output/AsanTest"

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

program finished with exit code 0
elapsedTime=2201.420590

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-ubuntu running on as-builder-4 while building clang,llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llc -mtriple=aarch64-linux -filetype=asm /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/llc -mtriple=aarch64-linux -filetype=asm /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
/home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building clang,llvm at step 14 "test-check-cxxabi-aarch64-unknown-linux-gnu".

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

Here is the relevant piece of the build log for the reference
Step 14 (test-check-cxxabi-aarch64-unknown-linux-gnu) failure: Test just built components: check-cxxabi-aarch64-unknown-linux-gnu completed (failure)
******************** TEST 'llvm-libc++abi-static.cfg.in :: catch_array_01.pass.cpp' FAILED ********************
Exit Code: 127

Command Output (stdout):
--
# COMPILED WITH
C:/buildbot/as-builder-2/x-aarch64/build/./bin/clang++.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\libcxxabi\test\catch_array_01.pass.cpp  --target=aarch64-unknown-linux-gnu -nostdinc++ -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/include -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/include/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/include/aarch64-unknown-linux-gnu/c++/v1 -I "C:/buildbot/as-builder-2/x-aarch64/llvm-project/libunwind/include" -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxxabi/../libcxx/test/support -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxxabi/../libcxx/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Werror=thread-safety -Wuser-defined-warnings  -nostdlib++ -L C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/lib/aarch64-unknown-linux-gnu -lc++ -lc++abi -pthread -latomic -o C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxxabi\test\Output\catch_array_01.pass.cpp.dir\t.tmp.exe
# executed command: C:/buildbot/as-builder-2/x-aarch64/build/./bin/clang++.exe 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\libcxxabi\test\catch_array_01.pass.cpp' --target=aarch64-unknown-linux-gnu -nostdinc++ -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/include -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/include/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/include/aarch64-unknown-linux-gnu/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libunwind/include -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxxabi/../libcxx/test/support -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxxabi/../libcxx/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Werror=thread-safety -Wuser-defined-warnings -nostdlib++ -L C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test-suite-install/lib/aarch64-unknown-linux-gnu -lc++ -lc++abi -pthread -latomic -o 'C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxxabi\test\Output\catch_array_01.pass.cpp.dir\t.tmp.exe'
# EXECUTED AS
"C:/Python310/python.exe" "C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxx/utils/ssh.py" [email protected] --execdir C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxxabi\test\Output\catch_array_01.pass.cpp.dir --  C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxxabi\test\Output\catch_array_01.pass.cpp.dir\t.tmp.exe
# executed command: C:/Python310/python.exe C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxx/utils/ssh.py [email protected] --execdir 'C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxxabi\test\Output\catch_array_01.pass.cpp.dir' -- 'C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxxabi\test\Output\catch_array_01.pass.cpp.dir\t.tmp.exe'
# .---command stderr------------
# | /tmp/libcxx.K4L4Z6EgrD/t.tmp.exe: error while loading shared libraries: unexpected reloc type 0x00000411
# `-----------------------------
# error: command failed with exit status: 127

--

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

Step 15 (test-check-cxx-aarch64-unknown-linux-gnu) failure: Test just built components: check-cxx-aarch64-unknown-linux-gnu completed (failure)
******************** TEST 'llvm-libc++-static.cfg.in :: libcxx/algorithms/alg.sorting/pstl.is_partitioned.pass.cpp' FAILED ********************
Exit Code: 127

Command Output (stdout):
--
# COMPILED WITH
C:/buildbot/as-builder-2/x-aarch64/build/./bin/clang++.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\libcxx\test\libcxx\algorithms\alg.sorting\pstl.is_partitioned.pass.cpp -pthread --target=aarch64-unknown-linux-gnu -nostdinc++ -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test-suite-install/include/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test-suite-install/include/aarch64-unknown-linux-gnu/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxx/test/support -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_ENABLE_EXPERIMENTAL -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -Werror=thread-safety -Wuser-defined-warnings  -lc++experimental -nostdlib++ -L C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test-suite-install/lib/aarch64-unknown-linux-gnu -lc++ -lc++abi -latomic -o C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxx\test\libcxx\algorithms\alg.sorting\Output\pstl.is_partitioned.pass.cpp.dir\t.tmp.exe
# executed command: C:/buildbot/as-builder-2/x-aarch64/build/./bin/clang++.exe 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\libcxx\test\libcxx\algorithms\alg.sorting\pstl.is_partitioned.pass.cpp' -pthread --target=aarch64-unknown-linux-gnu -nostdinc++ -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test-suite-install/include/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test-suite-install/include/aarch64-unknown-linux-gnu/c++/v1 -I C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxx/test/support -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_ENABLE_EXPERIMENTAL -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -Werror=thread-safety -Wuser-defined-warnings -lc++experimental -nostdlib++ -L C:/buildbot/as-builder-2/x-aarch64/build/runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test-suite-install/lib/aarch64-unknown-linux-gnu -lc++ -lc++abi -latomic -o 'C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxx\test\libcxx\algorithms\alg.sorting\Output\pstl.is_partitioned.pass.cpp.dir\t.tmp.exe'
# EXECUTED AS
"C:/Python310/python.exe" "C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxx/utils/ssh.py" [email protected] --execdir C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxx\test\libcxx\algorithms\alg.sorting\Output\pstl.is_partitioned.pass.cpp.dir --  C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxx\test\libcxx\algorithms\alg.sorting\Output\pstl.is_partitioned.pass.cpp.dir\t.tmp.exe
# executed command: C:/Python310/python.exe C:/buildbot/as-builder-2/x-aarch64/llvm-project/libcxx/utils/ssh.py [email protected] --execdir 'C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxx\test\libcxx\algorithms\alg.sorting\Output\pstl.is_partitioned.pass.cpp.dir' -- 'C:\buildbot\as-builder-2\x-aarch64\build\runtimes\runtimes-aarch64-unknown-linux-gnu-bins\libcxx\test\libcxx\algorithms\alg.sorting\Output\pstl.is_partitioned.pass.cpp.dir\t.tmp.exe'
# .---command stderr------------
# | /tmp/libcxx.O3J8tSkt3s/t.tmp.exe: error while loading shared libraries: unexpected reloc type 0x00000411
# `-----------------------------
# error: command failed with exit status: 127

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-s390x-linux running on systemz-1 while building clang,llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-armv7-global-isel running on linaro-clang-armv7-global-isel while building clang,llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla running on linaro-g4-02 while building clang,llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

Step 13 (test-suite) failure: test (failure)
...
size..init_array: 16 
size..interp: 27 
size..note.ABI-tag: 32 
size..plt: 928 
size..rela.dyn: 2376 
size..rela.plt: 1344 
size..rodata: 22436 
size..text: 493952 
**********
NOEXE: test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test (7909 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/test/sandbox/build/MicroBenchmarks/Builtins/Int128/Builtins' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test (7910 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/test/sandbox/build/MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion' is missing
********************
PASS: test-suite :: Fortran/gfortran/torture/execute/gfortran-torture-execute-torture__execute__scalarize3_f90.test (7911 of 9995)
********** TEST 'test-suite :: Fortran/gfortran/torture/execute/gfortran-torture-execute-torture__execute__scalarize3_f90.test' RESULTS **********
compile_time: 0.0000 
exec_time: 0.0000 
hash: "1fbf74b6bd52de6bad09df2f3786a31b" 
link_time: 0.0000 
size: 836512 
size..bss: 176 
size..comment: 264 
size..data: 664 
size..data.rel.ro: 176 
size..dynamic: 496 
size..dynstr: 621 
size..dynsym: 1584 
size..eh_frame: 56144 
size..eh_frame_hdr: 8444 
size..fini: 20 
size..fini_array: 8 
size..gnu.hash: 28 
size..gnu.version: 132 
size..gnu.version_r: 96 
size..got: 192 
size..got.plt: 472 
size..init: 24 
size..init_array: 16 
size..interp: 27 
size..note.ABI-tag: 32 
size..plt: 928 
size..rela.dyn: 2352 
size..rela.plt: 1344 
size..rodata: 21892 
size..text: 488992 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vls running on linaro-g3-04 while building clang,llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-calls-Dynamic-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

Step 13 (test-suite) failure: test (failure)
...
size..init_array: 16 
size..interp: 27 
size..note.ABI-tag: 32 
size..plt: 944 
size..rela.dyn: 2376 
size..rela.plt: 1368 
size..rodata: 23156 
size..text: 669632 
**********
NOEXE: test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test (7927 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/MicroBenchmarks/Builtins/Int128/Builtins' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test (7928 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter.test (7929 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/Dilate/Dilate.test (7930 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/Dilate/Dilate.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/MicroBenchmarks/ImageProcessing/Dilate/Dilate' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/Blur/blur.test (7931 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/Blur/blur.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/MicroBenchmarks/ImageProcessing/Blur/blur' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/Dither/Dither.test (7932 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/Dither/Dither.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/MicroBenchmarks/ImageProcessing/Dither/Dither' is missing
********************
PASS: test-suite :: Fortran/gfortran/torture/execute/gfortran-torture-execute-torture__execute__test_slice_f90.test (7933 of 9995)
********** TEST 'test-suite :: Fortran/gfortran/torture/execute/gfortran-torture-execute-torture__execute__test_slice_f90.test' RESULTS **********
compile_time: 0.0000 
exec_time: 0.0007 
hash: "53b7e7dd2343d1b025abc7c5aa14b40b" 
link_time: 0.0000 
size: 832264 
size..bss: 176 
size..comment: 264 
size..data: 664 
size..data.rel.ro: 176 
size..dynamic: 496 
size..dynstr: 621 
size..dynsym: 1584 
size..eh_frame: 56072 
size..eh_frame_hdr: 8436 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-s390x-linux-lnt running on systemz-1 while building clang,llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 10, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vla running on linaro-g3-02 while building clang,llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'AddressSanitizer-Unit :: ./Asan-aarch64-inline-Noinst-Test/failed_to_discover_tests_from_gtest' FAILED ********************

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

Step 13 (test-suite) failure: test (failure)
...
size..init_array: 16 
size..interp: 27 
size..note.ABI-tag: 32 
size..plt: 944 
size..rela.dyn: 2424 
size..rela.plt: 1368 
size..rodata: 23172 
size..text: 669536 
**********
NOEXE: test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test (7927 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/Builtins/Int128/Builtins.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/test/sandbox/build/MicroBenchmarks/Builtins/Int128/Builtins' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test (7928 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/test/sandbox/build/MicroBenchmarks/ImageProcessing/AnisotropicDiffusion/AnisotropicDiffusion' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/Blur/blur.test (7929 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/Blur/blur.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/test/sandbox/build/MicroBenchmarks/ImageProcessing/Blur/blur' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter.test (7930 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/test/sandbox/build/MicroBenchmarks/ImageProcessing/BilateralFiltering/BilateralFilter' is missing
********************
NOEXE: test-suite :: MicroBenchmarks/ImageProcessing/Dilate/Dilate.test (7931 of 9995)
******************** TEST 'test-suite :: MicroBenchmarks/ImageProcessing/Dilate/Dilate.test' FAILED ********************
Executable '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/test/sandbox/build/MicroBenchmarks/ImageProcessing/Dilate/Dilate' is missing
********************
PASS: test-suite :: Fortran/gfortran/torture/execute/gfortran-torture-execute-torture__execute__test_slice_f90.test (7932 of 9995)
********** TEST 'test-suite :: Fortran/gfortran/torture/execute/gfortran-torture-execute-torture__execute__test_slice_f90.test' RESULTS **********
compile_time: 0.0000 
exec_time: 0.0007 
hash: "53b7e7dd2343d1b025abc7c5aa14b40b" 
link_time: 0.0000 
size: 832264 
size..bss: 176 
size..comment: 264 
size..data: 664 
size..data.rel.ro: 176 
size..dynamic: 496 
size..dynstr: 621 
size..dynsym: 1584 
size..eh_frame: 56072 
size..eh_frame_hdr: 8436 
size..fini: 20 
size..fini_array: 8 
size..gnu.hash: 28 
size..gnu.version: 132 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 15, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64-aix running on aix-ppc64 while building clang,llvm at step 3 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference
Step 3 (clean-build-dir) failure: Delete failed. (failure) (timed out)
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/llc -mtriple=aarch64-linux -filetype=asm /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/FileCheck /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/llc -mtriple=aarch64-linux -filetype=asm /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/FileCheck /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


kovdan01 added a commit that referenced this pull request Dec 16, 2024
)

Re-apply #113148 after revert in #119331

If function pointer signing is enabled, sign personality function
pointer stored in `.DW.ref.__gxx_personality_v0` section with IA key,
0x7EAD = `ptrauth_string_discriminator("personality")` constant
discriminator and address diversity enabled.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 27, 2024

LLVM Buildbot has detected a new failure on builder clang-s390x-linux-multistage running on systemz-1 while building clang,llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage1/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage1/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage1/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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

Step 11 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/ptrauth-sign-personality.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage2/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o - | /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage2/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage2/bin/llc -mtriple=aarch64-linux -filetype=asm /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll -o -
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage2/bin/FileCheck /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll:30:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
              ^
<stdin>:68:29: note: scanning from here
DW.ref.__gxx_personality_v0:
                            ^
<stdin>:69:2: note: possible intended match here
 .xword __gxx_personality_v0
 ^

Input file: <stdin>
Check file: /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/test/CodeGen/AArch64/ptrauth-sign-personality.ll

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

Input was:
<<<<<<
           .
           .
           .
          63:  .weak DW.ref.__gxx_personality_v0 
          64:  .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat 
          65:  .p2align 3, 0x0 
          66:  .type DW.ref.__gxx_personality_v0,@object 
          67:  .size DW.ref.__gxx_personality_v0, 8 
          68: DW.ref.__gxx_personality_v0: 
next:30'0                                 X error: no match found
          69:  .xword __gxx_personality_v0 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:30'1      ?                            possible intended match
          70:  .section ".note.GNU-stack","",@progbits 
next:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:AArch64 clang:codegen IR generation bugs: mangling, exceptions, etc. clang Clang issues not falling into any other category debuginfo
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants