[llvm-bugs] [Bug 39558] New: obj2yaml crashes on object files created by llvm-mc

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 5 00:29:50 PST 2018


            Bug ID: 39558
           Summary: obj2yaml crashes on object files created by llvm-mc
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: aheejin at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 21089
  --> https://bugs.llvm.org/attachment.cgi?id=21089&action=edit
Test case .ll file

This bug was accidentally discovered while filing
https://bugs.llvm.org/show_bug.cgi?id=39557. The test case is the same with
PR39557 except now function 'foo' does not take an argument. I don't know why,
but now obj2yaml crashes on reading the object file created from .s file using
llvm-mc. llvm-objdump crashes too.

Commands that reproduce the bug:
llc -filetype=asm -asm-verbose=false test.ll -o test.s
llvm-mc -triple=wasm32-unknown-unknown -filetype=obj test.s -o test_from_s.o
obj2yaml test_from_s.o > test_from_s.yaml  <-- crashes!
llvm-objdump -disassemble test_from_s.o    <-- crashes too!

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/20181105/123b324f/attachment-0001.html>

More information about the llvm-bugs mailing list