[LLVMbugs] [Bug 20416] New: Backend crash when emitting optimized code with debug info

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 23 11:25:34 PDT 2014


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

            Bug ID: 20416
           Summary: Backend crash when emitting optimized code with debug
                    info
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PTX
          Assignee: unassignedbugs at nondot.org
          Reporter: eliben at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12814
  --> http://llvm.org/bugs/attachment.cgi?id=12814&action=edit
reproducer

Sample IR file attached.

--------------

llc -march=nvptx -o z.ptx compute.optimized.ll 
llc: /media/SSD1/llvm/llvm_svn_rw/include/llvm/MC/MCRegisterInfo.h:316: const
llvm::MCRegisterDesc& llvm::MCRegisterInfo::operator[](unsigned int) const:
Assertion `RegNo < NumRegs && "Attempting to access record for invalid register
number!"' failed.
0  llc             0x0000000001c24431 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  llc             0x0000000001c246ae
2  llc             0x0000000001c2405d
3  libpthread.so.0 0x00007f53d1faccb0
4  libc.so.6       0x00007f53d0dcc425 gsignal + 53
5  libc.so.6       0x00007f53d0dcfb8b abort + 379
6  libc.so.6       0x00007f53d0dc50ee
7  libc.so.6       0x00007f53d0dc5192
8  llc             0x0000000000b6ed4c
9  llc             0x0000000000b6ed8a
10 llc             0x0000000000bfc8e5
11 llc             0x00000000014806fb
12 llc             0x0000000001480d3d llvm::AsmPrinter::EmitFunctionBody() +
925
13 llc             0x0000000000b6ac79
14 llc             0x00000000015cf517
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
15 llc             0x0000000001b1c874
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
16 llc             0x0000000001b1c9e4
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
17 llc             0x0000000001b1cd38
18 llc             0x0000000001b1d3e2
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 244
19 llc             0x0000000001b1d601
llvm::legacy::PassManager::run(llvm::Module&) + 39
20 llc             0x0000000000a5c14e
21 llc             0x0000000000a5b409 main + 237
22 libc.so.6       0x00007f53d0db776d __libc_start_main + 237
23 llc             0x0000000000a58d79
Stack dump:
0.    Program arguments:
/usr/local/google/home/eliben/llvm/build/svn-make-debug/Debug+Asserts/bin/llc
-march=nvptx -o z.ptx compute.optimized.ll 
1.    Running pass 'Function Pass Manager' on module 'compute.optimized.ll'.
2.    Running pass 'NVPTX Assembly Printer' on function '@foo'
Aborted (core dumped)

--------------


The crash goes away if verbose asm output is disabled.

-- 
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/20140723/4676e225/attachment.html>


More information about the llvm-bugs mailing list