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-11068] Setting a property with @Published in UITableView didSelect method makes Swift compiler crashes #53460

Closed
pitiphong-p opened this issue Jul 4, 2019 · 3 comments
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 property wrappers Feature: property wrappers SILGen Area → compiler: The SIL generation stage

Comments

@pitiphong-p
Copy link
Contributor

Previous ID SR-11068
Radar None
Original Reporter @pitiphong-p
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 11 beta 3. macOS Mojave 10.14.5

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, PropertyWrappers, SILGen
Assignee None
Priority Medium

md5: aedca83130394f4c28429c8e3be6061e

Issue Description:

I have a UITableViewController subclass which has a @published property. This class override the `func tableView(_:didSelectRowAt🙂` method and set a value of the @published property in this method.

This scenario makes the Swift compiler to crash with `Segmentation fault: 11`

I attached a reproducible project

@belkadan
Copy link
Contributor

belkadan commented Jul 6, 2019

This one's fixed in master and the 5.1 branch!

@pitiphong-p
Copy link
Contributor Author

Oh that's great. Glad to hear that and I hope the change will come in the next beta 😃

@pitiphong-p
Copy link
Contributor Author

@belkadan I found a similar issue and reported it here https://bugs.swift.org/browse/SR-11229 Could you have a look at it?

@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 property wrappers Feature: property wrappers SILGen Area → compiler: The SIL generation stage
Projects
None yet
Development

No branches or pull requests

3 participants