Open tgoyne opened 5 months ago
I got a very similar issue today
0. Program arguments: /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend […]
1. Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
2. Compiling with effective version 5.10
3. While evaluating request TypeCheckSourceFileRequest(source_file "/Users/pmb/Projets/lacaisse/working/LCAKit/Sources/LCAEpson/EpsonPrinterInfo.swift")
4. While evaluating request TypeCheckFunctionBodyRequest(LCAEpson.(file).EpsonPrinterInfo.connect(complete:)@/Users/pmb/Projets/lacaisse/working/LCAKit/Sources/LCAEpson/EpsonPrinterInfo.swift:44:17)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010648e9ac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x000000010648cc00 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010648ef78 SignalHandler(int) + 292
3 libsystem_platform.dylib 0x000000019d630184 _sigtramp + 56
4 swift-frontend 0x00000001021a007c (anonymous namespace)::ActorIsolationChecker::checkApply(swift::ApplyExpr*) + 2032
5 swift-frontend 0x00000001021a007c (anonymous namespace)::ActorIsolationChecker::checkApply(swift::ApplyExpr*) + 2032
6 swift-frontend 0x000000010219caf4 (anonymous namespace)::ActorIsolationChecker::walkToExprPre(swift::Expr*) + 1872
7 swift-frontend 0x0000000102592d9c (anonymous namespace)::Traversal::visitDynamicMemberRefExpr(swift::DynamicMemberRefExpr*) + 48
8 swift-frontend 0x0000000102592718 (anonymous namespace)::Traversal::visit(swift::Expr*) + 308
9 swift-frontend 0x0000000102592dc0 (anonymous namespace)::Traversal::visitDynamicMemberRefExpr(swift::DynamicMemberRefExpr*) + 84
10 swift-frontend 0x0000000102592754 (anonymous namespace)::Traversal::visit(swift::Expr*) + 368
11 swift-frontend 0x0000000102597988 (anonymous namespace)::Traversal::visit(swift::Decl*) + 2964
12 swift-frontend 0x00000001025923f4 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 324
13 swift-frontend 0x0000000102595f24 (anonymous namespace)::Traversal::visit(swift::Stmt*) + 2612
14 swift-frontend 0x0000000102595a64 (anonymous namespace)::Traversal::visit(swift::Stmt*) + 1396
15 swift-frontend 0x000000010259600c (anonymous namespace)::Traversal::visit(swift::Stmt*) + 2844
16 swift-frontend 0x00000001025936b4 (anonymous namespace)::Traversal::visitClosureExpr(swift::ClosureExpr*) + 296
17 swift-frontend 0x00000001025927a8 (anonymous namespace)::Traversal::visit(swift::Expr*) + 452
18 swift-frontend 0x0000000102592dc0 (anonymous namespace)::Traversal::visitDynamicMemberRefExpr(swift::DynamicMemberRefExpr*) + 84
19 swift-frontend 0x00000001025928a4 (anonymous namespace)::Traversal::visit(swift::Expr*) + 704
20 swift-frontend 0x0000000102598580 (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 288
21 swift-frontend 0x0000000102595118 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 196
22 swift-frontend 0x000000010259263c (anonymous namespace)::Traversal::visit(swift::Expr*) + 88
23 swift-frontend 0x0000000102595eb4 (anonymous namespace)::Traversal::visit(swift::Stmt*) + 2500
24 swift-frontend 0x0000000102190da0 swift::checkFunctionActorIsolation(swift::AbstractFunctionDecl*) + 544
25 swift-frontend 0x00000001022a16fc swift::TypeCheckFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const + 2268
26 swift-frontend 0x00000001026b1fd4 swift::TypeCheckFunctionBodyRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()>(swift::TypeCheckFunctionBodyRequest const&, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()) + 636
27 swift-frontend 0x0000000102620b44 swift::AbstractFunctionDecl::getTypecheckedBody() const + 160
28 swift-frontend 0x00000001022ef3dc swift::TypeCheckSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 868
29 swift-frontend 0x00000001022f6970 swift::TypeCheckSourceFileRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType)::'lambda'()>(swift::TypeCheckSourceFileRequest const&, swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType)::'lambda'()) + 620
30 swift-frontend 0x00000001022ef05c swift::performTypeChecking(swift::SourceFile&) + 328
31 swift-frontend 0x000000010120cce0 swift::CompilerInstance::performSema() + 260
32 swift-frontend 0x0000000100e3a0dc performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1532
33 swift-frontend 0x0000000100e38ea0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
34 swift-frontend 0x0000000100dbff64 swift::mainEntry(int, char const**) + 3680
35 dyld 0x000000019d278274 start + 2840
Description
Calling the
nonisolated
function gives the expected error "'nil' is not compatible with expected argument type 'any Actor'" (which probably needs to be special-cased to be a more helpful error?), but calling theisolated
function crashes the compiler instead.Reproduction
Stack dump
Expected behavior
A helpful error message (or at least a not very helpful error message like the nonisolated case).
Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10) Target: arm64-apple-macosx14.0
Additional information
No response