[llvm-bugs] [Bug 34599] New: Assertion failure in WebAssemblyAsmPrinter

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 14 02:32:06 PDT 2017


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

            Bug ID: 34599
           Summary: Assertion failure in WebAssemblyAsmPrinter
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: john at csquare.ca
                CC: llvm-bugs at lists.llvm.org

Command: llc libc.so -o libc.s  (note: .so file was generated with llvm-link,
and is not a shared library)

Source file: https://github.com/JohnSully/webasm_muscl/blob/master/lib/libc.so

Output:
llc: /home/john/repos/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp:67:
std::__cxx11::string llvm::WebAssemblyAsmPrinter::regToString(const
llvm::MachineOperand&): Assertion `WAReg != WebAssemblyFunctionInfo::UnusedReg'
failed.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x000000000221db6d (llc+0x221db6d)
#1 0x000000000221dc00 (llc+0x221dc00)
#2 0x000000000221bddb (llc+0x221bddb)
#3 0x000000000221d3d9 (llc+0x221d3d9)
#4 0x00007fa95a061390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#5 0x00007fa958ff3428 gsignal
/build/glibc-bfm8X4/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#6 0x00007fa958ff502a abort /build/glibc-bfm8X4/glibc-2.23/stdlib/abort.c:91:0
#7 0x00007fa958febbd7 __assert_fail_base
/build/glibc-bfm8X4/glibc-2.23/assert/assert.c:92:0
#8 0x00007fa958febc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#9 0x0000000000da3546 (llc+0xda3546)
#10 0x0000000000da440e (llc+0xda440e)
#11 0x000000000139c8c7 (llc+0x139c8c7)
#12 0x000000000139ce3c (llc+0x139ce3c)
#13 0x0000000001380630 (llc+0x1380630)
#14 0x0000000000da60ad (llc+0xda60ad)
#15 0x0000000000da62db (llc+0xda62db)
#16 0x0000000001606a1d (llc+0x1606a1d)
#17 0x0000000001a93324 (llc+0x1a93324)
#18 0x0000000001a934c9 (llc+0x1a934c9)
#19 0x0000000001a93851 (llc+0x1a93851)
#20 0x0000000001a93f7b (llc+0x1a93f7b)
#21 0x0000000001a94173 (llc+0x1a94173)
#22 0x0000000000d76b7c (llc+0xd76b7c)
#23 0x0000000000d752e4 (llc+0xd752e4)
#24 0x00007fa958fde830 __libc_start_main
/build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:325:0
#25 0x0000000000d72f59 (llc+0xd72f59)
Stack dump:
0.      Program arguments: llc libc.so -o libc.s
1.      Running pass 'Function Pass Manager' on module 'libc.so'.
2.      Running pass 'WebAssembly Assembly Printer' on function '@aio_suspend'
Aborted (core dumped)

-- 
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/20170914/08ea1661/attachment.html>


More information about the llvm-bugs mailing list