Closed
Description
The Windows CI runners have recently started failing with:
thread 'main' panicked at 'failed to copy
D:\a\rust\rust\build\x86_64-pc-windows-msvc\stage1-rustc\x86_64-pc-windows-msvc\release\rustc-main.exe
toD:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2\bin\rustc.exe
: The process cannot access the file because it is being used by another process. (os error 32)', src\bootstrap\lib.rs:1335:17
os error 32 is ERROR_SHARING_VIOLATION
. It is not clear to me what could possibly be locking the file in such a way to prevent reading it.
Recent instances:
- 2021-09-13T20:36:18 Rollup of 7 pull requests #88914: https://github.com/rust-lang-ci/rust/actions/runs/1231002021
- 2021-09-13T21:36:02 Enum should prefer discriminant zero for niche #87794: https://github.com/rust-lang-ci/rust/actions/runs/1231146440
- 2021-09-14T02:08:15 Use a separate interner type for UniqueTypeId #87867: https://github.com/rust-lang-ci/rust/actions/runs/1231817053
- 2021-09-14T03:42:19 Rollup of 6 pull requests #88921: https://github.com/rust-lang-ci/rust/runs/3594233900
- 2021-09-14T04:44:27 Use a separate interner type for UniqueTypeId #87867: https://github.com/rust-lang-ci/rust/runs/3594557656