bazel icon indicating copy to clipboard operation
bazel copied to clipboard

crash attempting to glob toolchains

Open benjaminp opened this issue 3 years ago • 4 comments

$ bazel version
Build label: 8.0.0-pre.20240814.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Aug 20 19:05:29 2024 (1724180729)
Build timestamp: 1724180729
Build timestamp as int: 1724180729
$ touch MODULE.bazel
$ cat > BUILD
cc_binary(name = 'x', srcs = ['x.c'])
$ bazel build --extra_toolchains //:* //:x
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node '//:*, excludedSubdirs=[], filteringPolicy=RuleTypeFilter{ruleName=toolchain, keepExplicit=true}' (requested by nodes 'RegisteredToolchainsValue.Key{configurationKey: BuildConfigurationKey[ae8af14c9deccc70ea256a4e8a74a30a950bcd3331204c7d24de2e84a6b0c05a], debug: false}')
	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: java.lang.NullPointerException: Cannot invoke "com.google.devtools.build.lib.packages.Rule.getRuleClass()" because the return value of "com.google.devtools.build.lib.packages.Target.getAssociatedRule()" is null
	at com.google.devtools.build.lib.pkgcache.FilteringPolicies$RuleTypeFilter.shouldRetain(FilteringPolicies.java:121)
	at com.google.devtools.build.lib.pkgcache.TargetPatternResolverUtil.resolvePackageTargets(TargetPatternResolverUtil.java:47)
	at com.google.devtools.build.lib.skyframe.RecursivePackageProviderBackedTargetPatternResolver.getTargetsInPackage(RecursivePackageProviderBackedTargetPatternResolver.java:148)
	at com.google.devtools.build.lib.cmdline.TargetPattern$TargetsInPackage.eval(TargetPattern.java:463)
	at com.google.devtools.build.lib.skyframe.TargetPatternFunction.compute(TargetPatternFunction.java:92)
	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:467)
	... 7 more

benjaminp avatar Feb 11 '22 19:02 benjaminp

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

github-actions[bot] avatar Jun 14 '23 01:06 github-actions[bot]

@bazelbuild/triage

benjaminp avatar Jun 14 '23 01:06 benjaminp

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.

github-actions[bot] avatar Aug 19 '24 01:08 github-actions[bot]

This issue still exists.

benjaminp avatar Aug 21 '24 14:08 benjaminp

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.

github-actions[bot] avatar Oct 26 '25 01:10 github-actions[bot]

This issue still exists.

benjaminp avatar Oct 27 '25 14:10 benjaminp