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

            Bug ID: 37064
           Summary: Deadlock in wasm-ld when linking large archive with
                    object
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: ty...@fastly.com
                CC: llvm-bugs@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:
https://gist.github.com/tyler/94beafc2929b14196fa92c4d334432c2

stdio_test.o and musl.a are attached.

-- 
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