Closed swift-ci closed 4 years ago
@swift-ci create
On master:
Assertion failed: (!isLValue), function buildSelfReference, file /Users/suyashsrijan/Documents/swift-src/swift/lib/Sema/CodeSynthesis.cpp, line 55.
Stack dump:
0. Program arguments: ./swiftc -frontend -typecheck -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Users/suyashsrijan/Desktop/test.swift
1. Swift version 5.3-dev (LLVM 223e844e4d, Swift af9b7ce902)
2. While evaluating request TypeCheckSourceFileRequest(source_file "/Users/suyashsrijan/Desktop/test.swift")
3. While evaluating request TypeCheckFunctionBodyUntilRequest(test.(file).Somesubclass._@/Users/suyashsrijan/Desktop/test.swift:12:18, )
4. While evaluating request ParseAbstractFunctionBodyRequest(test.(file).Somesubclass._@/Users/suyashsrijan/Desktop/test.swift:12:18)
0 swiftc 0x000000010e0b7ba5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 swiftc 0x000000010e0b6de5 llvm::sys::RunSignalHandlers() + 85
2 swiftc 0x000000010e0b818c SignalHandler(int) + 268
3 libsystem_platform.dylib 0x00007fff6431542d _sigtramp + 29
4 swiftc 0x00000001109a1520 cmark_strbuf__initbuf + 170864
5 libsystem_c.dylib 0x00007fff641eaa1c abort + 120
6 libsystem_c.dylib 0x00007fff641e9cd6 err + 0
7 swiftc 0x000000010e4aeb81 swift::buildSelfReference(swift::VarDecl*, swift::SelfAccessorKind, bool, swift::ASTContext&) (.cold.1) + 33
8 swiftc 0x000000010ab56840 swift::buildArgumentForwardingExpr(llvm::ArrayRef<swift::ParamDecl*>, swift::ASTContext&) + 0
9 swiftc 0x000000010acbb8a7 buildStorageReference(swift::AccessorDecl*, swift::AbstractStorageDecl*, (anonymous namespace)::TargetImpl, bool, swift::ASTContext&) + 1255
10 swiftc 0x000000010acbcbf0 synthesizeObservedSetterBody(swift::AccessorDecl*, (anonymous namespace)::TargetImpl, swift::ASTContext&) + 304
11 swiftc 0x000000010acba75e synthesizeAccessorBody(swift::AbstractFunctionDecl*, void*) + 3118
12 swiftc 0x000000010ae0ab56 swift::ParseAbstractFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const + 86
13 swiftc 0x000000010ae0b5d1 swift::SimpleRequest<swift::ParseAbstractFunctionBodyRequest, swift::BraceStmt* (swift::AbstractFunctionDecl*), (swift::CacheKind)2>::evaluateRequest(swift::ParseAbstractFunctionBodyRequest const&, swift::Evaluator&) + 17
14 swiftc 0x000000010af8953a llvm::Expected<swift::ParseAbstractFunctionBodyRequest::OutputType> swift::Evaluator::getResultUncached<swift::ParseAbstractFunctionBodyRequest>(swift::ParseAbstractFunctionBodyRequest const&) + 458
15 swiftc 0x000000010af89250 llvm::Expected<swift::ParseAbstractFunctionBodyRequest::OutputType> swift::Evaluator::getResultCached<swift::ParseAbstractFunctionBodyRequest, (void*)0>(swift::ParseAbstractFunctionBodyRequest const&) + 64
16 swiftc 0x000000010af35db5 swift::ParseAbstractFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::ParseAbstractFunctionBodyRequest>(swift::Evaluator&, swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType) + 37
17 swiftc 0x000000010acabf4f swift::TypeCheckFunctionBodyUntilRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*, swift::SourceLoc) const + 175
18 swiftc 0x000000010aca9205 swift::SimpleRequest<swift::TypeCheckFunctionBodyUntilRequest, bool (swift::AbstractFunctionDecl*, swift::SourceLoc), (swift::CacheKind)1>::evaluateRequest(swift::TypeCheckFunctionBodyUntilRequest const&, swift::Evaluator&) + 21
19 swiftc 0x000000010acb3151 llvm::Expected<swift::TypeCheckFunctionBodyUntilRequest::OutputType> swift::Evaluator::getResultUncached<swift::TypeCheckFunctionBodyUntilRequest>(swift::TypeCheckFunctionBodyUntilRequest const&) + 497
20 swiftc 0x000000010acb2ce1 llvm::Expected<swift::TypeCheckFunctionBodyUntilRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckFunctionBodyUntilRequest, (void*)0>(swift::TypeCheckFunctionBodyUntilRequest const&) + 129
21 swiftc 0x000000010acacb09 swift::TypeCheckFunctionBodyUntilRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyUntilRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyUntilRequest, swift::TypeCheckFunctionBodyUntilRequest::OutputType) + 41
22 swiftc 0x000000010acabe32 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 66
23 swiftc 0x000000010acdb568 swift::TypeCheckSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 520
24 swiftc 0x000000010aca9441 swift::SimpleRequest<swift::TypeCheckSourceFileRequest, bool (swift::SourceFile*), (swift::CacheKind)2>::evaluateRequest(swift::TypeCheckSourceFileRequest const&, swift::Evaluator&) + 17
25 swiftc 0x000000010acdd456 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::TypeCheckSourceFileRequest>(swift::TypeCheckSourceFileRequest const&) + 454
26 swiftc 0x000000010acdd1b8 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckSourceFileRequest, (void*)0>(swift::TypeCheckSourceFileRequest const&) + 56
27 swiftc 0x000000010acdb265 swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) + 37
28 swiftc 0x000000010a0adc0e swift::CompilerInstance::parseAndTypeCheckMainFileUpTo(swift::SourceFile::ASTStage_t) + 286
29 swiftc 0x000000010a0accf7 swift::CompilerInstance::parseAndCheckTypesUpTo(swift::CompilerInstance::ImplicitImports const&, swift::SourceFile::ASTStage_t) + 359
30 swiftc 0x000000010a0ac738 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 520
31 swiftc 0x0000000109fb95dd performCompile(swift::CompilerInstance&, swift::CompilerInvocation const&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*) + 1933
32 swiftc 0x0000000109fb7e71 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3553
33 swiftc 0x0000000109f50a4d main + 861
34 libdyld.dylib 0x00007fff6411c7fd start + 1
Resolved by https://github.com/apple/swift/pull/30792, please verify using the next available development snapshot from https://swift.org/download/#snapshots.
Comment by Evgeny Kazakov (JIRA)
Checked on swift-DEVELOPMENT-SNAPSHOT-2020-04-07-a-osx
. It appears to be fixed. Thank you.
Environment
Xcode 11.3.1 (11C505) and Xcode 11.4 (11E146) on macOS 10.15.4 (19E266)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, PropertyWrappers, TypeChecker | |Assignee | @hamishknight | |Priority | Medium | md5: 448e4682aa0e24d560d0b263ae860229is duplicated by:
Issue Description:
Compiler crashes when trying to compile our project using release version of Xcode 11.4.
This is a Swift 5.2 regression. It does not happen on Swift 5.1.3
Reduced code that's causing crash to this:
crash.swift
With Xcode 11.3.1 selected compiles successfully:
With Xcode 11.4 selected does not: