swiftlang / swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.
Apache License 2.0
3.18k stars 403 forks source link

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

Closed Buratti closed 3 months ago

Buratti commented 3 months ago

Description

Tested on both Ubuntu and Amazon Linux 2. Might be related to https://github.com/apple/swift-syntax/issues/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)

ahoppen commented 3 months ago

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

Buratti commented 3 months ago

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.