Failed

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

Failing for the past 2 builds (Since Failed#7703 )
Took 1 min 19 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 x86_64  < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/X86/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/X86/outer_loop_test1_no_explicit_vect_width.ll
: 'RUN: at line 2';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path -mtriple x86_64  -mattr=+avx < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/X86/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/X86/outer_loop_test1_no_explicit_vect_width.ll --check-prefix=AVX
: 'RUN: at line 3';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -S -loop-vectorize -enable-vplan-native-path -mtriple x86_64  -mattr=+avx2 < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/X86/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/X86/outer_loop_test1_no_explicit_vect_width.ll --check-prefix=AVX
--
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 x86_64
+ /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/X86/outer_loop_test1_no_explicit_vect_width.ll
=================================================================
==47432==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600000fb30 at pc 0x0001149dfb87 bp 0x7ffee09f8520 sp 0x7ffee09f8518
READ of size 8 at 0x60600000fb30 thread T0
    #0 0x1149dfb86 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&) TrackingMDRef.h:33
    #1 0x113cb1b76 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 0x11453c71a in llvm::IRBuilderBase::InsertPointGuard::~InsertPointGuard() IRBuilder.h:382
    #3 0x114c7d5b0 in llvm::InnerLoopVectorizer::getBroadcastInstrs(llvm::Value*) LoopVectorize.cpp:1999
    #4 0x114c836d1 in llvm::VPTransformState::get(llvm::VPValue*, unsigned int) LoopVectorize.cpp:9121
    #5 0x114c99271 in llvm::InnerLoopVectorizer::fixNonInductionPHIs(llvm::VPTransformState&) LoopVectorize.cpp:4362
    #6 0x114c97b60 in llvm::InnerLoopVectorizer::fixVectorizedLoop(llvm::VPTransformState&) LoopVectorize.cpp:3806
    #7 0x114ccded8 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7624
    #8 0x114ce6509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #9 0x114ced25f 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 0x114cee0c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #11 0x114ff4ddd 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 0x1133fc213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #13 0x10fcee04d 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 0x113409468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #15 0x10f23532d 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 0x1133f8f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #17 0x10f208bb7 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 0x10f252341 in main opt.cpp:813
    #19 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

0x60600000fb30 is located 48 bytes inside of 64-byte region [0x60600000fb00,0x60600000fb40)
freed by thread T0 here:
    #0 0x120e60c3d in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4fc3d)
    #1 0x11387fba9 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 0x11494d95d 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 0x11494db7d 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 0x11494dd5c in llvm::ReplaceInstWithInst(llvm::Instruction*, llvm::Instruction*) BasicBlockUtils.cpp:493
    #5 0x114df9ca4 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:319
    #6 0x114dfb5c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #7 0x114dfe0e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #8 0x114ccdec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #9 0x114ce6509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #10 0x114ced25f 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 0x114cee0c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #12 0x114ff4ddd 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 0x1133fc213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #14 0x10fcee04d 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 0x113409468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #16 0x10f23532d 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 0x1133f8f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #18 0x10f208bb7 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 0x10f252341 in main opt.cpp:813
    #20 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

previously allocated by thread T0 here:
    #0 0x120e6081d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4f81d)
    #1 0x113452e0f in llvm::User::operator new(unsigned long, unsigned int) User.cpp:146
    #2 0x113146770 in llvm::IRBuilderBase::CreateUnreachable() IRBuilder.h:1114
    #3 0x114df98e7 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:281
    #4 0x114dfb5c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #5 0x114dfe0e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #6 0x114ccdec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #7 0x114ce6509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #8 0x114ced25f 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 0x114cee0c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #10 0x114ff4ddd 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 0x1133fc213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #12 0x10fcee04d 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 0x113409468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #14 0x10f23532d 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 0x1133f8f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #16 0x10f208bb7 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 0x10f252341 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:
  0x1c0c00001f10: 00 00 01 fa fa fa fa fa 00 00 00 00 00 00 02 fa
  0x1c0c00001f20: fa fa fa fa 00 00 00 00 00 00 00 fa fa fa fa fa
  0x1c0c00001f30: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd
  0x1c0c00001f40: fd fd fd fd fa fa fa fa 00 00 00 00 00 00 01 fa
  0x1c0c00001f50: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
=>0x1c0c00001f60: fd fd fd fd fd fd[fd]fd fa fa fa fa fd fd fd fd
  0x1c0c00001f70: fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00001f80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00001f90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00001fa0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00001fb0: 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
==47432==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 x86_64
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/X86/outer_loop_test1_no_explicit_vect_width.ll

--