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

Leak the global static mutex in CKTextKitContext to avoid static destructor fiasco #906

Closed
wants to merge 1 commit into from

Conversation

ocrickard
Copy link
Contributor

I haven't tested this code, but this is what I would try to resolve #892. Someone should run some smoke tests with something like the above

…ructor fiasco

I haven't tested this code, but this is what I would try to resolve facebook#892. Someone should run some smoke tests with something like the above
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours has expired.

Before we can review or merge your code, we need you to email [email protected] with your details so we can update your status.

Copy link
Contributor

@gkassabli gkassabli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me in general. Let's check if this doesn't break anything

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gkassabli has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

chuganzy added a commit to chuganzy/react-native that referenced this pull request Dec 11, 2018
chuganzy added a commit to chuganzy/react-native that referenced this pull request Dec 11, 2018
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Feb 14, 2019
Summary:
Try to solve #13588
ref: facebook/componentkit#906
Pull Request resolved: #22607

Differential Revision: D14084056

Pulled By: shergin

fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
JAStanton pushed a commit to convoyinc/react-native that referenced this pull request Feb 19, 2019
Summary:
Try to solve facebook#13588
ref: facebook/componentkit#906
Pull Request resolved: facebook#22607

Differential Revision: D14084056

Pulled By: shergin

fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
JAStanton pushed a commit to convoyinc/react-native that referenced this pull request Feb 19, 2019
Summary:
Try to solve facebook#13588
ref: facebook/componentkit#906
Pull Request resolved: facebook#22607

Differential Revision: D14084056

Pulled By: shergin

fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
JAStanton pushed a commit to convoyinc/react-native that referenced this pull request Feb 19, 2019
Summary:
Try to solve facebook#13588
ref: facebook/componentkit#906
Pull Request resolved: facebook#22607

Differential Revision: D14084056

Pulled By: shergin

fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
JAStanton pushed a commit to convoyinc/react-native that referenced this pull request Feb 19, 2019
Summary:
Try to solve facebook#13588
ref: facebook/componentkit#906
Pull Request resolved: facebook#22607

Differential Revision: D14084056

Pulled By: shergin

fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Apr 28, 2021
Summary:
This intentionally leaks the static map, since it still might be accessed after static destructors are run. This is a common approach to this problem, see #22607 and facebook/componentkit#906 as examples. It also sets up an autorelease pool from  `RCTNativeModule::invoke` as a precaution since there's no strict guarantee one exists when it is called.

Changelog:
[iOS][Fixed] - Fix crash in RCTCoreModulesClassProvider during quit

Reviewed By: RSNara

Differential Revision: D27932062

fbshipit-source-id: fa75da4b78290027a762440ac6943c81b8594a57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal Exception: std::__1::system_error mutex lock failed: Invalid argument
3 participants