Skip to content

[ELF] Change Ctx::target to unique_ptr #111260

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 1 commit into from
Oct 7, 2024
Merged

Conversation

MaskRay
Copy link
Member

@MaskRay MaskRay commented Oct 5, 2024

also rename TargetInfo *getXXXTargetInfo to void setXXXTargetInfo and change it to set ctx.target. This ensures that when ctx becomes a local variable, two lld invocations will not reuse the function-local static variable.

also rename `TargetInfo *getXXXTargetInfo` to `void setXXXTargetInfo`
and change it to set `ctx.target`. This ensures that when `ctx` becomes
a local variable, two lld invocations will not reuse the function-local
static variable.
@llvmbot
Copy link
Member

llvmbot commented Oct 5, 2024

@llvm/pr-subscribers-lld
@llvm/pr-subscribers-lld-elf

@llvm/pr-subscribers-backend-hexagon

Author: Fangrui Song (MaskRay)

Changes

also rename TargetInfo *getXXXTargetInfo to void setXXXTargetInfo and change it to set ctx.target. This ensures that when ctx becomes a local variable, two lld invocations will not reuse the function-local static variable.


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

19 Files Affected:

  • (modified) lld/ELF/Arch/AArch64.cpp (+5-7)
  • (modified) lld/ELF/Arch/AMDGPU.cpp (+1-4)
  • (modified) lld/ELF/Arch/ARM.cpp (+1-4)
  • (modified) lld/ELF/Arch/AVR.cpp (+1-4)
  • (modified) lld/ELF/Arch/Hexagon.cpp (+1-4)
  • (modified) lld/ELF/Arch/LoongArch.cpp (+2-3)
  • (modified) lld/ELF/Arch/MSP430.cpp (+1-4)
  • (modified) lld/ELF/Arch/Mips.cpp (+9-9)
  • (modified) lld/ELF/Arch/PPC.cpp (+1-4)
  • (modified) lld/ELF/Arch/PPC64.cpp (+1-4)
  • (modified) lld/ELF/Arch/RISCV.cpp (+1-4)
  • (modified) lld/ELF/Arch/SPARCV9.cpp (+1-4)
  • (modified) lld/ELF/Arch/SystemZ.cpp (+1-4)
  • (modified) lld/ELF/Arch/X86.cpp (+10-14)
  • (modified) lld/ELF/Arch/X86_64.cpp (+10-14)
  • (modified) lld/ELF/Config.h (+1-1)
  • (modified) lld/ELF/Driver.cpp (+2-2)
  • (modified) lld/ELF/Target.cpp (+16-16)
  • (modified) lld/ELF/Target.h (+16-16)
diff --git a/lld/ELF/Arch/AArch64.cpp b/lld/ELF/Arch/AArch64.cpp
index 45d429c915a6ee..2bf9d499b44ffe 100644
--- a/lld/ELF/Arch/AArch64.cpp
+++ b/lld/ELF/Arch/AArch64.cpp
@@ -1208,12 +1208,10 @@ void lld::elf::createTaggedSymbols(const SmallVector<ELFFileBase *, 0> &files) {
   }
 }
 
-TargetInfo *elf::getAArch64TargetInfo(Ctx &ctx) {
+void elf::setAArch64TargetInfo(Ctx &ctx) {
   if ((ctx.arg.andFeatures & GNU_PROPERTY_AARCH64_FEATURE_1_BTI) ||
-      ctx.arg.zPacPlt) {
-    static AArch64BtiPac t(ctx);
-    return &t;
-  }
-  static AArch64 t(ctx);
-  return &t;
+      ctx.arg.zPacPlt)
+    ctx.target.reset(new AArch64BtiPac(ctx));
+  else
+    ctx.target.reset(new AArch64(ctx));
 }
diff --git a/lld/ELF/Arch/AMDGPU.cpp b/lld/ELF/Arch/AMDGPU.cpp
index 29b21f1b953989..99e7cfe6e76ba9 100644
--- a/lld/ELF/Arch/AMDGPU.cpp
+++ b/lld/ELF/Arch/AMDGPU.cpp
@@ -219,7 +219,4 @@ int64_t AMDGPU::getImplicitAddend(const uint8_t *buf, RelType type) const {
   }
 }
 
-TargetInfo *elf::getAMDGPUTargetInfo(Ctx &ctx) {
-  static AMDGPU target(ctx);
-  return &target;
-}
+void elf::setAMDGPUTargetInfo(Ctx &ctx) { ctx.target.reset(new AMDGPU(ctx)); }
diff --git a/lld/ELF/Arch/ARM.cpp b/lld/ELF/Arch/ARM.cpp
index d22ac540c92a1e..267eeec410ec2c 100644
--- a/lld/ELF/Arch/ARM.cpp
+++ b/lld/ELF/Arch/ARM.cpp
@@ -1533,10 +1533,7 @@ template <typename ELFT> void elf::writeARMCmseImportLib() {
           "': " + toString(std::move(e)));
 }
 
-TargetInfo *elf::getARMTargetInfo(Ctx &ctx) {
-  static ARM target(ctx);
-  return &target;
-}
+void elf::setARMTargetInfo(Ctx &ctx) { ctx.target.reset(new ARM(ctx)); }
 
 template void elf::writeARMCmseImportLib<ELF32LE>();
 template void elf::writeARMCmseImportLib<ELF32BE>();
diff --git a/lld/ELF/Arch/AVR.cpp b/lld/ELF/Arch/AVR.cpp
index cc2d9fa3daf798..bb88dfe7c7a4c6 100644
--- a/lld/ELF/Arch/AVR.cpp
+++ b/lld/ELF/Arch/AVR.cpp
@@ -267,10 +267,7 @@ void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
   }
 }
 
-TargetInfo *elf::getAVRTargetInfo(Ctx &ctx) {
-  static AVR target(ctx);
-  return &target;
-}
+void elf::setAVRTargetInfo(Ctx &ctx) { ctx.target.reset(new AVR(ctx)); }
 
 static uint32_t getEFlags(InputFile *file) {
   return cast<ObjFile<ELF32LE>>(file)->getObj().getHeader().e_flags;
diff --git a/lld/ELF/Arch/Hexagon.cpp b/lld/ELF/Arch/Hexagon.cpp
index d689fc2a152101..ad5a3cd646e65b 100644
--- a/lld/ELF/Arch/Hexagon.cpp
+++ b/lld/ELF/Arch/Hexagon.cpp
@@ -404,7 +404,4 @@ int64_t Hexagon::getImplicitAddend(const uint8_t *buf, RelType type) const {
   }
 }
 
