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

Fix GC corruption during NamedTuple instantiation #36650

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Conversation

Keno
Copy link
Member

@Keno Keno commented Jul 14, 2020

Plus a bonus missing GC root in dead code. Fixes #36649.

@Keno Keno added backport 1.5 bugfix This change fixes an existing bug labels Jul 14, 2020
src/jltypes.c Outdated Show resolved Hide resolved
Keno added 2 commits July 13, 2020 22:07
This code is dead, but also has GC-rooting issues (it modifies
iparams with a newly allocated object, but iparams is not
guaranteed to be roots). Delete it and add an assert that
should fire if anybody ever changes the surrounding code
to make it necessary again (at which point they can find
this commit and fix it properly).
Otherwise it's illegal to hold onto this object without having
set ->instance, which is just asking for crashes. Fixes #36649.
@Keno Keno merged commit 9676ec9 into master Jul 14, 2020
@Keno Keno deleted the kf/typeinstgcfix branch July 14, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing GC root somewhere
4 participants