Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10943] Compiler hangs with @ObjectBinding to NSManagedObject subclass #53334

Closed
swift-ci opened this issue Jun 16, 2019 · 2 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-10943
Radar rdar://problem/51810193
Original Reporter IngmarStein (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee None
Priority Medium

md5: 63cd3784fd10c5390cbfab9a692b5f44

Issue Description:

Changing /*@ObjectBinding */var car: Car to @ObjectBinding var car: Car in

https://github.com/IngmarStein/Kraftstoff/blob/1f963f566e28d0041a92d28eaef2ce1cdee65809/Classes/CarRowView.swift#L12

causes the compiler to hang with the following trace:

Call graph:
 2720 Thread_71503 DispatchQueue_1: com.apple.main-thread (serial)
 2720 start (in libdyld.dylib) + 1 [0x7fff640397a9]
 2720 main (in swift) + 1219 [0x108a236b3]
 2720 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (in swift) + 6868 [0x108a94424]
 2720 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) (in swift) + 798 [0x108a9803e]
 2720 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) (in swift) + 6021 [0x108d9c5b5]
 2720 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (in swift) + 1702 [0x1096920b6]
 2720 (anonymous namespace)::DeclChecker::visit(swift::Decl*) (in swift) + 1963 [0x1095d3f4b]
 2720 swift::TypeChecker::addImplicitConstructors(swift::NominalTypeDecl*) (in swift) + 1957 [0x1095ea085]
 2720 swift::PropertyDelegateBackingPropertyInfoRequest::OutputType swift::evaluateOrDefault<swift::PropertyDelegateBackingPropertyInfoRequest>(swift::Evaluator&, swift::PropertyDelegateBackingPropertyInfoRequest, swift::PropertyDelegateBackingPropertyInfoRequest::OutputType) (in swift) + 456 [0x10997e1b8]
 2720 llvm::Expected<swift::PropertyDelegateBackingPropertyInfoRequest::OutputType> swift::Evaluator::getResultUncached<swift::PropertyDelegateBackingPropertyInfoRequest>(swift::PropertyDelegateBackingPropertyInfoRequest const&) (in swift) + 518 [0x10997e7a6]
 2720 swift::SimpleRequest<swift::PropertyDelegateBackingPropertyInfoRequest, (swift::CacheKind)1, swift::PropertyDelegateBackingPropertyInfo, swift::VarDecl*>::evaluateRequest(swift::PropertyDelegateBackingPropertyInfoRequest const&, swift::Evaluator&) (in swift) + 4002 [0x1096698f2]
 2720 swift::TypeBase::getTypeOfMember(swift::ModuleDecl*, swift::ValueDecl const*, swift::Type) (in swift) + 345 [0x109a347e9]
 2720 swift::TypeBase::getMemberSubstitutions(swift::ValueDecl const*, swift::GenericEnvironment*) (in swift) + 114 [0x109a34132]
 2720 swift::TypeBase::getContextSubstitutions(swift::DeclContext const*, swift::GenericEnvironment*) (in swift) + 805,608,... [0x109a2f885,0x109a2f7c0,...]
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
 swift::TypeBase::getContextSubstitutions(swift::DeclContext const*, swift::GenericEnvironment*) (in swift) 2720

with Xcode 11.0 Beta 1 (11M336w)

@swift-ci
Copy link
Collaborator Author

Comment by Ingmar Stein (JIRA)

Thanks for triaging, Jordan. The issue is still present in 11.0 beta 2 (11M337n).

@DougGregor
Copy link
Member

Yeah, the fix didn't make it into beta 2. For reference, the pull request that fixed this issue is #25188

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software
Projects
None yet
Development

No branches or pull requests

3 participants