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

pitiphong-p opened this issue Jul 4, 2019 · 3 comments


Copy link

@pitiphong-p pitiphong-p commented Jul 4, 2019

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

Attachment: Download


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

Copy link

@belkadan belkadan commented Jul 6, 2019

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

Copy link
Contributor Author

@pitiphong-p pitiphong-p commented Jul 6, 2019

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

Copy link
Contributor Author

@pitiphong-p pitiphong-p commented Jul 30, 2019

@belkadan I found a similar issue and reported it here Could you have a look at it?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants