[LLVMbugs] [Bug 20523] New: release_3.5: llvm::DbgValueHistoryMap::endInstrRange(const llvm::MDNode *, const llvm::MachineInstr &): Assertion `Ranges.back().first->getParent() == MI.getParent()' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 3 10:41:42 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20523

            Bug ID: 20523
           Summary: release_3.5:
                    llvm::DbgValueHistoryMap::endInstrRange(const
                    llvm::MDNode *, const llvm::MachineInstr &): Assertion
                    `Ranges.back().first->getParent() == MI.getParent()'
                    failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: robin at icir.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140803/9f516ce7/attachment.html>


More information about the llvm-bugs mailing list