There were intemittent errors in the linker wrapper when using the
sanitizers in parallel. First, this is because the TempFiles global
was not guarded when creating a new file. Second, even though the Args
list is passed as const, the internal state is mutable when adding a
string. So that needs to be guarded too.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@jhuber6
I really have no idea about the fix, but I've run the linker-wrapper.c testcase with asan built binaries with this fix 500 times now without seeing any failures.
Without the fix it fails in like 1 out of 10 runs so it surely looks like the fix does something good!
Nice!
Comment Actions
Thanks! Thumbs up from me, unfortunately I don't feel confident to review the actual code change.