[llvm-bugs] [Bug 31466] New: Unexpected 4-operand DBG_VALUE instruction!

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 25 03:44:56 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31466

            Bug ID: 31466
           Summary: Unexpected 4-operand DBG_VALUE instruction!
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: octoploid at yandex.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

% cat planar_functions-095ee9.ii
extern void fn1(int, int, int, int, int, int, int, int);
extern void fn2(int *);
void fn3() {
  fn1(0, 0, 0, 0, 0, 0, 0, 0);
  int a;
  for (;;)
    fn2(&a);
}

 % /usr/local/bin/clang-4.0 -cc1 -emit-obj -debug-info-kind=limited -O2 -x c++
planar_functions-095ee9.ii
Unexpected 4-operand DBG_VALUE instruction!
UNREACHABLE executed at
/home/markus/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:807!
#0 0x00007f8f52495725 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib/libLLVMSupport.so.40+0xfe725)
#1 0x00007f8f52493206 llvm::sys::RunSignalHandlers()
(/usr/local/bin/../lib/libLLVMSupport.so.40+0xfc206)
#2 0x00007f8f5249356a SignalHandler(int)
(/usr/local/bin/../lib/libLLVMSupport.so.40+0xfc56a)
#3 0x00007f8f51e5ebd0 __restore_rt (/lib/libpthread.so.0+0x11bd0)
#4 0x00007f8f50c220ae __GI_raise
/home/markus/glibc/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#5 0x00007f8f50c23cbb __GI_abort /home/markus/glibc/stdlib/abort.c:91:0
#6 0x00007f8f5241e1da (/usr/local/bin/../lib/libLLVMSupport.so.40+0x871da)
#7 0x00007f8f50b67d09
(/usr/local/bin/../lib/../lib/libLLVMAsmPrinter.so.40+0x68d09)
#8 0x00007f8f50b68082
llvm::DwarfDebug::collectVariableInfo(llvm::DwarfCompileUnit&,
llvm::DISubprogram const*, llvm::DenseSet<std::pair<llvm::DILocalVariable
const*, llvm::DILocation const*>,
llvm::DenseMapInfo<std::pair<llvm::DILocalVariable const*, llvm::DILocation
const*> > >&) (/usr/local/bin/../lib/../lib/libLLVMAsmPrinter.so.40+0x69082)
#9 0x00007f8f50b689ec llvm::DwarfDebug::endFunction(llvm::MachineFunction
const*) (/usr/local/bin/../lib/../lib/libLLVMAsmPrinter.so.40+0x699ec)
#10 0x00007f8f50b272dc llvm::AsmPrinter::EmitFunctionBody()
(/usr/local/bin/../lib/../lib/libLLVMAsmPrinter.so.40+0x282dc)
#11 0x00007f8f53cfd5f9
llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
(/usr/local/bin/../lib/libLLVMX86CodeGen.so.40+0x4b5f9)
#12 0x00007f8f5313d52c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/local/bin/../lib/libLLVMCodeGen.so.40+0x1ef52c)
#13 0x00007f8f52d7ec38 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/bin/../lib/libLLVMCore.so.40+0x177c38)
#14 0x00007f8f52d7ec99 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/bin/../lib/libLLVMCore.so.40+0x177c99)
#15 0x00007f8f52d7e320 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/bin/../lib/libLLVMCore.so.40+0x177320)
#16 0x00007f8f5174e459 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/local/bin/../lib/libclangCodeGen.so.40+0x9c459)
#17 0x00007f8f51918af6
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/bin/../lib/libclangCodeGen.so.40+0x266af6)
#18 0x00007f8f4fa1dd6a clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/bin/../lib/../lib/libclangParse.so.40+0x2cd6a)
#19 0x00007f8f51913730 clang::CodeGenAction::ExecuteAction()
(/usr/local/bin/../lib/libclangCodeGen.so.40+0x261730)
#20 0x00007f8f514b008e clang::FrontendAction::Execute()
(/usr/local/bin/../lib/libclangFrontend.so.40+0xc008e)
#21 0x00007f8f5147579c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/../lib/libclangFrontend.so.40+0x8579c)
#22 0x00007f8f513ec8d1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/../lib/libclangFrontendTool.so.40+0x38d1)
#23 0x000000000040f6b0 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-4.0+0x40f6b0)
#24 0x000000000040ad1e main (/usr/local/bin/clang-4.0+0x40ad1e)
#25 0x00007f8f50c0c331 __libc_start_main
/home/markus/glibc/csu/../csu/libc-start.c:320:0
#26 0x000000000040be1a _start
/home/markus/glibc/csu/../sysdeps/x86_64/start.S:122:0
Stack dump:
0.      Program arguments: /usr/local/bin/clang-4.0 -cc1 -emit-obj
-debug-info-kind=limited -O2 -x c++ planar_functions-095ee9.ii
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'planar_functions-095ee9.ii'.
4.      Running pass 'X86 Assembly Printer' on function '@_Z3fn3v'
[1]    17538 abort      /usr/local/bin/clang-4.0 -cc1 -emit-obj
-debug-info-kind=limited -O2 -x c++

-- 
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/20161225/227c22c0/attachment.html>


More information about the llvm-bugs mailing list