6.0.3 toolchain on macOS crashes when compiling Swift Lambda Runtime library in Swift 6 mode #78926
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
The compiler crashes with a stack trace when compiling the Swift AWS Lambda Runtime library on macOS and Linux in Swift 6 mode.
It fails with
pass #1183 SILFunctionTransform "TransferNonSendable" on SILFunction
on one of the twodefer()
(here and here) calls made in[LambdaRuntimeClient.swift](https://github.com/swift-server/swift-aws-lambda-runtime/blob/main/Sources/AWSLambdaRuntimeCore/LambdaRuntimeClient.swift)
The full error is shared below in the stack dum section.
Reproduction
Edit
Package.swift
and remove line 40Then compile
Stack dump
Expected behavior
Should compile.
Environment
$ swiftc --version
Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu
$ swiftc --version
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: