apple / swift-foundation

The Foundation project
Apache License 2.0
2.35k stars 149 forks source link

compile command failed due to signal 11 #715

Open theLastOfCats opened 2 months ago

theLastOfCats commented 2 months ago

Got a strange crush while building SwiftFoundation

Gist with dump: https://gist.github.com/theLastOfCats/1c3969e4c3c238d1faa88e4fd31562f5 Action where it happened: https://github.com/theLastOfCats/FrameworkBenchmarks/actions/runs/9806491582/job/27078329706#step:9:8520 Source code: https://github.com/theLastOfCats/FrameworkBenchmarks/tree/master/frameworks/Swift/vapor/vapor-swifql

jmschonfeld commented 1 month ago

I believe that this was a bug that was resolved in Swift 6 with https://github.com/swiftlang/swift/pull/73012. IIRC this bug should only reproduce when building in release mode, so are you able to either build in debug mode (if applicable) or update to the swift 6 compiler to get the bug fix (I believe at this point you'll likely need a Swift 6 compiler to compile this project for other reasons anyways). Perhaps that will resolve the crash you're experiencing?