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

            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: unassignedb...@nondot.org
          Reporter: ahee...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to