[llvm-bugs] [Bug 37064] New: Deadlock in wasm-ld when linking large archive with object

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 9 15:15:28 PDT 2018


            Bug ID: 37064
           Summary: Deadlock in wasm-ld when linking large archive with
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: tyler at fastly.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20174
  --> https://bugs.llvm.org/attachment.cgi?id=20174&action=edit
tar file of musl.a and stdio_test.o

wasm-ld occasionally hits what I assume is a deadlocking race condition when
linking a large wasm archive file with a small wasm object file. It sees to
occur more frequently on slower machines. The issue vanishes when wasm-ld is
run with "--no-threads".

I am using llvm 6.0.0 and invoking wasm-ld like so:
wasm-ld --no-entry --allow-undefined stdio_test.o musl.a -o stdio_test.wasm

Backtraces of all running threads can be found here, however I don't have a
debug build of LLVM handy so it's of limited use:

stdio_test.o and musl.a are attached.

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/20180409/9c66bdc3/attachment-0001.html>

More information about the llvm-bugs mailing list