I crashed the compiler with a typo in Vapor model

Hi everyone. I managed to crash the compiler with my Vapor project when I misspelled Model protocol name. I can't share the original code, but I managed to create a new Vapor project that suffers from the same problem.

It is not a valid Vapor project. It should generate errors, but it should not crash.

In order to reproduce, please clone https://github.com/RussBaz/SwiftCompilerBug1 and then run swift build from the root of that package. It will start compiling, and it will crash at the end of it.

I am running it on M1 Max MacBook Pro:

swift-driver version: Apple Swift version 5.10 (swiftlang- clang-1500.3.9.4)
Target: arm64-apple-macosx14.0

macOS: 14.4.1 (23E224)

It also crashes on the Intel Mac.

How and where else should I report this?

Thank you!


Thank you for reporting the bug! You can file a bug report on Github too:


Submitted: https://github.com/apple/swift/issues/73668

1 Like