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

Created attachment 20174
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.
llvm-bugs mailing list

Reply via email to