<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LiveDebugValues crashes on valid code on (anonymous namespace)::LiveDebugValues::accumulateFragmentMap("
   href="https://bugs.llvm.org/show_bug.cgi?id=46086">46086</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LiveDebugValues crashes on valid code on (anonymous namespace)::LiveDebugValues::accumulateFragmentMap(
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ditaliano@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23537" name="attach_23537" title="MIR before LiveDebugValues">attachment 23537</a> <a href="attachment.cgi?id=23537&action=edit" title="MIR before LiveDebugValues">[details]</a></span>
MIR before LiveDebugValues

$ ./llc -run-pass=livedebugvalues foo.mir

PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: ./llc -run-pass=livedebugvalues foo.mir 
1.      Running pass 'Function Pass Manager' on module 'foo.mir'.
2.      Running pass 'Live DEBUG_VALUE analysis' on function '@_Z3barii'
0  llc                      0x000000010e83a23a
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 58
1  llc                      0x000000010e83a779
PrintStackTraceSignalHandler(void*) + 25
2  llc                      0x000000010e83869b llvm::sys::RunSignalHandlers() +
123
3  llc                      0x000000010e83c4e9 SignalHandler(int) + 249
4  libsystem_platform.dylib 0x00007fff7223355d _sigtramp + 29
5  llc                      0x000000010d1c1475
llvm::SmallPtrSet<llvm::MachineBasicBlock const*, 8u>::~SmallPtrSet() + 21
6  llc                      0x000000010da82aaf
llvm::DILocation::getRawInlinedAt() const + 31
7  llc                      0x000000010da8f765 llvm::DILocation::getInlinedAt()
const + 21
8  llc                      0x000000010cfe5934 (anonymous
namespace)::LiveDebugValues::accumulateFragmentMap(llvm::MachineInstr&,
llvm::DenseMap<llvm::DILocalVariable const*,
llvm::SmallSet<llvm::DIExpression::FragmentInfo, 4u,
std::__1::less<llvm::DIExpression::FragmentInfo> >,
llvm::DenseMapInfo<llvm::DILocalVariable const*>,
llvm::detail::DenseMapPair<llvm::DILocalVariable const*,
llvm::SmallSet<llvm::DIExpression::FragmentInfo, 4u,
std::__1::less<llvm::DIExpression::FragmentInfo> > > >&,
llvm::DenseMap<std::__1::pair<llvm::DILocalVariable const*,
llvm::DIExpression::FragmentInfo>,
llvm::SmallVector<llvm::DIExpression::FragmentInfo, 1u>,
llvm::DenseMapInfo<std::__1::pair<llvm::DILocalVariable const*,
llvm::DIExpression::FragmentInfo> >,
llvm::detail::DenseMapPair<std::__1::pair<llvm::DILocalVariable const*,
llvm::DIExpression::FragmentInfo>,
llvm::SmallVector<llvm::DIExpression::FragmentInfo, 1u> > >&) + 84
9  llc                      0x000000010cfe4655 (anonymous
namespace)::LiveDebugValues::ExtendRanges(llvm::MachineFunction&) + 965
10 llc                      0x000000010cfe2359 (anonymous
namespace)::LiveDebugValues::runOnMachineFunction(llvm::MachineFunction&) + 265
11 llc                      0x000000010d18df6d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 541
12 llc                      0x000000010d95fe4c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 700
13 llc                      0x000000010d960445
llvm::FPPassManager::runOnModule(llvm::Module&) + 117
14 llc                      0x000000010d960bc4 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 772
15 llc                      0x000000010d9606e8
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 296
16 llc                      0x000000010d9611f1
llvm::legacy::PassManager::run(llvm::Module&) + 33
17 llc                      0x000000010a6954ee compileModule(char**,
llvm::LLVMContext&) + 6670
18 llc                      0x000000010a693227 main + 1447
19 libdyld.dylib            0x00007fff72026259 start + 1
zsh: segmentation fault  ./llc -run-pass=livedebugvalues foo.mir</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>