[llvm-bugs] [Bug 48380] New: lld: Possible race condition writing files to lto cache
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 3 16:15:06 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48380
Bug ID: 48380
Summary: lld: Possible race condition writing files to lto
cache
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: tstellar at redhat.com
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
With lld 11.0.0, I am seeing these lit tests fail when running in a container
(very slow disk IO):
lld :: COFF/lto-cache.ll
lld :: ELF/lto/cache.ll
lld :: wasm/lto/cache.ll
These tests are failing, because no objects are being written to the cache
directory. While debugging I noticed if I manually ran the lld commands that
are supposed to generate the cache files and passed the -verbose option to it,
then the cache objects get written. If I remove the -verbose option, then the
cache objects are not written.
This makes me suspect there is some kind of race condition, so either the
program is exiting before the files are completely written or the cache is
getting pruned after the objects are written.
--
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/20201204/3045baad/attachment.html>
More information about the llvm-bugs
mailing list