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

Getting (signal: 9, SIGKILL: kill) when building surrealdb on GH actions #10174

Closed
nathaniel-brough opened this issue Apr 26, 2023 · 5 comments
Closed

Comments

@nathaniel-brough
Copy link
Contributor

I've been working on adding surrealdb to oss-fuzz, but I'm running into some issues namely I'm getting a (signal: 9, SIGKILL: kill) build failure.

Testing this locally I usually don't run into the same issues, or at least it's only happened (1/11) builds locally. I'm guessing that this has something to do with an OOM error, as ram usage is peaking at about 6.7GB during the build on my local machine (built using the same Dockerfile/build.sh). The base-level github actions runner maxes out at 7GB so that's a pretty tight margin. Does oss-fuzz use the "Larger Runners" or just the regular base-level ones?

What I've tried so far;

  • Fetching the latest build environment when building the image.
  • Keeping the image the same then repetitively building locally
  • Switching between debug/release builds

Some relevant system details of my local machine;

  • i7 8 cores
  • 16gb ram
@nathaniel-brough
Copy link
Contributor Author

This may be related to rust-lang/cargo#11707

@nathaniel-brough
Copy link
Contributor Author

After chatting with the surrealdb devs it appears they use the runs-on: ubuntu-20.04-16-cores (aka a "Larger Runner" with 64GB of ram) rather than runs-on: ubuntu-latest (aka a base-runner with 7gb of ram), which would explain why it builds in the surrealdb github actions but not on the oss-fuzz github actions.

@jonathanmetzman
Copy link
Contributor

Ehh...It's totally fine if it doesn't build in CI. our real builders are much beefier.

@Type1J
Copy link

Type1J commented May 14, 2024

I ran into this issue on an Orange Pi 5 Plus. Why is this issue occurring?

@Type1J
Copy link

Type1J commented May 14, 2024

I just re-ran the same build command again, and it worked. Maybe surrealdb-core needs to be split into smaller libraries to prevent build crashes on 8GB and less machines? It may not be a problem, yet, but it could become one.

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

No branches or pull requests

3 participants