[llvm-bugs] [Bug 17519] Assertion `RegNo < NumRegs && "Attempting to access record for invalid register number!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 22 04:40:05 PDT 2015


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

Tim Besard <tim.besard at elis.ugent.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |tim.besard at elis.ugent.be
         Resolution|FIXED                       |---

--- Comment #2 from Tim Besard <tim.besard at elis.ugent.be> ---
Sorry to re-open, but I'm coming across this assertion as well, apparently not
fixed in r192444 for my case.

I'll be attaching some bitcode files for reproducing the issue; the 3.4 one
compatible with r192444, the others respectively for 3.7 and trunk.

$ llc reduced-trunk.ll
llc: llvm/src/llvm/include/llvm/MC/MCRegisterInfo.h:325: const
llvm::MCRegisterDesc &llvm::MCRegisterInfo::operator[](unsigned int) const:
Assertion `RegNo < NumRegs && "Attempting to access record for invalid register
number!"' failed.
0  libLLVMSupport.so.3.8      0x00007ffa1a225fde
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1  libLLVMSupport.so.3.8      0x00007ffa1a227179
2  libLLVMSupport.so.3.8      0x00007ffa1a225b33 llvm::sys::RunSignalHandlers()
+ 131
3  libLLVMSupport.so.3.8      0x00007ffa1a2275ff
4  libc.so.6                  0x00007ffa19302180
5  libc.so.6                  0x00007ffa19302107 gsignal + 55
6  libc.so.6                  0x00007ffa193034e8 abort + 328
7  libc.so.6                  0x00007ffa192fb226
8  libc.so.6                  0x00007ffa192fb2d2
9  libLLVMAsmPrinter.so.3.8   0x00007ffa1cb8c557
10 libLLVMAsmPrinter.so.3.8   0x00007ffa1cb8c4fb
11 libLLVMAsmPrinter.so.3.8   0x00007ffa1cb79293
12 libLLVMAsmPrinter.so.3.8   0x00007ffa1cb6d7c1
13 libLLVMAsmPrinter.so.3.8   0x00007ffa1cb6c3c7
llvm::AsmPrinter::EmitFunctionBody() + 1143
14 libLLVMNVPTXCodeGen.so.3.8 0x00007ffa1dd276e8
15 libLLVMNVPTXCodeGen.so.3.8 0x00007ffa1dd19ebb
16 libLLVMCodeGen.so.3.8      0x00007ffa1c48474e
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 110
17 libLLVMCore.so.3.8         0x00007ffa1bce97c0
llvm::FPPassManager::runOnFunction(llvm::Function&) + 416
18 libLLVMCore.so.3.8         0x00007ffa1bce9af5
llvm::FPPassManager::runOnModule(llvm::Module&) + 117
19 libLLVMCore.so.3.8         0x00007ffa1bcea2e1
20 libLLVMCore.so.3.8         0x00007ffa1bce9ddb
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 347
21 libLLVMCore.so.3.8         0x00007ffa1bcea821
llvm::legacy::PassManager::run(llvm::Module&) + 33
22 llc                        0x0000000000414840
23 llc                        0x0000000000413299 main + 233
24 libc.so.6                  0x00007ffa192eeb45 __libc_start_main + 245
25 llc                        0x0000000000412f7d
Stack dump:
0.    Program arguments: llc reduced-trunk.ll 
1.    Running pass 'Function Pass Manager' on module 'reduced-trunk.ll'.
2.    Running pass 'NVPTX Assembly Printer' on function '@kernel'
Aborted

-- 
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/20151022/0ce49600/attachment.html>


More information about the llvm-bugs mailing list