Failed

LLVM.Transforms/LoopVectorize/AArch64.outer_loop_test1_no_explicit_vect_width.ll (from LLVM)

Failing for the past 2 builds (Since Failed#7703 )
Took 1 min 36 sec.

Stacktrace

Script:
--
: 'RUN: at line 1';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path -mtriple aarch64-gnu-linux < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/outer_loop_test1_no_explicit_vect_width.ll | /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/outer_loop_test1_no_explicit_vect_width.ll
--
Exit Code: 2

Command Output (stderr):
--
+ : 'RUN: at line 1'
+ /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path -mtriple aarch64-gnu-linux
+ /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/outer_loop_test1_no_explicit_vect_width.ll
=================================================================
==47030==ERROR: AddressSanitizer: heap-use-after-free on address 0x6060000306b0 at pc 0x000108086b87 bp 0x7ffeed351520 sp 0x7ffeed351518
READ of size 8 at 0x6060000306b0 thread T0
    #0 0x108086b86 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&) TrackingMDRef.h:33
    #1 0x107358b76 in llvm::IRBuilderBase::SetInsertPoint(llvm::BasicBlock*, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>) IRBuilder.h:204
    #2 0x107be371a in llvm::IRBuilderBase::InsertPointGuard::~InsertPointGuard() IRBuilder.h:382
    #3 0x1083245b0 in llvm::InnerLoopVectorizer::getBroadcastInstrs(llvm::Value*) LoopVectorize.cpp:1999
    #4 0x10832a6d1 in llvm::VPTransformState::get(llvm::VPValue*, unsigned int) LoopVectorize.cpp:9121
    #5 0x108340271 in llvm::InnerLoopVectorizer::fixNonInductionPHIs(llvm::VPTransformState&) LoopVectorize.cpp:4362
    #6 0x10833eb60 in llvm::InnerLoopVectorizer::fixVectorizedLoop(llvm::VPTransformState&) LoopVectorize.cpp:3806
    #7 0x108374ed8 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7624
    #8 0x10838d509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #9 0x10839425f in llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::__1::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) LoopVectorize.cpp:9671
    #10 0x1083950c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #11 0x10869bddd in llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #12 0x106aa3213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #13 0x10339504d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #14 0x106ab0468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #15 0x1028dc32d in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManagerInternal.h:85
    #16 0x106a9ff6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #17 0x1028afbb7 in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) NewPMDriver.cpp:449
    #18 0x1028f9341 in main opt.cpp:813
    #19 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

0x6060000306b0 is located 48 bytes inside of 64-byte region [0x606000030680,0x6060000306c0)
freed by thread T0 here:
    #0 0x11450bc3d in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4fc3d)
    #1 0x106f26ba9 in llvm::iplist_impl<llvm::simple_ilist<llvm::Instruction>, llvm::SymbolTableListTraits<llvm::Instruction> >::erase(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>) ilist.h:268
    #2 0x107ff495d in llvm::ReplaceInstWithValue(llvm::SymbolTableList<llvm::Instruction>&, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>&, llvm::Value*) BasicBlockUtils.cpp:468
    #3 0x107ff4b7d in llvm::ReplaceInstWithInst(llvm::SymbolTableList<llvm::Instruction>&, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>&, llvm::Instruction*) BasicBlockUtils.cpp:485
    #4 0x107ff4d5c in llvm::ReplaceInstWithInst(llvm::Instruction*, llvm::Instruction*) BasicBlockUtils.cpp:493
    #5 0x1084a0ca4 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:319
    #6 0x1084a25c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #7 0x1084a50e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #8 0x108374ec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #9 0x10838d509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #10 0x10839425f in llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::__1::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) LoopVectorize.cpp:9671
    #11 0x1083950c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #12 0x10869bddd in llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #13 0x106aa3213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #14 0x10339504d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #15 0x106ab0468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #16 0x1028dc32d in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManagerInternal.h:85
    #17 0x106a9ff6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #18 0x1028afbb7 in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) NewPMDriver.cpp:449
    #19 0x1028f9341 in main opt.cpp:813
    #20 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

previously allocated by thread T0 here:
    #0 0x11450b81d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4f81d)
    #1 0x106af9e0f in llvm::User::operator new(unsigned long, unsigned int) User.cpp:146
    #2 0x1067ed770 in llvm::IRBuilderBase::CreateUnreachable() IRBuilder.h:1114
    #3 0x1084a08e7 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:281
    #4 0x1084a25c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #5 0x1084a50e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #6 0x108374ec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #7 0x10838d509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #8 0x10839425f in llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::__1::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) LoopVectorize.cpp:9671
    #9 0x1083950c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #10 0x10869bddd in llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #11 0x106aa3213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #12 0x10339504d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #13 0x106ab0468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #14 0x1028dc32d in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManagerInternal.h:85
    #15 0x106a9ff6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #16 0x1028afbb7 in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) NewPMDriver.cpp:449
    #17 0x1028f9341 in main opt.cpp:813
    #18 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

SUMMARY: AddressSanitizer: heap-use-after-free TrackingMDRef.h:33 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&)
Shadow bytes around the buggy address:
  0x1c0c00006080: 00 00 01 fa fa fa fa fa 00 00 00 00 00 00 02 fa
  0x1c0c00006090: fa fa fa fa 00 00 00 00 00 00 00 fa fa fa fa fa
  0x1c0c000060a0: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd
  0x1c0c000060b0: fd fd fd fd fa fa fa fa 00 00 00 00 00 00 01 fa
  0x1c0c000060c0: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
=>0x1c0c000060d0: fd fd fd fd fd fd[fd]fd fa fa fa fa fd fd fd fd
  0x1c0c000060e0: fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c000060f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00006100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00006110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00006120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==47030==ABORTING
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path -mtriple aarch64-gnu-linux
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/outer_loop_test1_no_explicit_vect_width.ll

--