-TargetInfo *elf::getHexagonTargetInfo(Ctx &ctx) {
-  static Hexagon target(ctx);
-  return &target;
-}
+void elf::setHexagonTargetInfo(Ctx &ctx) { ctx.target.reset(new Hexagon(ctx)); }
diff --git a/lld/ELF/Arch/LoongArch.cpp b/lld/ELF/Arch/LoongArch.cpp
index 3e86488063f0e4..8c4eaf5d75342a 100644
--- a/lld/ELF/Arch/LoongArch.cpp
+++ b/lld/ELF/Arch/LoongArch.cpp
@@ -893,7 +893,6 @@ void LoongArch::finalizeRelax(int passes) const {
   }
 }
 
-TargetInfo *elf::getLoongArchTargetInfo(Ctx &ctx) {
-  static LoongArch target(ctx);
-  return &target;
+void elf::setLoongArchTargetInfo(Ctx &ctx) {
+  ctx.target.reset(new LoongArch(ctx));
 }
diff --git a/lld/ELF/Arch/MSP430.cpp b/lld/ELF/Arch/MSP430.cpp
index 7563f7cfaa02c6..7eb281bec8d965 100644
--- a/lld/ELF/Arch/MSP430.cpp
+++ b/lld/ELF/Arch/MSP430.cpp
@@ -88,7 +88,4 @@ void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
   }
 }
 
-TargetInfo *elf::getMSP430TargetInfo(Ctx &ctx) {
-  static MSP430 target(ctx);
-  return &target;
-}
+void elf::setMSP430TargetInfo(Ctx &ctx) { ctx.target.reset(new MSP430(ctx)); }
diff --git a/lld/ELF/Arch/Mips.cpp b/lld/ELF/Arch/Mips.cpp
index 0e65df347031ef..a584d2ccc7cdaa 100644
--- a/lld/ELF/Arch/Mips.cpp
+++ b/lld/ELF/Arch/Mips.cpp
@@ -778,23 +778,23 @@ template <class ELFT> bool elf::isMipsPIC(const Defined *sym) {
   return cast<ObjFile<ELFT>>(file)->getObj().getHeader().e_flags & EF_MIPS_PIC;
 }
 
-TargetInfo *elf::getMipsTargetInfo(Ctx &ctx) {
+void elf::setMipsTargetInfo(Ctx &ctx) {
   switch (ctx.arg.ekind) {
   case ELF32LEKind: {
-    static MIPS<ELF32LE> t(ctx);
-    return &t;
+    ctx.target.reset(new MIPS<ELF32LE>(ctx));
+    return;
   }
   case ELF32BEKind: {
-    static MIPS<ELF32BE> t(ctx);
-    return &t;
+    ctx.target.reset(new MIPS<ELF32BE>(ctx));
+    return;
   }
   case ELF64LEKind: {
-    static MIPS<ELF64LE> t(ctx);
-    return &t;
+    ctx.target.reset(new MIPS<ELF64LE>(ctx));
+    return;
   }
   case ELF64BEKind: {
-    static MIPS<ELF64BE> t(ctx);
-    return &t;
+    ctx.target.reset(new MIPS<ELF64BE>(ctx));
+    return;
   }
   default:
     llvm_unreachable("unsupported target");
diff --git a/lld/ELF/Arch/PPC.cpp b/lld/ELF/Arch/PPC.cpp
index 2d6355fac13e63..4a2863f862c5fe 100644
--- a/lld/ELF/Arch/PPC.cpp
+++ b/lld/ELF/Arch/PPC.cpp
@@ -525,7 +525,4 @@ void PPC::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const {
   }
 }
 
-TargetInfo *elf::getPPCTargetInfo(Ctx &ctx) {
-  static PPC target(ctx);
-  return &target;
-}
+void elf::setPPCTargetInfo(Ctx &ctx) { ctx.target.reset(new PPC(ctx)); }
diff --git a/lld/ELF/Arch/PPC64.cpp b/lld/ELF/Arch/PPC64.cpp
index da2a5aeed43b06..c284ece9ae1360 100644
--- a/lld/ELF/Arch/PPC64.cpp
+++ b/lld/ELF/Arch/PPC64.cpp
@@ -1750,7 +1750,4 @@ bool PPC64::adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end,
   return true;
 }
 
-TargetInfo *elf::getPPC64TargetInfo(Ctx &ctx) {
-  static PPC64 target(ctx);
-  return &target;
-}
+void elf::setPPC64TargetInfo(Ctx &ctx) { ctx.target.reset(new PPC64(ctx)); }
diff --git a/lld/ELF/Arch/RISCV.cpp b/lld/ELF/Arch/RISCV.cpp
index f13000fcadec2b..0f09159d8c4f69 100644
--- a/lld/ELF/Arch/RISCV.cpp
+++ b/lld/ELF/Arch/RISCV.cpp
@@ -1328,7 +1328,4 @@ void elf::mergeRISCVAttributesSections(Ctx &) {
                            mergeAttributesSection(sections));
 }
 
-TargetInfo *elf::getRISCVTargetInfo(Ctx &ctx) {
-  static RISCV target(ctx);
-  return &target;
-}
+void elf::setRISCVTargetInfo(Ctx &ctx) { ctx.target.reset(new RISCV(ctx)); }
diff --git a/lld/ELF/Arch/SPARCV9.cpp b/lld/ELF/Arch/SPARCV9.cpp
index 15c7c9c28b2ed8..aa56ac62402e29 100644
--- a/lld/ELF/Arch/SPARCV9.cpp
+++ b/lld/ELF/Arch/SPARCV9.cpp
@@ -193,7 +193,4 @@ void SPARCV9::writePlt(uint8_t *buf, const Symbol & /*sym*/,
   relocateNoSym(buf + 4, R_SPARC_WDISP19, -(off + 4 - pltEntrySize));
 }
 
