-
Notifications
You must be signed in to change notification settings - Fork 4.4k
bazel mod show_repo @bazel_tools crashes on HEAD #27233
Copy link
Copy link
Closed
Labels
P1I'll work on this now. (Assignee required)I'll work on this now. (Assignee required)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: bug
Description
Description of the bug:
No response
Which category does this issue belong to?
External Dependency
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
❯ bazel-bin/src/bazel_nojdk mod show_repo @bazel_tools
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'REPO_DEFINITION:@@bazel_tools' (requested by nodes )
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:552)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:435)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1735)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1726)
at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1650)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1394)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1970)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: java.lang.NullPointerException: The bazel_tools override should never be inspected
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at com.google.devtools.build.lib.bazel.bzlmod.NonRegistryOverride.repoSpec(NonRegistryOverride.java:53)
at com.google.devtools.build.lib.bazel.repository.RepoDefinitionFunction.checkRepoFromNonRegistryOverrides(RepoDefinitionFunction.java:135)
at com.google.devtools.build.lib.bazel.repository.RepoDefinitionFunction.compute(RepoDefinitionFunction.java:81)
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:471)
... 8 more
❯ bazel-bin/src/bazel_nojdk mod show_repo @@bazel_tools
Starting local Bazel server (no_version) and connecting to it...
WARNING: ignoring JAVA_TOOL_OPTIONS in environment.
no actions running
Fetching repository @@bazel_features++version_extension+bazel_features_globals; starting
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'REPO_DEFINITION:@@bazel_tools' (requested by nodes )
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:552)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:435)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1735)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1726)
at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1650)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1394)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1970)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: java.lang.NullPointerException: The bazel_tools override should never be inspected
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at com.google.devtools.build.lib.bazel.bzlmod.NonRegistryOverride.repoSpec(NonRegistryOverride.java:53)
at com.google.devtools.build.lib.bazel.repository.RepoDefinitionFunction.checkRepoFromNonRegistryOverrides(RepoDefinitionFunction.java:135)
at com.google.devtools.build.lib.bazel.repository.RepoDefinitionFunction.compute(RepoDefinitionFunction.java:81)
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:471)
... 8 moreWhich operating system are you running Bazel on?
macOS
What is the output of bazel info release?
development version
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
❯ bazelisk version
Bazelisk version: 1.27.0
Build label: 8.4.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Wed Oct 01 16:48:03 2025 (1759337283)
Build timestamp: 1759337283
Build timestamp as int: 1759337283
❯ bazelisk build src:bazel_nojdk
What's the output of git remote get-url origin; git rev-parse HEAD ?
git@github.com:bazelbuild/bazel.git
0972528f8d6b236afffa960da6b7c92d023b35df
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
Bazel 8.4.2 works. I'm guessing this was introduced with e3bd18f.
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1I'll work on this now. (Assignee required)I'll work on this now. (Assignee required)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: bug