-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel 7.4.0 build hangs indefinitely sometimes #24520
Comments
The attached stack trace is either from Bazelisk or some other wrapper around the Bazel client. You must send the SIGQUIT to the Bazel server process instead (the result should look like a Java thread dump, not Go). To find the Bazel server pid you can look in |
sorry, attached. |
We're on bazel 7.4.1 and we're also hitting this. (albeit with i.e
it took a while for me to get a stack as well
|
@TeoMihuc Unfortunately the thread dump doesn't suggest a probable cause. Some followup questions to try to narrow this down:
|
@Ryang20718 Your issue looks distinctly different: there are two threads seemingly stuck somewhere in JVM code ( |
@tjgq i can try to grab another thread dump on hang to confirm, but I captured this dump after confirming the test processes were hung (no output on strace) |
Description of the bug:
We are using bazel 7.4.0 and we've noticed random build hangs in our CI and locally.
Setup:
What is your hunch on this one? Is there something else I can try?
Thanks a lot!
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.
No response
Which operating system are you running Bazel on?
(Ubuntu 22.04.5 LTS) linux cross-compilation to arm docker image
What is the output of
bazel info release
?release 7.4.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.From https://github.com/bazelbuild/bazel/releases, using: bazel-7.4.0-linux-arm64
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?
Similar issues:
Any other information, logs, or outputs that you want to share?
28.11.2025_debug_bazel_build.txt
this is the output I receive for a CTRL \ when bazel hangs.
The hanging happens in the CI as well, can't get an output debug from there.
The text was updated successfully, but these errors were encountered: