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

Compiler crashes when build in release mode (Linux) #2668

Closed
Buratti opened this issue Jun 4, 2024 · 2 comments
Closed

Compiler crashes when build in release mode (Linux) #2668

Buratti opened this issue Jun 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Buratti
Copy link

Buratti commented Jun 4, 2024

Description

Tested on both Ubuntu and Amazon Linux 2.
Might be related to #2483.

Steps to Reproduce

docker run --rm -it swift:5.10.0-amazonlinux2
git clone https://github.com/apple/swift-syntax
cd swift-syntax
git checkout 510.0.2
swift build -c release

Output:
error: compile command failed due to signal 9 (use -v to see invocation)

@Buratti Buratti added the bug Something isn't working label Jun 4, 2024
@ahoppen
Copy link
Member

ahoppen commented Jun 4, 2024

Synced to Apple’s issue tracker as rdar://129223949

@Buratti
Copy link
Author

Buratti commented Jun 4, 2024

Hi @ahoppen! I ran a few more tests. The issue is not related to swift-syntax. The compiler crashed because the container did not have enough memory reserved to it. Increasing the memory "fixes" the issue.

@Buratti Buratti closed this as completed Jun 4, 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

2 participants