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]: copy_directory immediately fails with "Killed" 137 #867

Open
guw opened this issue Jun 18, 2024 · 0 comments
Open

[Bug]: copy_directory immediately fails with "Killed" 137 #867

guw opened this issue Jun 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@guw
Copy link

guw commented Jun 18, 2024

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?

@guw guw added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant