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

Bug: bazel mod show_repo crashes #23736

Closed
thesayyn opened this issue Sep 24, 2024 · 1 comment
Closed

Bug: bazel mod show_repo crashes #23736

thesayyn opened this issue Sep 24, 2024 · 1 comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged

Comments

@thesayyn
Copy link
Contributor

Description of the bug:

When running bazel mod show_repo @distroless it crashes bazel. I am probably running the command in a wrong way but bazel still shouldn't crash.

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

git clone  https://github.com/GoogleContainerTools/distroless
bazel mod show_repo @distroless

Which operating system are you running Bazel on?

darwin/arm64

What is the output of bazel info release?

release 7.2.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 ?

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?

Starting local Bazel server and connecting to it...
 checking cached actions
    Fetching module extension pip_internal in @@rules_python~//python/private/pypi:pip.bzl; starting
    Fetching https://pypi.org/simple/cryptography/
    Fetching https://pypi.org/simple/docutils/
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'BZLMOD_REPO_RULE:@@' (requested by nodes )
        at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:550)
        at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:414)
        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
        at java.base/java.util.Objects.requireNonNull(Unknown Source)
        at java.base/java.util.Optional.of(Unknown Source)
        at com.google.devtools.build.lib.skyframe.BzlmodRepoRuleFunction.checkRepoFromBazelModules(BzlmodRepoRuleFunction.java:161)
        at com.google.devtools.build.lib.skyframe.BzlmodRepoRuleFunction.compute(BzlmodRepoRuleFunction.java:111)
        at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:461)
        ... 7 more

@satyanandak satyanandak added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels Sep 25, 2024
@fmeum
Copy link
Collaborator

fmeum commented Sep 25, 2024

This is a duplicate of #22587. I requested a cherry-pick to 7.4.0.

@fmeum fmeum closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged
Projects
None yet
Development

No branches or pull requests

5 participants