-TargetInfo *elf::getSPARCV9TargetInfo(Ctx &ctx) {
-  static SPARCV9 target(ctx);
-  return &target;
-}
+void elf::setSPARCV9TargetInfo(Ctx &ctx) { ctx.target.reset(new SPARCV9(ctx)); }
diff --git a/lld/ELF/Arch/SystemZ.cpp b/lld/ELF/Arch/SystemZ.cpp
index fc87103165fd4d..02091fbd71d4df 100644
--- a/lld/ELF/Arch/SystemZ.cpp
+++ b/lld/ELF/Arch/SystemZ.cpp
@@ -601,7 +601,4 @@ void SystemZ::relocate(uint8_t *loc, const Relocation &rel,
   }
 }
 
-TargetInfo *elf::getSystemZTargetInfo(Ctx &ctx) {
-  static SystemZ t(ctx);
-  return &t;
-}
+void elf::setSystemZTargetInfo(Ctx &ctx) { ctx.target.reset(new SystemZ(ctx)); }
diff --git a/lld/ELF/Arch/X86.cpp b/lld/ELF/Arch/X86.cpp
index 0a16ca24fcb318..cfbebb0096abbf 100644
--- a/lld/ELF/Arch/X86.cpp
+++ b/lld/ELF/Arch/X86.cpp
@@ -708,21 +708,17 @@ void RetpolineNoPic::writePlt(uint8_t *buf, const Symbol &sym,
   write32le(buf + 22, -off - 26);
 }
 
