bazelbuild / bazelbuild/bazel

Unrecoverable error while evaluating node in 8.6.0

Open
#29,294 5 comments 0 reactions 0 assignees View on GitHub
team-Core type: bug untriaged
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the bug:

```
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node '@@rules_go++go_sdk+go_default_sdk//:pack.exe#@@supply_chain_tools+//gather_metadata:gather_metadata.bzl%gather_metadata_info ConfiguredTargetKey{label=@@rules_go++go_sdk+go_default_sdk//:pack.exe, config=BuildConfigurationKey[e49cf3ef63cbeea19e55ad383911dfda434880ef5518039079e8306521190d03]} {}' (requested by nodes '@@rules_go++go_sdk+go_default_sdk//:pack_reset#@@supply_chain_tools+//gather_metadata:gather_metadata.bzl%gather_metadata_info ConfiguredTargetKey{label=@@rules_go++go_sdk+go_default_sdk//:pack_reset, config=BuildConfigurationKey[f50cc197b79736a00572fb512a87d7c675532b637fa741aae68261bfc06495ad]} {}', '@@rules_go++go_sdk+go_default_sdk//:pack_reset#@@supply_chain_tools+//gather_metadata:gather_metadata.bzl%gather_metadata_info ConfiguredTargetKey{label=@@rules_go++go_sdk+go_default_sdk//:pack_reset, config=BuildConfigurationKey[3bba2e46754f6a444ef81eb623a6098fbc8286b2c5c7cfad905a2bbde6e54bb3]} {}')
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:547)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:435)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:127)
at com.google.devtools.build.lib.analysis.AspectBaseTargetResolvedToolchainContext.load(AspectBaseTargetResolvedToolchainContext.java:57)
at com.google.devtools.build.lib.skyframe.AspectFunction.getBaseTargetToolchainContexts(AspectFunction.java:556)
at com.google.devtools.build.lib.skyframe.AspectFunction.compute(AspectFunction.java:463)
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:467)
... 8 more
```

### 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.

https://github.com/darkrift/supply-chain/tree/test_toolchains_aspect

cd in examples

`bazel build //toolchains:tools_cyclonedx`

### Which operating system are you running Bazel on?

macos, arm64

### What is the output of `bazel info release`?

release 8.6.0

### If `bazel info release` returns `development 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` ?

```text

```

### 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?

There are quite a few other issues related to the same error, but not sure if it's the exact same underlying root cause / issue

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction repository's examples directory and run `bazel build //toolchains:tools_cyclonedx` on macOS ARM64 using Bazel 8.6.0. Trace the failure through `AspectBaseTargetResolvedToolchainContext.load`, `AspectFunction.getBaseTargetToolchainContexts`, and `AspectFunction.compute`; done means the command no longer produces the unrecoverable internal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.