bazel-lib
bazel-lib copied to clipboard
[Bug]: copy_directory immediately fails with "Killed" 137
What happened?
We are seeing the following error in our build:
ERROR: .../BUILD.bazel:11:22: Copying directory npm__yallist__3.1.1/package [for tool] failed: (Killed): copy_directory failed: error executing CopyDirectory command (from target //:.aspect_rules_js/node_modules/[email protected]/pkg)
Digging a bit it seems that copy_directory is not working properly.
$ pwd
/.../execroot/.../external/copy_directory_linux_amd64
$ ls -la
total 1620
drwxr-xr-x 2 user user 4096 Jun 18 05:03 .
drwxr-xr-x 1756 user user 262144 Jun 18 05:04 ..
-rwxr-xr-x 1 user user 328 Jun 18 05:03 BUILD.bazel
-rw-r--r-- 1 user user 0 Jun 18 05:03 REPO.bazel
-rw-r--r-- 1 user user 0 Jun 18 05:03 WORKSPACE
-r-xr-xr-x 1 user user 1388544 Jun 17 10:29 copy_directory
$ ./copy_directory
Killed
$ echo $?
137
The machine has 96GB RAM (no swap) and >74GB free memory. It should not OOM immediately. Something else is bogus.
Version
Development (host) and target OS/architectures: RHEL 9, Intel
Output of bazel --version:
7.1.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
- rules_js-v1.35.0.tar.gz
- rules_jest-v0.20.0.tar.gz
- rules_rollup-v1.0.0.tar.gz
Language(s) and/or frameworks involved:
- NPM
How to reproduce
Don't know yet.
Any other information?
It might be related to some OS/library update. Wondering if there is a way to get more debug information for the binary?