-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: failed to remove file (Access is denied) after child process on Windows in TestLocalImportsEasySub #23171
Comments
Looks very likely the same problem to me. Alex |
I've been seeing this fairly regularly on the trybots. Just this morning: https://go-review.googlesource.com/c/go/+/147098/7#message-504472723e1be98173b0abcc51dd8e752b9c7654 |
@aclements, we removed (in 5c35973, https://go-review.googlesource.com/c/145221) a 5ms sleep in the Windows exec wait path, hoping it was only needed on Windows XP, but apparently not. (Bug: #25965) We're clearly doing something wrong on Windows if we need a 5ms sleep to work around it. |
Change https://golang.org/cl/148957 mentions this issue: |
This reverts CL 145221 (commit 5c35973) Reason for revert: breaks the build occasionally. Updates #23171 Updates #25965 Change-Id: Ie1e3c76ab9bcd8d28b6118440b5f80c76f9b1852 Reviewed-on: https://go-review.googlesource.com/c/148957 Run-TryBot: Alex Brainman <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
Is that #19491? |
Yes. And, probably, many others - for example #25965 (comment) Alex |
same issues |
Duplicate of #30789 |
Windows XP test flake:
https://build.golang.org/log/9f8d95ce0a594f5634d30e4f9b842decdd39ed3e
I looked at the test and it seems fine. It should wait for any child process to finish before it cleans up, so I don't see how windows would return an access error on the delete.
Maybe related to our general os.Process.Wait woes on Windows?
/cc @johnsonj @alexbrainman
The text was updated successfully, but these errors were encountered: