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: unassignedb...@nondot.org
Reporter: tstel...@redhat.com
CC: llvm-bugs@lists.llvm.org, smithp...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs