Failed

LLVM.Transforms/LoopVectorize.outer_loop_test2.ll (from LLVM)

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

Stacktrace

Script:
--
: 'RUN: at line 16';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer_loop_test2.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/outer_loop_test2.ll
--
Exit Code: 2

Command Output (stderr):
--
+ : 'RUN: at line 16'
+ /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path
+ /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/outer_loop_test2.ll
=================================================================
==48017==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600002e490 at pc 0x000108bc0b87 bp 0x7ffeec817540 sp 0x7ffeec817538
READ of size 8 at 0x60600002e490 thread T0
    #0 0x108bc0b86 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&) TrackingMDRef.h:33
    #1 0x107e92b76 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 0x10871d71a in llvm::IRBuilderBase::InsertPointGuard::~InsertPointGuard() IRBuilder.h:382
    #3 0x108e5e5b0 in llvm::InnerLoopVectorizer::getBroadcastInstrs(llvm::Value*) LoopVectorize.cpp:1999
    #4 0x108e646d1 in llvm::VPTransformState::get(llvm::VPValue*, unsigned int) LoopVectorize.cpp:9121
    #5 0x108e7a271 in llvm::InnerLoopVectorizer::fixNonInductionPHIs(llvm::VPTransformState&) LoopVectorize.cpp:4362
    #6 0x108e78b60 in llvm::InnerLoopVectorizer::fixVectorizedLoop(llvm::VPTransformState&) LoopVectorize.cpp:3806
    #7 0x108eaeed8 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7624
    #8 0x108ec7509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #9 0x108ece25f 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 0x108ecf0c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #11 0x1091d5ddd 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 0x1075dd213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #13 0x103ecf04d 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 0x1075ea468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #15 0x10341632d 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 0x1075d9f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #17 0x1033e9bb7 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 0x103433341 in main opt.cpp:813
    #19 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

0x60600002e490 is located 48 bytes inside of 64-byte region [0x60600002e460,0x60600002e4a0)
freed by thread T0 here:
    #0 0x11503ec3d in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4fc3d)
    #1 0x107a60ba9 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 0x108b2e95d 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 0x108b2eb7d 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 0x108b2ed5c in llvm::ReplaceInstWithInst(llvm::Instruction*, llvm::Instruction*) BasicBlockUtils.cpp:493
    #5 0x108fdaca4 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:319
    #6 0x108fdc5c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #7 0x108fdf0e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #8 0x108eaeec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #9 0x108ec7509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #10 0x108ece25f 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 0x108ecf0c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #12 0x1091d5ddd 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 0x1075dd213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #14 0x103ecf04d 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 0x1075ea468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #16 0x10341632d 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 0x1075d9f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #18 0x1033e9bb7 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 0x103433341 in main opt.cpp:813
    #20 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

previously allocated by thread T0 here:
    #0 0x11503e81d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4f81d)
    #1 0x107633e0f in llvm::User::operator new(unsigned long, unsigned int) User.cpp:146
    #2 0x107327770 in llvm::IRBuilderBase::CreateUnreachable() IRBuilder.h:1114
    #3 0x108fda8e7 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:281
    #4 0x108fdc5c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #5 0x108fdf0e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #6 0x108eaeec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #7 0x108ec7509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #8 0x108ece25f 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 0x108ecf0c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #10 0x1091d5ddd 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 0x1075dd213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #12 0x103ecf04d 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 0x1075ea468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #14 0x10341632d 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 0x1075d9f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #16 0x1033e9bb7 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 0x103433341 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:
  0x1c0c00005c40: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
  0x1c0c00005c50: fd fd fd fd fd fd fd fd fa fa fa fa 00 00 00 00
  0x1c0c00005c60: 00 00 00 00 fa fa fa fa fd fd fd fd fd fd fd fd
  0x1c0c00005c70: fa fa fa fa 00 00 00 00 00 fc fc fc fa fa fa fa
  0x1c0c00005c80: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd
=>0x1c0c00005c90: fd fd[fd]fd fa fa fa fa fd fd fd fd fd fd fd fd
  0x1c0c00005ca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005cb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005cc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005cd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005ce0: 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
==48017==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
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/outer_loop_test2.ll

--