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

cargo test --no-run sometimes gets SIGKILL out of thin air on MacOS #10476

Open
matklad opened this issue Mar 13, 2022 · 2 comments
Open

cargo test --no-run sometimes gets SIGKILL out of thin air on MacOS #10476

matklad opened this issue Mar 13, 2022 · 2 comments
Labels
C-bug Category: bug

Comments

@matklad
Copy link
Member

matklad commented Mar 13, 2022

Problem

In xshell, my macos builds fail fairly frequently with

command was terminated by a signal `cargo test --workspace --no-run`: 9

See, eg

https://github.com/matklad/xshell/runs/5529460783?check_suite_focus=true#step:4:22

What specifically happens here is that GitHub actions invokes cargo run --example ci, and that example recursively invokes cargo test --run, which then gets killed.

It seems like this is something we saw previously in #7821 and #10060.

Opening this issue to signal that this doesn't seem to be entirely fixed!

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

1.59.0
@matklad matklad added the C-bug Category: bug label Mar 13, 2022
matklad added a commit to matklad/xshell that referenced this issue Mar 13, 2022
Apparently CI failures are unrelated:
  <rust-lang/cargo#10476>
matklad added a commit to matklad/xshell that referenced this issue Mar 13, 2022
Apparently CI failures are unrelated:
  <rust-lang/cargo#10476>
@ehuss
Copy link
Contributor

ehuss commented Mar 13, 2022

Can you get the system logs? I don't know offhand how to get those from GitHub Actions. Normally I record them locally using console.app.

I see sh.remove_path("./target")?; in your script. One possibility is that the provenance for the executable is lost (for the temporary signatures). Perhaps consider using a separate target directory instead?

@jjant
Copy link

jjant commented Jan 18, 2023

This also happens to me, cargo t (I don't use --no-run) randomly dies:

failures:

---- src/lib.rs - (line 44) stdout ----
Test executable failed (signal: 9 (SIGKILL)).


failures:
    src/lib.rs - (line 44)

test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.45s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants