Improve Bazel client error messaging and diagnostics for stale server processes. When a Bazel server process terminates in an environment without PID 1 reaping (such as a default Docker container) or blocks in uninterruptible sleep (such as a hanging FUSE filesystem call), attempting to shut down or kill the server fails with ambiguous error messages. Add contextual phase descriptions to clarify which termination stage is active. Add additional diagnostics on Linux to inspect `/proc/<pid>/stat` when SIGKILL times out, reporting whether the stale server process is a zombie (`state 'Z'`) that requires an init reaper or blocked in uninterruptible kernel/disk sleep (`state 'D'`). Fixes https://github.com/bazelbuild/bazel/issues/16907 PiperOrigin-RevId: 971931563 Change-Id: Id4a16fc5118059b6328eb5842c7b8fc3febb31e0
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
To report a security issue, please email security@bazel.build with a description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue. Our vulnerability management team will respond within 3 working days of your email. If the issue is confirmed as a vulnerability, we will open a Security Advisory. This project follows a 90 day disclosure timeline.
See CONTRIBUTING.md