<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - release_3.5: llvm::DbgValueHistoryMap::endInstrRange(const llvm::MDNode *, const llvm::MachineInstr &): Assertion `Ranges.back().first->getParent() == MI.getParent()' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=20523">20523</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>release_3.5: llvm::DbgValueHistoryMap::endInstrRange(const llvm::MDNode *, const llvm::MachineInstr &): Assertion `Ranges.back().first->getParent() == MI.getParent()' failed.
          </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>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>robin@icir.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With the current release_35 branch, I'm seeing assertions when using MCJIT with
my code, see below. Not quite sure how to track this down further, let me know
if there's something that would be helpful to provide.

/opt/llvm-git/src/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp:57:
void llvm::DbgValueHistoryMap::endInstrRange(const llvm::MDNode *, const
llvm::MachineInstr &): Assertion `Ranges.back().first->getParent() ==
MI.getParent()' failed.

Program received signal SIGABRT, Aborted.
0x00000032e0835c39 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.18-12.fc20.x86_64
libgcc-4.8.3-1.fc20.x86_64 libpcap-1.5.3-1.fc20.x86_64
libpfm-4.4.0-5.fc20.x86_64 lm_sensors-libs-3.3.4-10.fc20.x86_64
ncurses-libs-5.9-12.20130511.fc20.x86_64 papi-5.2.0-5.fc20.x86_64
zlib-1.2.8-3.fc20.x86_64
(gdb) bt
#0  0x00000032e0835c39 in raise () from /lib64/libc.so.6
#1  0x00000032e0837348 in abort () from /lib64/libc.so.6
#2  0x00000032e082eb96 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00000032e082ec42 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000017411ea in endInstrRange (this=<optimized out>, Var=<optimized
out>, MI=...)
    at
/opt/llvm-git/src/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp:57
#5  llvm::clobberRegisterUses (RegVars=..., RegNo=<optimized out>, HistMap=...,
ClobberingInstr=...)
    at
/opt/llvm-git/src/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp:110
#6  0x00000000017409f7 in llvm::calculateDbgValueHistory (MF=0x6589ed0,
TRI=0x4ce4540, Result=...)
    at
/opt/llvm-git/src/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp:179
#7  0x000000000171b3c2 in llvm::DwarfDebug::beginFunction (this=0x63fa3f0,
MF=0x6589ed0)
    at /opt/llvm-git/src/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1448
#8  0x000000000170232c in llvm::AsmPrinter::EmitFunctionHeader (this=0x63f5c60)
at /opt/llvm-git/src/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:548
#9  0x00000000014747ab in llvm::X86AsmPrinter::runOnMachineFunction
(this=0x63f5c60, MF=...)
    at /opt/llvm-git/src/llvm/lib/Target/X86/X86AsmPrinter.cpp:63
#10 0x00000000017d4bdc in llvm::MachineFunctionPass::runOnFunction
(this=0x63f5c60, F=...)
    at /opt/llvm-git/src/llvm/lib/CodeGen/MachineFunctionPass.cpp:33
#11 0x0000000001d56deb in llvm::FPPassManager::runOnFunction (this=0x4c9c260,
F=...) at /opt/llvm-git/src/llvm/lib/IR/LegacyPassManager.cpp:1545
#12 0x0000000001d5705b in llvm::FPPassManager::runOnModule (this=0x4c9c260,
M=...) at /opt/llvm-git/src/llvm/lib/IR/LegacyPassManager.cpp:1565
#13 0x0000000001d57586 in runOnModule (this=0x4c8eb00, M=...) at
/opt/llvm-git/src/llvm/lib/IR/LegacyPassManager.cpp:1623
#14 llvm::legacy::PassManagerImpl::run (this=0x61137a0, M=...) at
/opt/llvm-git/src/llvm/lib/IR/LegacyPassManager.cpp:1730
#15 0x000000000174be6d in llvm::MCJIT::emitObject (this=0x6113340, M=0x311c320)
at /opt/llvm-git/src/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp:159
#16 0x000000000174c093 in llvm::MCJIT::generateCodeForModule (this=0x6113340,
M=0x311c320)
    at /opt/llvm-git/src/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp:197
#17 0x000000000174cc92 in llvm::MCJIT::getSymbolAddress (this=0x6113340,
Name=..., CheckFunctionsOnly=<optimized out>)
    at /opt/llvm-git/src/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp:332
#18 0x000000000174cdcd in llvm::MCJIT::getFunctionAddress (this=0x6113340,
Name=...) at /opt/llvm-git/src/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp:348
#19 0x0000000000de6c4c in hilti::jit::JIT::nativeFunction (this=0x4d02f00,
ee=0x6113340, module=0x311c320, function=...)
    at /home/XXX/...331
#20 0x0000000000abe8df in hilti::CompilerContext::nativeFunction
(this=0x2e3a128, module=0x311c320, ee=0x6113340, function=...)
    at /home/XXX/...836
#21 0x0000000001388117 in hlt_init_jit (ctx=..., module=0x311c320,
ee=0x6113340) at /home/XXX/...51
#22 0x0000000000a679b5 in runJIT (ctx=..., module=0x311c320, jitargs=...) at
/home/XXX/...194
#23 0x0000000000a6ab69 in main (argc=3, argv=0x7fffffffd418) at
/home/XXX/...421</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>