Skip to content
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

chore: Bazel 8 crash repro #1426

Closed
wants to merge 3 commits into from
Closed

chore: Bazel 8 crash repro #1426

wants to merge 3 commits into from

Conversation

cgrindel
Copy link
Owner

@cgrindel cgrindel commented Jan 3, 2025

Repro steps

  1. On a MacOS machine, check out this branch.
  2. cd into examples/interesting_deps.
  3. Execute ./do_test.

Error

FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=//:objc_test.__internal__.__test_bundle, config=BuildConfigurationKey[dc506c23dff2485b881c1bfd5c448c16067d6af816a78505bf874b025e872c82]}' (requested by nodes 'ConfiguredTargetKey{label=//:objc_test.__internal__.__test_bundle, config=BuildConfigurationKey[979cccbceb65260db898974ca8651cc28771dcaf49ac80d45359f5dc8bbad9c5]}')
	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.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.scan(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: net.starlark.java.eval.Starlark$UncheckedEvalException: IllegalArgumentException thrown during Starlark evaluation (//:objc_test.__internal__.__test_bundle)
	at <starlark>.declare_shareable_artifact(<builtin>:0)
	at <starlark>._register_configuration_specific_link_actions(/virtual_builtins_bzl/common/objc/compilation_support.bzl:858)
	at <starlark>._link_multi_arch_binary(/private/var/tmp/_bazel_chuck/8b32dd6e1a85e5557fd40f4b85e6289a/external/rules_apple+/apple/internal/linking_support.bzl:297)
	at <starlark>._register_binary_linking_action(/private/var/tmp/_bazel_chuck/8b32dd6e1a85e5557fd40f4b85e6289a/external/rules_apple+/apple/internal/linking_support.bzl:525)
	at <starlark>._apple_test_bundle_impl(/private/var/tmp/_bazel_chuck/8b32dd6e1a85e5557fd40f4b85e6289a/external/rules_apple+/apple/internal/testing/apple_test_bundle_support.bzl:377)
	at <starlark>._macos_unit_test_bundle_impl(/private/var/tmp/_bazel_chuck/8b32dd6e1a85e5557fd40f4b85e6289a/external/rules_apple+/apple/internal/testing/macos_rules.bzl:77)
Caused by: java.lang.IllegalArgumentException: /objc_test.__internal__.__test_bundle_bin
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
	at com.google.devtools.build.lib.actions.ArtifactFactory.validatePath(ArtifactFactory.java:183)
	at com.google.devtools.build.lib.actions.ArtifactFactory.getDerivedArtifact(ArtifactFactory.java:227)
	at com.google.devtools.build.lib.analysis.CachingAnalysisEnvironment.getDerivedArtifact(CachingAnalysisEnvironment.java:282)
	at com.google.devtools.build.lib.analysis.CachingAnalysisEnvironment.getDerivedArtifact(CachingAnalysisEnvironment.java:274)
	at com.google.devtools.build.lib.analysis.RuleContext.getShareableArtifact(RuleContext.java:716)
	at com.google.devtools.build.lib.analysis.starlark.StarlarkActionFactory.createShareableArtifact(StarlarkActionFactory.java:1023)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at net.starlark.java.eval.MethodDescriptor.call(MethodDescriptor.java:178)
	at net.starlark.java.eval.BuiltinFunction.fastcall(BuiltinFunction.java:78)
	at net.starlark.java.eval.Starlark.fastcall(Starlark.java:807)
	at net.starlark.java.eval.Eval.evalCall(Eval.java:699)
	at net.starlark.java.eval.Eval.eval(Eval.java:514)
	at net.starlark.java.eval.Eval.execAssignment(Eval.java:121)
	at net.starlark.java.eval.Eval.exec(Eval.java:285)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execIf(Eval.java:224)
	at net.starlark.java.eval.Eval.exec(Eval.java:300)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execFunctionBody(Eval.java:66)
	at net.starlark.java.eval.StarlarkFunction.fastcall(StarlarkFunction.java:208)
	at net.starlark.java.eval.Starlark.fastcall(Starlark.java:807)
	at net.starlark.java.eval.Eval.evalCall(Eval.java:699)
	at net.starlark.java.eval.Eval.eval(Eval.java:514)
	at net.starlark.java.eval.Eval.execAssignment(Eval.java:121)
	at net.starlark.java.eval.Eval.exec(Eval.java:285)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execFor(Eval.java:138)
	at net.starlark.java.eval.Eval.exec(Eval.java:293)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execFunctionBody(Eval.java:66)
	at net.starlark.java.eval.StarlarkFunction.fastcall(StarlarkFunction.java:208)
	at net.starlark.java.eval.Starlark.fastcall(Starlark.java:807)
	at net.starlark.java.eval.Eval.evalCall(Eval.java:699)
	at net.starlark.java.eval.Eval.eval(Eval.java:514)
	at net.starlark.java.eval.Eval.execAssignment(Eval.java:121)
	at net.starlark.java.eval.Eval.exec(Eval.java:285)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execFunctionBody(Eval.java:66)
	at net.starlark.java.eval.StarlarkFunction.fastcall(StarlarkFunction.java:208)
	at net.starlark.java.eval.Starlark.fastcall(Starlark.java:807)
	at net.starlark.java.eval.Eval.evalCall(Eval.java:699)
	at net.starlark.java.eval.Eval.eval(Eval.java:514)
	at net.starlark.java.eval.Eval.execAssignment(Eval.java:121)
	at net.starlark.java.eval.Eval.exec(Eval.java:285)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execFunctionBody(Eval.java:66)
	at net.starlark.java.eval.StarlarkFunction.fastcall(StarlarkFunction.java:208)
	at net.starlark.java.eval.Starlark.fastcall(Starlark.java:807)
	at net.starlark.java.eval.Eval.evalCall(Eval.java:699)
	at net.starlark.java.eval.Eval.eval(Eval.java:514)
	at net.starlark.java.eval.Eval.evalBinaryOperator(Eval.java:549)
	at net.starlark.java.eval.Eval.eval(Eval.java:504)
	at net.starlark.java.eval.Eval.execReturn(Eval.java:266)
	at net.starlark.java.eval.Eval.exec(Eval.java:305)
	at net.starlark.java.eval.Eval.execStatements(Eval.java:82)
	at net.starlark.java.eval.Eval.execFunctionBody(Eval.java:66)
	at net.starlark.java.eval.StarlarkFunction.fastcall(StarlarkFunction.java:208)
	at net.starlark.java.eval.Starlark.fastcall(Starlark.java:807)
	at com.google.devtools.build.lib.analysis.starlark.StarlarkRuleConfiguredTargetUtil.evalRule(StarlarkRuleConfiguredTargetUtil.java:100)
	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:405)
	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:202)
	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:1389)
	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:447)
	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:371)
	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:467)
	at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:435)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.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.scan(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

@cgrindel cgrindel self-assigned this Jan 3, 2025
Copy link
Contributor

mergify bot commented Jan 3, 2025

⚠️ The sha of the head commit of this PR conflicts with #1395. Mergify cannot evaluate rules on this PR. ⚠️

@cgrindel
Copy link
Owner Author

cgrindel commented Jan 3, 2025

It turns out this is fixed in 8.0.1.

@cgrindel cgrindel closed this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant