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

OSX unit tests segfault #4196

Closed
jszwedko opened this issue Sep 29, 2020 · 3 comments
Closed

OSX unit tests segfault #4196

jszwedko opened this issue Sep 29, 2020 · 3 comments
Labels
domain: tests Anything related to Vector's internal tests type: bug A code related bug.

Comments

@jszwedko
Copy link
Member

Discussed in discord: https://discordapp.com/channels/742820443487993987/746070604192415834/760546620559065148

Example: https://github.com/timberio/vector/pull/4193/checks?check_run_id=1183596467

Appears to have been introduced by #4187

@leebenson
Copy link
Member

FWIW, I'm pretty sure I saw this even before #4187. It's especially hard to diagnose because it doesn't always happen, it happens even after all tests have already passed, and I can't reproduce it locally in macOS 10.15.6.

There are similar issues on rust-lang:

Some of these are still open. Others were fixed in earlier Rust versions. Some may not be relevant. Some may be compiler issues, or due to external libs.

When using Travis, we could SSH into a test and perform some more in-depth testing againt the environment. I'm not sure what the options are for GH Actions. It's really hard to test because make test never segfaults locally, with an identical toolchain.

One thing to note is that I saw segfaults (although not signal 11 specifically) when setting codegen-units = 1, when trying to work around a known LLVM issue with older macOS installations and parallel compilations, in environments other than macOS. In all cases, they were due to OOM errors. I'm wondering if this could also be memory pressure, although I don't know why it would specifically affect only macOS and not other OSs.

@leebenson
Copy link
Member

Do we have a recent example of where this is still surfacing? I haven't seen it personally for a while.

@jszwedko
Copy link
Member Author

jszwedko commented Jan 4, 2021

I also haven't seen this in a quite a bit. I think we can close until it crops up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: tests Anything related to Vector's internal tests type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

4 participants