bazel: failed: I/O exception during sandboxed execution: No such file or directory
Description of the bug:
Periodically, the following error would occur when running tests
Testing <blah> failed: I/O exception during sandboxed execution: /dev/shm/bazel-sandbox.34e9fe25bb0c6624a8ba8f5a00a18c3243dfc943119e415e09934c77b955441f/linux-sandbox/148/stats.out (No such file or directory)
we’re on bazel 6.5.0 with spawn strategy linux-sandbox, jobs set to 1:1 with vcpus, sandbox mounted at /dev/shm
Whenever this occurs, we see system memory usage at 82-83% with cpu maxed at 100%.
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.
I don’t have a reliable repro. it happens sporadically
Which operating system are you running Bazel on?
ubuntu 20.04
What is the output of bazel info release?
release 6.5.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
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
this has been occuring more frequently since we switched to 6.5.0 from 6.3.2
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (11 by maintainers)
Commits related to this issue
- Do not fail a sandboxed spawn for missing execution statistics This was already the case for "local" spawns. Statistics may be missing if the spawn wrapper exits abnormally. Fixes #22151. Closes #2... — committed to bazel-io/bazel by fmeum 2 years ago
- Do not fail a sandboxed spawn for missing execution statistics This was already the case for "local" spawns. Statistics may be missing if the spawn wrapper exits abnormally. Fixes #22151. Closes #2... — committed to bazel-io/bazel by fmeum 2 years ago
- Do not fail a sandboxed spawn for missing execution statistics This was already the case for "local" spawns. Statistics may be missing if the spawn wrapper exits abnormally. Fixes #22151. Closes #2... — committed to bazel-io/bazel by fmeum 2 years ago
- [7.2.1] Do not fail a sandboxed spawn for missing execution statistics (#22790) This was already the case for "local" spawns. Statistics may be missing if the spawn wrapper exits abnormally. Fixes #... — committed to bazelbuild/bazel by bazel-io 2 years ago
- [7.3.0] Do not fail a sandboxed spawn for missing execution statistics (#22791) This was already the case for "local" spawns. Statistics may be missing if the spawn wrapper exits abnormally. Fixes #... — committed to bazelbuild/bazel by bazel-io 2 years ago
@mattyclarkson That’s a different type of bug as it’s not about
stats.out. Could you file a separate issue for this?I’ve pinned
rules_gitand using the RC in the BCR presubmit in bazelbuild/bazel-central-registry#1868. Seeing no issues.A fix for this issue has been included in Bazel 7.2.1 RC2. Please test out the release candidate and report any issues as soon as possible. If you’re using Bazelisk, you can point to the latest RC by setting
USE_BAZEL_VERSION=7.2.1rc2. Thanks!I don’t have a reliable repro; it just periodically happens when running large amounts of tests. we’re in the process of upgrading to bazel 7, but still need to upgrade some dependencies to get there