-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-10783] compile command failed due to signal 9 #53173
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
Comments
CC @nkcsgexi |
@belkadan not sure what exactly the 'Compiler Crash' label is for but this isn't a real crash, this is someone killing the process with |
It's a crash in practice, even if it's not literally an assertion failure or segfault. |
cool, that makes sense |
I was not able to reproduce in any setup I have at hand. I tried:
I think we'll need more information to investigate this, for example:
|
Comment by tanner0101 (JIRA) Here's a link to a PR that will trigger the error in ci: Here's a link to the failed build: The command being run: Resources for this machine: The end of the output:
FWIW, I think it is something specific to CircleCI. Perhaps some breach of permissions? The only way I could recreate this locally using Docker was to limit memory very low--about 100M. |
One thing I noticed in the log is "-j36" in the original build command; maybe swiftpm is detecting the number of cores incorrectly? Does it still fail if you pass `-Xswiftc -j2` or `-Xswiftc -j1`? |
ah, this is likely a container CPUs vs. host machine CPUs. |
Comment by Sergej Jaskiewicz (JIRA) I'm experiencing this exact issue, have you been able to find a workaround tannernelson (JIRA User)? Right now I'm just rerunning the whole `swift build` command, which is suboptimal. |
Environment
The system is a CircleCI box running Ubuntu 16.04 with 2CPU/4096M.
Swift version 5.0.1 (swift-5.0.1-RELEASE)
Target: x86_64-unknown-linux-gnu
Linux 7b81119c92aa 4.15.0-1035-aws #37-Ubuntu SMP Mon Mar 18 16:15:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Additional Detail from JIRA
md5: a83f0d011f237654ef4bad38a340045d
Issue Description:
Attempting to compile this SPM project causes signal 9:
https://github.com/vapor/crypto/tree/e60bc60b74b9b976800a44369e1067180fa59cba
Using --disable-index-store fixes the issue
Building with -c release does not exhibit the issue.
Running swift build a second time, after the initial failure (without clearing .build), works
The text was updated successfully, but these errors were encountered: