Skip to content

Compiler Crash When Building With Swift 6.2.x Release Toolchain (swift.org) #128

@briancoyner

Description

@briancoyner

Summary

Building swift-configuration 1.0.0 with the Swift Static Linux SDK appears to cause the Swift 6.2.x compiler to crash. This was discovered after upgrading a project to Swift 6.2 and Hummingbird 2.18.x (which introduced a dependency on swift-configuration). Not sure if anyone else has witnessed and/ or reported this (did not find any reports).

Environment

Component Version
swift-configuration 1.0.0
Swiftly 1.0.0
Swift 6.2.2 (swift-6.2.2-RELEASE)
Static Linux SDK swift-6.2.2-release_static-linux-0.0.1
macOS Tahoe 26.2
Selected Xcode 26.2.0

Note: Static Linux SDK 6.2.0 and 6.2.1 experience the same crash.

Build Command

The command below can be executed against a package that depends on swift-configuration or building swift-configuration directly.

swiftly run swift build -c release --swift-sdk aarch64-swift-linux-musl                                                                                 
                                                                                                                                                                                                     
[1/1] Planning build
Building for production...
error: compile command failed due to signal 6 (use -v to see invocation)                                                                                                                                                                                  
SIL verification failed: inconsistent stack heights entering basic block: state.Stack == foundState.Stack || isUnreachable()                                                                         

...
                                                                                                                                       
In function:                                                                                                                                                                                         
// FileProvider.init<A>(snapshotType:parsingOptions:filePath:allowMissing:fileSystem:)                                                                                                               
// Isolation: caller_isolation_inheriting                                                                                                                                                            

...

Other notes

  • The build succeeds when targeting the Xcode 26.2 Swift toolchain.
  • The crash occurs in both debug (-c debug) and release (-c release) configurations.
  • The crash occurs on both target architectures: aarch64-swift-linux-musl and x86_64-swift-linux-musl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions