-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel 8.0.0 crashes on windows: Unrecoverable error while evaluating node, java.nio.file.AccessDeniedException #24801
Comments
@bazel-io fork 8.0.1 |
Could you try to bisect this down to the breaking commit? My best guess would be the switch over to the toolchain in rules_cc, which may be missing a fix. |
It's going to be challenging to bisect as it only fails once every 20 builds or so. If you give me a few commits to manually bisect I can leave each one running for a few hours and see how they get on. |
Could you test 263ad1a? That's the parent of the commit that moves the toolchain to rules_cc. |
I'm hitting build errors with most past commits that I am trying. 263ad1a results in the following. I do not have compatibility_proxy referenced anywhere in my build files.
|
You probably need to prepend the full rules_java release snippet for a recent version to your WORKSPACE file: https://github.com/bazelbuild/rules_java/releases/tag/8.6.3 |
I removed the one last import in my workspace file, enabled common --noenable_workspace, updated to rules_java 8.6.3 in module.bazel. Still getting the same compatibility_proxy error. |
I'm pretty sure that this error can only arise when WORKSPACE is enabled. Are you sure it's disabled on your repo? Does this reproduce if you create an empty WORKSPACE.bazel file? |
Found an errant .bazelrc enable_workspace command, now removed. Now I'm seeing this issue. I have tried rules_java 8.6.1, 8.6.2, 8.6.3
|
Can you test with a custom Bazel binary? Reverting https://cs.opensource.google/bazel/bazel/+/a0a72265ea37270c110630f528127e18939f4016 on 8.0.0 would be an interesting experiment as that's the only change in 8.0.0 that actually touches the method that now fails. If the revert isn't clean, I can help with it. |
I got set up for a custom build, but unless I'm missing something, that commit isn't part of 8.0.0 |
as that commit isn't in 8.0.0, I can't back it out. Do you have any other suggestions? |
will the commit be in the next release? im seeing this issue on ubuntu and mac as well |
You're right, it's not in 8. I don't have any guesses then. Will take another look. Trying some rolling releases between the two prod releases would help. Maybe @hvadehra can help with the rules_java failures during the bisect (in the new year)? |
Description of the bug:
We are seeing this error approx 10-15 times per day in our CI system with bazel 8.0.0. It is for a different DLL each time. Every time it is the same java.nio.file.AccessDeniedException. Rerunning the build command typically succeeds.
Which category does this issue belong to?
Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Windows Server 2022 Standard
What is the output of
bazel info release
?8.0.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: