Regression

LLVM.Transforms/DeadStoreElimination/MSSA.debuginfo.ll (from LLVM)

Failing for the past 1 build (Since Failed#6937 )
Took 22 sec.

Stacktrace

Script:
--
: 'RUN: at line 1';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/DeadStoreElimination/MSSA/debuginfo.ll -debugify -basicaa -dse -enable-dse-memoryssa -S | /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/DeadStoreElimination/MSSA/debuginfo.ll
--
Exit Code: 2

Command Output (stderr):
--
=================================================================
==91403==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d000004ce0 at pc 0x000105187bf4 bp 0x7ffeef496650 sp 0x7ffeef496648
READ of size 1 at 0x60d000004ce0 thread T0
    #0 0x105187bf3 in (anonymous namespace)::eliminateDeadStoresMemorySSA(llvm::Function&, llvm::AAResults&, llvm::MemorySSA&, llvm::DominatorTree&, llvm::PostDominatorTree&, llvm::TargetLibraryInfo const&) Value.h:485
    #1 0x1044fbfe4 in llvm::FPPassManager::runOnFunction(llvm::Function&) LegacyPassManager.cpp:1482
    #2 0x1044fcb4b in llvm::FPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:1518
    #3 0x1044fd91f in llvm::legacy::PassManagerImpl::run(llvm::Module&) LegacyPassManager.cpp:1583
    #4 0x1007bbea9 in main opt.cpp:940
    #5 0x7fff7dcae084 in start+0x0 (libdyld.dylib:x86_64+0x17084)

0x60d000004ce0 is located 64 bytes inside of 144-byte region [0x60d000004ca0,0x60d000004d30)
freed by thread T0 here:
    #0 0x111c3a64d in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x5264d)
    #1 0x1033fb531 in llvm::iplist_impl<llvm::simple_ilist<llvm::MemoryAccess, llvm::ilist_tag<llvm::MSSAHelpers::AllAccessTag> >, llvm::ilist_traits<llvm::MemoryAccess> >::erase(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::MemoryAccess, false, false, llvm::MSSAHelpers::AllAccessTag>, false, false>) MemorySSA.h:233
    #2 0x1034059f1 in llvm::MemorySSA::removeFromLists(llvm::MemoryAccess*, bool) ilist.h:272
    #3 0x10342d618 in llvm::MemorySSAUpdater::removeMemoryAccess(llvm::MemoryAccess*, bool) MemorySSAUpdater.cpp:1329
    #4 0x1051864cf in (anonymous namespace)::eliminateDeadStoresMemorySSA(llvm::Function&, llvm::AAResults&, llvm::MemorySSA&, llvm::DominatorTree&, llvm::PostDominatorTree&, llvm::TargetLibraryInfo const&) DeadStoreElimination.cpp:1684
    #5 0x1044fbfe4 in llvm::FPPassManager::runOnFunction(llvm::Function&) LegacyPassManager.cpp:1482
    #6 0x1044fcb4b in llvm::FPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:1518
    #7 0x1044fd91f in llvm::legacy::PassManagerImpl::run(llvm::Module&) LegacyPassManager.cpp:1583
    #8 0x1007bbea9 in main opt.cpp:940
    #9 0x7fff7dcae084 in start+0x0 (libdyld.dylib:x86_64+0x17084)

previously allocated by thread T0 here:
    #0 0x111c3a22d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x5222d)
    #1 0x10464040b in llvm::User::operator new(unsigned long, unsigned int) User.cpp:124
    #2 0x10340324f in llvm::MemoryUseOrDef* llvm::MemorySSA::createNewAccess<llvm::BatchAAResults>(llvm::Instruction*, llvm::BatchAAResults*, llvm::MemoryUseOrDef const*) MemorySSA.h:389
    #3 0x1033fc1e1 in llvm::MemorySSA::buildMemorySSA(llvm::BatchAAResults&) MemorySSA.cpp:1528
    #4 0x1033fb96d in llvm::MemorySSA::MemorySSA(llvm::Function&, llvm::AAResults*, llvm::DominatorTree*) MemorySSA.cpp:1235
    #5 0x10340b674 in llvm::MemorySSAWrapperPass::runOnFunction(llvm::Function&) MemorySSA.cpp:1227
    #6 0x1044fbfe4 in llvm::FPPassManager::runOnFunction(llvm::Function&) LegacyPassManager.cpp:1482
    #7 0x1044fcb4b in llvm::FPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:1518
    #8 0x1044fd91f in llvm::legacy::PassManagerImpl::run(llvm::Module&) LegacyPassManager.cpp:1583
    #9 0x1007bbea9 in main opt.cpp:940
    #10 0x7fff7dcae084 in start+0x0 (libdyld.dylib:x86_64+0x17084)

SUMMARY: AddressSanitizer: heap-use-after-free Value.h:485 in (anonymous namespace)::eliminateDeadStoresMemorySSA(llvm::Function&, llvm::AAResults&, llvm::MemorySSA&, llvm::DominatorTree&, llvm::PostDominatorTree&, llvm::TargetLibraryInfo const&)
Shadow bytes around the buggy address:
  0x1c1a00000940: fa fa fa fa fa fa 00 00 00 00 00 00 00 00 00 00
  0x1c1a00000950: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
  0x1c1a00000960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c1a00000970: 00 00 fa fa fa fa fa fa fa fa 00 00 00 00 00 00
  0x1c1a00000980: 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
=>0x1c1a00000990: fa fa fa fa fd fd fd fd fd fd fd fd[fd]fd fd fd
  0x1c1a000009a0: fd fd fd fd fd fd fa fa fa fa fa fa fa fa 00 00
  0x1c1a000009b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c1a000009c0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x1c1a000009d0: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa
  0x1c1a000009e0: fa fa fd fd fd fd fd fd fd fd fd fd fd fd fd fd
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
==91403==ABORTING
Stack dump:
0.	Program arguments: /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -debugify -basicaa -dse -enable-dse-memoryssa -S 
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'Dead Store Elimination' on function '@test_salvage'
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/DeadStoreElimination/MSSA/debuginfo.ll

--