-TargetInfo *elf::getX86TargetInfo(Ctx &ctx) {
+void elf::setX86TargetInfo(Ctx &ctx) {
   if (ctx.arg.zRetpolineplt) {
-    if (ctx.arg.isPic) {
-      static RetpolinePic t(ctx);
-      return &t;
-    }
-    static RetpolineNoPic t(ctx);
-    return &t;
-  }
-
-  if (ctx.arg.andFeatures & GNU_PROPERTY_X86_FEATURE_1_IBT) {
-    static IntelIBT t(ctx);
-    return &t;
+    if (ctx.arg.isPic)
+      ctx.target.reset(new RetpolinePic(ctx));
+    else
+      ctx.target.reset(new RetpolineNoPic(ctx));
+    return;
   }
 
-  static X86 t(ctx);
-  return &t;
+  if (ctx.arg.andFeatures & GNU_PROPERTY_X86_FEATURE_1_IBT)
+    ctx.target.reset(new IntelIBT(ctx));
+  else
+    ctx.target.reset(new X86(ctx));
 }
diff --git a/lld/ELF/Arch/X86_64.cpp b/lld/ELF/Arch/X86_64.cpp
index d58d0a2961d617..8e491eb85676a1 100644
--- a/lld/ELF/Arch/X86_64.cpp
+++ b/lld/ELF/Arch/X86_64.cpp
@@ -1239,21 +1239,17 @@ void RetpolineZNow::writePlt(uint8_t *buf, const Symbol &sym,
   write32le(buf + 8, ctx.in.plt->getVA() - pltEntryAddr - 12);
 }
 
-TargetInfo *elf::getX86_64TargetInfo(Ctx &ctx) {
+void elf::setX86_64TargetInfo(Ctx &ctx) {
   if (ctx.arg.zRetpolineplt) {
-    if (ctx.arg.zNow) {
-      static RetpolineZNow t(ctx);
-      return &t;
-    }
-    static Retpoline t(ctx);
-    return &t;
-  }
-
-  if (ctx.arg.andFeatures & GNU_PROPERTY_X86_FEATURE_1_IBT) {
-    static IntelIBT t(ctx);
-    return &t;
+    if (ctx.arg.zNow)
+      ctx.target.reset(new RetpolineZNow(ctx));
+    else
+      ctx.target.reset(new Retpoline(ctx));
+    return;
   }
 
-  static X86_64 t(ctx);
-  return &t;
+  if (ctx.arg.andFeatures & GNU_PROPERTY_X86_FEATURE_1_IBT)
+    ctx.target.reset(new IntelIBT(ctx));
+  else
+    ctx.target.reset(new X86_64(ctx));
 }
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index 1d113375143a51..ac6cdf0b07126b 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -542,7 +542,7 @@ struct Ctx {
   Config arg;
   LinkerDriver driver;
   LinkerScript *script;
-  TargetInfo *target;
+  std::unique_ptr<TargetInfo> target;
 
   // These variables are initialized by Writer and should not be used before
   // Writer is initialized.
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 373505a9e965b7..4337be17fe2fca 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -98,7 +98,7 @@ void Ctx::reset() {
   driver.~LinkerDriver();
   new (&driver) LinkerDriver(*this);
   script = nullptr;
-  target = nullptr;
+  target.reset();
 
   bufferStart = nullptr;
   mainPart = nullptr;
@@ -3122,7 +3122,7 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
   // The Target instance handles target-specific stuff, such as applying
   // relocations or writing a PLT section. It also contains target-dependent
   // values such as a default image base address.
-  ctx.target = getTarget(ctx);
+  setTarget(ctx);
 
   ctx.arg.eflags = ctx.target->calcEFlags();
   // maxPageSize (sometimes called abi page size) is the maximum page size that
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index d5d11b9549e03f..aae8b545d14fc3 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -45,39 +45,39 @@ std::string lld::toString(RelType type) {
   return std::string(s);
 }
 
-TargetInfo *elf::getTarget(Ctx &ctx) {
+void elf::setTarget(Ctx &ctx) {
   switch (ctx.arg.emachine) {
   case EM_386:
   case EM_IAMCU:
-    return getX86TargetInfo(ctx);
+    return setX86TargetInfo(ctx);
   case EM_AARCH64:
-    return getAArch64TargetInfo(ctx);
+    return setAArch64TargetInfo(ctx);
   case EM_AMDGPU:
-    return getAMDGPUTargetInfo(ctx);
+    return setAMDGPUTargetInfo(ctx);
   case EM_ARM:
-    return getARMTargetInfo(ctx);
+    return setARMTargetInfo(ctx);
   case EM_AVR:
-    return getAVRTargetInfo(ctx);
+    return setAVRTargetInfo(ctx);
   case EM_HEXAGON:
-    return getHexagonTargetInfo(ctx);
+    return setHexagonTargetInfo(ctx);
   case EM_LOONGARCH:
-    return getLoongArchTargetInfo(ctx);
+    return setLoongArchTargetInfo(ctx);
   case EM_MIPS:
-    return getMipsTargetInfo(ctx);
+    return setMipsTargetInfo(ctx);
   case EM_MSP430:
-    return getMSP430TargetInfo(ctx);
+    return setMSP430TargetInfo(ctx);
   case EM_PPC:
-    return getPPCTargetInfo(ctx);
+    return setPPCTargetInfo(ctx);
   case EM_PPC64:
-    return getPPC64TargetInfo(ctx);
+    return setPPC64TargetInfo(ctx);
   case EM_RISCV:
-    return getRISCVTargetInfo(ctx);
+    return setRISCVTargetInfo(ctx);
   case EM_SPARCV9:
-    return getSPARCV9TargetInfo(ctx);
+    return setSPARCV9TargetInfo(ctx);
   case EM_S390:
-    return getSystemZTargetInfo(ctx);
+    return setSystemZTargetInfo(ctx);
   case EM_X86_64:
-    return getX86_64TargetInfo(ctx);
+    return setX86_64TargetInfo(ctx);
   default:
     fatal("unsupported e_machine value: " + Twine(ctx.arg.emachine));
   }
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index f18770dfc424de..74ecd8bf34ded0 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -179,21 +179,21 @@ class TargetInfo {
   uint64_t defaultImageBase = 0x10000;
 };
 
-TargetInfo *getAArch64TargetInfo(Ctx &);
-TargetInfo *getAMDGPUTargetInfo(Ctx &);
-TargetInfo *getARMTargetInfo(Ctx &);
-TargetInfo *getAVRTargetInfo(Ctx &);
-TargetInfo *getHexagonTargetInfo(Ctx &);
-TargetInfo *getLoongArchTargetInfo(Ctx &);
-TargetInfo *getMSP430TargetInfo(Ctx &);
-TargetInfo *getMipsTargetInfo(Ctx &);
-TargetInfo *getPPC64TargetInfo(Ctx &);
-TargetInfo *getPPCTargetInfo(Ctx &);
-TargetInfo *getRISCVTargetInfo(Ctx &);
-TargetInfo *getSPARCV9TargetInfo(Ctx &);
-TargetInfo *getSystemZTargetInfo(Ctx &);
-TargetInfo *getX86TargetInfo(Ctx &);
-TargetInfo *getX86_64TargetInfo(Ctx &);
+void setAArch64TargetInfo(Ctx &);
+void setAMDGPUTargetInfo(Ctx &);
+void setARMTargetInfo(Ctx &);
+void setAVRTargetInfo(Ctx &);
+void setHexagonTargetInfo(Ctx &);
+void setLoongArchTargetInfo(Ctx &);
+void setMSP430TargetInfo(Ctx &);
+void setMipsTargetInfo(Ctx &);
+void setPPC64TargetInfo(Ctx &);
+void setPPCTargetInfo(Ctx &);
+void setRISCVTargetInfo(Ctx &);
+void setSPARCV9TargetInfo(Ctx &);
+void setSystemZTargetInfo(Ctx &);
+void setX86TargetInfo(Ctx &);
+void setX86_64TargetInfo(Ctx &);
 
 struct ErrorPlace {
   InputSectionBase *isec;
@@ -244,7 +244,7 @@ void convertArmInstructionstoBE8(InputSection *sec, uint8_t *buf);
 void createTaggedSymbols(const SmallVector<ELFFileBase *, 0> &files);
 void initSymbolAnchors();
 
-TargetInfo *getTarget(Ctx &);
+void setTarget(Ctx &);
 
 template <class ELFT> bool isMipsPIC(const Defined *sym);
 

@MaskRay MaskRay requested a review from smithp35 October 5, 2024 17:37
Copy link
Collaborator

@bd1976bris bd1976bris left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM!

I have closed #111139 as this makes it unnecessary.

@MaskRay
Copy link
Member Author

MaskRay commented Oct 7, 2024

A previous patch (BTI Thunk) might introduce flakiness to the test on Windows:
C:\ws\src\lld\test\ELF\aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input

but it is unrelated to this patch

https://buildkite.com/llvm-project/github-pull-requests/builds/107064#01925dc0-0d9e-4937-b04f-b35c2516f26a

@MaskRay MaskRay merged commit 4ec06b1 into llvm:main Oct 7, 2024
12 of 14 checks passed
@MaskRay MaskRay deleted the lld-targetinfo branch October 7, 2024 04:47
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 7, 2024

LLVM Buildbot has detected a new failure on builder clang-x64-windows-msvc running on windows-gcebot2 while building lld at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
[68/95] Linking CXX executable tools\lld\unittests\AsLibELF\LLDAsLibELFTests.exe
[69/95] Linking CXX executable tools\lld\unittests\AsLibAll\LLDAsLibAllTests.exe
[69/95] Running lld test suite
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 2992 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: lld :: ELF/aarch64-thunk-bti.s (666 of 2992)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && cd C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp
# executed command: rm -rf 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: cd 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# RUN: at line 3
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 asm -o a.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 asm -o a.o
# RUN: at line 4
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# RUN: at line 5
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s'
# RUN: at line 6
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-PADS
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-PADS
# RUN: at line 7
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 shared -o shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 shared -o shared.o
# RUN: at line 8
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --shared -o shared.so shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --shared -o shared.so shared.o
# RUN: at line 9
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# RUN: at line 10
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn exe | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-EXE
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn exe
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-EXE
# RUN: at line 11
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
[68/95] Linking CXX executable tools\lld\unittests\AsLibELF\LLDAsLibELFTests.exe
[69/95] Linking CXX executable tools\lld\unittests\AsLibAll\LLDAsLibAllTests.exe
[69/95] Running lld test suite
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 2992 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: lld :: ELF/aarch64-thunk-bti.s (666 of 2992)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && cd C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp
# executed command: rm -rf 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: cd 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# RUN: at line 3
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 asm -o a.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 asm -o a.o
# RUN: at line 4
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# RUN: at line 5
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s'
# RUN: at line 6
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-PADS
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-PADS
# RUN: at line 7
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 shared -o shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 shared -o shared.o
# RUN: at line 8
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --shared -o shared.so shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --shared -o shared.so shared.o
# RUN: at line 9
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# RUN: at line 10
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn exe | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-EXE
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn exe
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-EXE
# RUN: at line 11

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 7, 2024

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

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

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: 86099 of 86100 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.
FAIL: lld :: ELF/aarch64-thunk-bti.s (14462 of 86099)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && cd /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ rm -rf /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ cd /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
RUN: at line 3: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
RUN: at line 5: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
// CHECK-PADS-NEXT: udf #0x0
                    ^
<stdin>:100:29: note: scanning from here
18001048: b 0x18001050 <fn4>
                            ^
<stdin>:103:1: note: possible intended match here
0000000018001050 <fn4>:
^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s

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

Input was:
<<<<<<
            .
            .
Step 9 (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: 86099 of 86100 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.
FAIL: lld :: ELF/aarch64-thunk-bti.s (14462 of 86099)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && cd /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ rm -rf /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ cd /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
RUN: at line 3: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
RUN: at line 5: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
// CHECK-PADS-NEXT: udf #0x0
                    ^
<stdin>:100:29: note: scanning from here
18001048: b 0x18001050 <fn4>
                            ^
<stdin>:103:1: note: possible intended match here
0000000018001050 <fn4>:
^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s

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

Input was:
<<<<<<
            .
            .
Step 12 (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: 86098 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 
FAIL: lld :: ELF/aarch64-cortex-a53-843419-thunk-range.s (1303 of 86098)
******************** TEST 'lld :: ELF/aarch64-cortex-a53-843419-thunk-range.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-cortex-a53-843419-thunk-range.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp
+ split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-cortex-a53-843419-thunk-range.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp
RUN: at line 3: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-mc -filetype=obj -triple=aarch64 --asm-macro-max-nesting-depth=40000 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp/asm -o /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp.o
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-mc -filetype=obj -triple=aarch64 --asm-macro-max-nesting-depth=40000 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp/asm -o /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp.o
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld -T /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp/lds -fix-cortex-a53-843419 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp.o -o /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp2 --print-map 2>&1 | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-cortex-a53-843419-thunk-range.s
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/aarch64-cortex-a53-843419-thunk-range.s
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld -T /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp/lds -fix-cortex-a53-843419 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp.o -o /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/aarch64-cortex-a53-843419-thunk-range.s.tmp2 --print-map

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: lld :: ELF/riscv-attributes.s (2413 of 86098)
******************** TEST 'lld :: ELF/riscv-attributes.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: rm -rf /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/riscv-attributes.s.tmp && split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/riscv-attributes.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/riscv-attributes.s.tmp && cd /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/riscv-attributes.s.tmp
+ rm -rf /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/riscv-attributes.s.tmp
+ split-file /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/test/ELF/riscv-attributes.s /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/riscv-attributes.s.tmp
+ cd /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/lld/test/ELF/Output/riscv-attributes.s.tmp
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-mc -filetype=obj -triple=riscv64 a.s -o a.o
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-mc -filetype=obj -triple=riscv64 a.s -o a.o
RUN: at line 5: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld -e 0 a.o -o out 2>&1 | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/count 0
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/count 0
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld -e 0 a.o -o out
Expected 0 lines, got 22.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 7, 2024

LLVM Buildbot has detected a new failure on builder clang-arm64-windows-msvc running on linaro-armv8-windows-msvc-04 while building lld at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && split-file C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && cd C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp
# executed command: rm -rf 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: split-file 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: cd 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# RUN: at line 3
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 asm -o a.o
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 asm -o a.o
# RUN: at line 4
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\ld.lld.exe --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\ld.lld.exe' --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# RUN: at line 5
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s'
# RUN: at line 6
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-PADS
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-PADS
# RUN: at line 7
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 shared -o shared.o
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 shared -o shared.o
# RUN: at line 8
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\ld.lld.exe --shared -o shared.so shared.o
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\ld.lld.exe' --shared -o shared.so shared.o
# RUN: at line 9
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\ld.lld.exe shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\ld.lld.exe' shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# RUN: at line 10
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn exe | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-EXE
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn exe
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-EXE
# RUN: at line 11
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn exe | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-PADS
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn exe
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-PADS
# .---command stderr------------
# | C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\lld\test\ELF\aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
# | // CHECK-PADS-NEXT: udf #0x0
# |                     ^
# | <stdin>:103:29: note: scanning from here
# | 18001048: b 0x18001050 <fn4>
# |                             ^
# | <stdin>:106:1: note: possible intended match here
# | 0000000018001050 <fn4>:
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 7, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-bootstrap-asan running on sanitizer-buildbot1 while building lld at step 2 "annotate".

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

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-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/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: 86099 of 86100 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: lld :: ELF/aarch64-thunk-bti.s (83623 of 86099)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && split-file /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && cd /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ rm -rf /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ split-file /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ cd /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
RUN: at line 5: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
RUN: at line 6: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
// CHECK-PADS-NEXT: udf #0x0
                    ^
<stdin>:100:29: note: scanning from here
18001048: b 0x18001050 <fn4>
                            ^
<stdin>:103:1: note: possible intended match here
0000000018001050 <fn4>:
^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s

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

Input was:
<<<<<<
            .
            .
Step 10 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/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: 86099 of 86100 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: lld :: ELF/aarch64-thunk-bti.s (83623 of 86099)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && split-file /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && cd /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ rm -rf /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ split-file /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ cd /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
RUN: at line 5: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
RUN: at line 6: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
// CHECK-PADS-NEXT: udf #0x0
                    ^
<stdin>:100:29: note: scanning from here
18001048: b 0x18001050 <fn4>
                            ^
<stdin>:103:1: note: possible intended match here
0000000018001050 <fn4>:
^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s

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

Input was:
<<<<<<
            .
            .

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 7, 2024

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

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

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-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86098 tests, 88 workers --
Testing:  0.. 10
FAIL: Clang :: Driver/hip-partial-link.hip (11037 of 86098)
******************** TEST 'Clang :: Driver/hip-partial-link.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 7: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 11: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.main.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.main.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 15: llvm-nm  /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ1 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ llvm-nm /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ1 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
RUN: at line 20: llvm-nm  /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ2 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ llvm-nm /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ2 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
RUN: at line 27: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver    --hip-link -fgpu-rdc --offload-arch=gfx906    -r -fuse-ld=lld -nostdlib /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.lib.o    2>&1 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=LD-R /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=LD-R /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver --hip-link -fgpu-rdc --offload-arch=gfx906 -r -fuse-ld=lld -nostdlib /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.lib.o
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip:37:10: error: LD-R: expected string not found in input
// LD-R: "{{.*}}/clang-offload-bundler"
         ^
<stdin>:27:107: note: scanning from here
 "/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld" -flavor gnu -m elf64_amdgpu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx906 --whole-archive -o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-f1cd3c.out /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-26c8ee.o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-4e41c8.o --no-whole-archive
                                                                                                          ^
<stdin>:27:131: note: possible intended match here
 "/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld" -flavor gnu -m elf64_amdgpu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx906 --whole-archive -o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-f1cd3c.out /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-26c8ee.o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-4e41c8.o --no-whole-archive
                                                                                                                                  ^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip

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

Step 10 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86098 tests, 88 workers --
Testing:  0.. 10
FAIL: Clang :: Driver/hip-partial-link.hip (11037 of 86098)
******************** TEST 'Clang :: Driver/hip-partial-link.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 7: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 11: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.main.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.main.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 15: llvm-nm  /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ1 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ llvm-nm /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ1 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
RUN: at line 20: llvm-nm  /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ2 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ llvm-nm /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=OBJ2 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
RUN: at line 27: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver    --hip-link -fgpu-rdc --offload-arch=gfx906    -r -fuse-ld=lld -nostdlib /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.lib.o    2>&1 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=LD-R /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck -check-prefix=LD-R /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver --hip-link -fgpu-rdc --offload-arch=gfx906 -r -fuse-ld=lld -nostdlib /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.lib.o
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip:37:10: error: LD-R: expected string not found in input
// LD-R: "{{.*}}/clang-offload-bundler"
         ^
<stdin>:27:107: note: scanning from here
 "/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld" -flavor gnu -m elf64_amdgpu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx906 --whole-archive -o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-f1cd3c.out /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-26c8ee.o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-4e41c8.o --no-whole-archive
                                                                                                          ^
<stdin>:27:131: note: possible intended match here
 "/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld" -flavor gnu -m elf64_amdgpu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx906 --whole-archive -o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-f1cd3c.out /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-26c8ee.o /tmp/lit-tmp-v22xzct1/hip-partial-link-gfx906-4e41c8.o --no-whole-archive
                                                                                                                                  ^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip

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

Step 14 (stage2/msan_track_origins check) failure: stage2/msan_track_origins check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86098 tests, 88 workers --
Testing:  0.. 10
FAIL: Clang :: Driver/hip-partial-link.hip (11014 of 86098)
******************** TEST 'Clang :: Driver/hip-partial-link.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 7: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 11: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver    --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc    -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.main.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc -nogpulib -fgpu-rdc -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/Inputs /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.main.o
clang: warning: argument unused during compilation: '-nohipwrapperinc' [-Wunused-command-line-argument]
RUN: at line 15: llvm-nm  /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/FileCheck -check-prefix=OBJ1 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/FileCheck -check-prefix=OBJ1 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ llvm-nm /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o
RUN: at line 20: llvm-nm  /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/FileCheck -check-prefix=OBJ2 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ llvm-nm /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/FileCheck -check-prefix=OBJ2 /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
RUN: at line 27: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver    --hip-link -fgpu-rdc --offload-arch=gfx906    -r -fuse-ld=lld -nostdlib /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.lib.o    2>&1 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/FileCheck -check-prefix=LD-R /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver --hip-link -fgpu-rdc --offload-arch=gfx906 -r -fuse-ld=lld -nostdlib /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.1.o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.2.o -o /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/Driver/Output/hip-partial-link.hip.tmp.lib.o
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/FileCheck -check-prefix=LD-R /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip:37:10: error: LD-R: expected string not found in input
// LD-R: "{{.*}}/clang-offload-bundler"
         ^
<stdin>:27:121: note: scanning from here
 "/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld" -flavor gnu -m elf64_amdgpu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx906 --whole-archive -o /tmp/lit-tmp-pk0k4hag/hip-partial-link-gfx906-e7ccdf.out /tmp/lit-tmp-pk0k4hag/hip-partial-link-gfx906-85b2ce.o /tmp/lit-tmp-pk0k4hag/hip-partial-link-gfx906-51ded3.o --no-whole-archive
                                                                                                                        ^
<stdin>:27:145: note: possible intended match here
 "/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld" -flavor gnu -m elf64_amdgpu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx906 --whole-archive -o /tmp/lit-tmp-pk0k4hag/hip-partial-link-gfx906-e7ccdf.out /tmp/lit-tmp-pk0k4hag/hip-partial-link-gfx906-85b2ce.o /tmp/lit-tmp-pk0k4hag/hip-partial-link-gfx906-51ded3.o --no-whole-archive
                                                                                                                                                ^

Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Driver/hip-partial-link.hip

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 7, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-asan running on sanitizer-buildbot8 while building lld at step 2 "annotate".

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

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-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/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: 82639 of 82640 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: lld :: ELF/aarch64-thunk-bti.s (80178 of 82639)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && split-file /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && cd /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ split-file /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ cd /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
RUN: at line 5: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
RUN: at line 6: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
// CHECK-PADS-NEXT: udf #0x0
                    ^
<stdin>:100:29: note: scanning from here
18001048: b 0x18001050 <fn4>
                            ^
<stdin>:103:1: note: possible intended match here
0000000018001050 <fn4>:
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s

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

Input was:
<<<<<<
            .
            .
Step 10 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/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: 82639 of 82640 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: lld :: ELF/aarch64-thunk-bti.s (80178 of 82639)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && split-file /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp && cd /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ split-file /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
+ cd /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/lld/test/ELF/Output/aarch64-thunk-bti.s.tmp
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -filetype=obj -triple=aarch64 asm -o a.o
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
RUN: at line 5: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s
RUN: at line 6: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-objdump -d --no-show-raw-insn out.so
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s --check-prefix=CHECK-PADS
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input
// CHECK-PADS-NEXT: udf #0x0
                    ^
<stdin>:100:29: note: scanning from here
18001048: b 0x18001050 <fn4>
                            ^
<stdin>:103:1: note: possible intended match here
0000000018001050 <fn4>:
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/lld/test/ELF/aarch64-thunk-bti.s

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

Input was:
<<<<<<
            .
            .

Kyvangka1610 added a commit to Kyvangka1610/llvm-project that referenced this pull request Oct 7, 2024
* commit 'FETCH_HEAD':
  [X86] getIntImmCostInst - pull out repeated Imm.getBitWidth() calls. NFC.
  [X86] Add test coverage for llvm#111323
  [Driver] Use empty multilib file in another test (llvm#111352)
  [clang][OpenMP][test] Use x86_64-linux-gnu triple for test referencing avx512f feature (llvm#111337)
  [doc] Fix Kaleidoscope tutorial chapter 3 code snippet and full listing discrepancies (llvm#111289)
  [Flang][OpenMP] Improve entry block argument creation and binding (llvm#110267)
  [x86] combineMul - handle 0/-1 KnownBits cases before MUL_IMM logic (REAPPLIED)
  [llvm-dis] Fix non-deterministic disassembly across multiple inputs (llvm#110988)
  [lldb][test] TestDataFormatterLibcxxOptionalSimulator.py: change order of ifdefs
  [lldb][test] Add libcxx-simulators test for std::optional (llvm#111133)
  [x86] combineMul - use computeKnownBits directly to find MUL_IMM constant splat. (REAPPLIED)
  Reland "[lldb][test] TestDataFormatterLibcxxStringSimulator.py: add new padding layout" (llvm#111123)
  Revert "[x86] combineMul - use computeKnownBits directly to find MUL_IMM constant splat."
  update_test_checks: fix a simple regression  (llvm#111347)
  [LegalizeVectorTypes] Always widen fabs (llvm#111298)
  [lsan] Make ReportUnsuspendedThreads return bool also for Fuchsia
  [mlir][vector] Add more tests for ConvertVectorToLLVM (6/n) (llvm#111121)
  [bazel] port 9144fed
  [SystemZ] Remove inlining threshold multiplier. (llvm#106058)
  [LegalizeVectorTypes] When widening don't check for libcalls if promoted (llvm#111297)
  [clang][Driver] Improve multilib custom error reporting (llvm#110804)
  [clang][Driver] Rename "FatalError" key to "Error" in multilib.yaml (llvm#110804)
  [LLVM][Maintainers] Update release managers (llvm#111164)
  [Clang][Driver] Add option to provide path for multilib's YAML config file (llvm#109640)
  [LoopVectorize] Remove redundant code in emitSCEVChecks (llvm#111132)
  [AMDGPU] Only emit SCOPE_SYS global_wb (llvm#110636)
  [ELF] Change Ctx::target to unique_ptr (llvm#111260)
  [ELF] Pass Ctx & to some free functions
  [RISCV] Only disassemble fcvtmod.w.d if the rounding mode is rtz. (llvm#111308)
  [Clang] Remove the special-casing for RequiresExprBodyDecl in BuildResolvedCallExpr() after fd87d76 (llvm#111277)
  [ELF] Pass Ctx & to InputFile
  [clang-format] Add AlignFunctionDeclarations to AlignConsecutiveDeclarations (llvm#108241)
  [AMDGPU] Support preloading hidden kernel arguments (llvm#98861)
  [ELF] Move static nextGroupId isInGroup to LinkerDriver
  [clangd] Add ArgumentLists config option under Completion (llvm#111322)
  [ELF] Pass Ctx & to SyntheticSections
  [ELF] Pass Ctx & to Symbols
  [ELF] Pass Ctx & to Symbols
  [ELF] getRelocTargetVA: pass Ctx and Relocation. NFC
  [clang-tidy] Avoid capturing a local variable in a static lambda in UseRangesCheck (llvm#111282)
  [VPlan] Use pointer to member 0 as VPInterleaveRecipe's pointer arg. (llvm#106431)
  [clangd] Simplify ternary expressions with std::optional::value_or (NFC) (llvm#111309)
  [libc++][format][2/3] Optimizes c-string arguments. (llvm#101805)
  [RISCV] Combine RVBUnary and RVKUnary into classes that are more similar to ALU(W)_r(r/i). NFC (llvm#111279)
  [ELF] Pass Ctx & to InputFiles
  [libc] GPU RPC interface: add return value to `rpc_host_call` (llvm#111288)

Signed-off-by: kyvangka1610 <[email protected]>
@smithp35
Copy link
Collaborator

smithp35 commented Oct 7, 2024

A previous patch (BTI Thunk) might introduce flakiness to the test on Windows: C:\ws\src\lld\test\ELF\aarch64-thunk-bti.s:250:21: error: CHECK-PADS-NEXT: expected string not found in input

but it is unrelated to this patch

https://buildkite.com/llvm-project/github-pull-requests/builds/107064#01925dc0-0d9e-4937-b04f-b35c2516f26a

Is there anything I can do to help? It seems like this has started to fail on the address and memory sanitizer bot too. Looks like a different output from llvm-objdump which is a bit concerning.

@zeroomega
Copy link
Contributor

We also see a weird issue on Windows is that during clang test step, lld timed out:
Linking CXX executable unittests\Transforms\Scalar\ScalarTests.exe took 36 minutes and caused the bot timed out.
Your change is the only on the blamelist.

@smithp35
Copy link
Collaborator

smithp35 commented Oct 7, 2024

The specific change to the LLD output in the sanitizer build which I've reproduced locally is that the asan built lld uses 0xbebebebe for the alignment padding between the bti c b target which is disassembled to whereas on a normal release build 0x0 gets used which is disassembled to .

If it is intentional that the padding value might change (undefined perhaps) then I can submit a patch to remove the part of the test. It isn't important what value the padding has.

@zeroomega
Copy link
Contributor

Upstream llvm windows bot https://lab.llvm.org/buildbot/#/builders/63/builds/1953 is also failing after your patch. Though not due to timeout like us.
Could you revert this change and reland it after addressing these failures please?

@smithp35
Copy link
Collaborator

smithp35 commented Oct 7, 2024

I think I've worked out what could be causing the sanitizer build failure. With a static TargetInfo all fields are initialised to 0 so std::array<uint8_t, 4> trapInstr; will get initialised to 0x0. However changing to using new means that this could be unitialised.

@smithp35
Copy link
Collaborator

smithp35 commented Oct 7, 2024

FWIW the sanitizer test failure can be fixed by initialising trapInstr

diff --git a/lld/ELF/Arch/AArch64.cpp b/lld/ELF/Arch/AArch64.cpp
index 1368e209c8cf..e67366584b97 100644
--- a/lld/ELF/Arch/AArch64.cpp
+++ b/lld/ELF/Arch/AArch64.cpp
@@ -126,7 +126,7 @@ AArch64::AArch64(Ctx &ctx) : TargetInfo(ctx) {
   // Align to the 2 MiB page size (known as a superpage or huge page).
   // FreeBSD automatically promotes 2 MiB-aligned allocations.
   defaultImageBase = 0x200000;
-
+  trapInstr = {0x0, 0x0, 0x0, 0x0};
   needsThunks = true;
 }

zeroomega added a commit to zeroomega/llvm-project that referenced this pull request Oct 7, 2024
This reverts commit 4ec06b1.
It broke lld test on Windows.
@bd1976bris
Copy link
Collaborator

bd1976bris commented Oct 7, 2024

We also see a weird issue on Windows is that during clang test step, lld timed out: Linking CXX executable unittests\Transforms\Scalar\ScalarTests.exe took 36 minutes and caused the bot timed out. Your change is the only on the blamelist.

@zeroomega is this repeatable? We haven't seen this on our windows builds.

EDIT - we're not seeing any timeouts.. but I will check for excessive test times.

@zeroomega
Copy link
Contributor

We also see a weird issue on Windows is that during clang test step, lld timed out: Linking CXX executable unittests\Transforms\Scalar\ScalarTests.exe took 36 minutes and caused the bot timed out. Your change is the only on the blamelist.

@zeroomega is this repeatable? We haven't seen this on our windows builds.

EDIT - we're not seeing any timeouts.. but I will check for excessive test times.

I am still digging into the timeout.
So it probably not the linking step timeout but ninja is just waiting for some clang/lld test to finish. This is very consistent on our bot, and the timeout disappeared when the patch was reverted. I need some time to locally reproduce build to debug it further.

@ilovepi
Copy link
Contributor

ilovepi commented Oct 7, 2024

I just posted a revert in: #111449, since this seems to be breaking the windows build bots. We can always reland later with a fixed up version of the patch.

ilovepi added a commit that referenced this pull request Oct 7, 2024
This patch seems to be breaking the windows build bots.
https://lab.llvm.org/buildbot/#/builders/63/builds/1953

We also see this in Fuchsia's Linux CI:
https://fxbug.dev/372010530

This reverts commit 4ec06b1.
@zeroomega
Copy link
Contributor

We also see a weird issue on Windows is that during clang test step, lld timed out: Linking CXX executable unittests\Transforms\Scalar\ScalarTests.exe took 36 minutes and caused the bot timed out. Your change is the only on the blamelist.

@zeroomega is this repeatable? We haven't seen this on our windows builds.

EDIT - we're not seeing any timeouts.. but I will check for excessive test times.

So I did a few test runs locally.

The test timeout (I should say lit probably hanged) on test ELF/aarch64-cortex-a53-843419-thunk-align.s
If I run ninja check-lld with "-DLLVM_LIT_ARGS=-v -j64" , I have a high chance that the check-lld will hang. The host machine is a 16 cores 32 threads machine. However, if I reduces the -j to 16 or even 1, the test will finish with error on lld :: ELF/aarch64-thunk-bti.s. Comparing finished test run with the one that hang, I discovered that ELF/aarch64-cortex-a53-843419-thunk-align.s was not on the list of finished test when -j64 was used. The hang issue resolved itself after this patch was reverted. Could it be some deadlock issue introduced to lld in this patch?

@MaskRay
Copy link
Member Author

MaskRay commented Oct 8, 2024

We also see a weird issue on Windows is that during clang test step, lld timed out: Linking CXX executable unittests\Transforms\Scalar\ScalarTests.exe took 36 minutes and caused the bot timed out. Your change is the only on the blamelist.

@zeroomega is this repeatable? We haven't seen this on our windows builds.
EDIT - we're not seeing any timeouts.. but I will check for excessive test times.

So I did a few test runs locally.

The test timeout (I should say lit probably hanged) on test ELF/aarch64-cortex-a53-843419-thunk-align.s If I run ninja check-lld with "-DLLVM_LIT_ARGS=-v -j64" , I have a high chance that the check-lld will hang. The host machine is a 16 cores 32 threads machine. However, if I reduces the -j to 16 or even 1, the test will finish with error on lld :: ELF/aarch64-thunk-bti.s. Comparing finished test run with the one that hang, I discovered that ELF/aarch64-cortex-a53-843419-thunk-align.s was not on the list of finished test when -j64 was used. The hang issue resolved itself after this patch was reverted. Could it be some deadlock issue introduced to lld in this patch?

Thanks for the investigation. The output file %t2 from test/ELF/aarch64-cortex-a53-843419-thunk-align.s is 134MiB. It
trapInstr is non-zero (used of uninitialized memory as @smithp35 noticed), the non-zero values will be part of llvm-objdump -d output, which will be slow.

The test currently relies on llvm-objdump -d 's zero skipping feature (unless -z is specified). Ideally the test should be changed not to create such a huge output.

MaskRay added a commit that referenced this pull request Oct 8, 2024
Prevent use of uninitialized memory when ctx.target no longer uses
points to static storage duration.

Specifically, uninitialized `trapInstr` caused llvm-objdump output
differences.
(#111260 (comment))
MaskRay added a commit that referenced this pull request Oct 8, 2024
also rename `TargetInfo *getXXXTargetInfo` to `void setXXXTargetInfo`
and change it to set `ctx.target`. This ensures that when `ctx` becomes
a local variable, two lld invocations will not reuse the function-local
static variable.

---

Reland after commit c35214c
([ELF] Initialize TargetInfo members).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants