[llvm-bugs] [Bug 34864] New: Deadlock inside llvm::parallel::TaskList::spawn stops LLD compiled with MinGW-w64
llvm-bugs at lists.llvm.org
Fri Oct 6 12:14:09 PDT 2017
Bug ID: 34864
Summary: Deadlock inside llvm::parallel::TaskList::spawn stops
LLD compiled with MinGW-w64
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: vasek.gello at gmail.com
CC: llvm-bugs at lists.llvm.org
I managed to build the latest trunk with MinGW-w64 GCC 7.1.0 (posix-seh) and it
works fine producing cross-platform code.
During the tests I noticed that linking an ELF target on Windows host platform
with LLD results in a deadlock in llvm::parallel::TaskList::spawn (basically,
here: https://llvm.org/doxygen/Parallel_8cpp_source.html#l0098 ). The correct
ELF file is produced only if -Wlm--no-threads switch is added to clang command
I tried to change the add() function like described here:
the deadlock moved into ~Latch destructor.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs