Skip to content

Don't serialize redefined symbol nodes - #7499

Merged
JukkaL merged 1 commit into
masterfrom
no_serialize_redefs
Sep 12, 2019
Merged

JukkaL merged 1 commit into
masterfrom
no_serialize_redefs

Conversation

@msullivan

Copy link
Copy Markdown
Collaborator

Redefined nodes sometimes have busted internal references (like a self
argument that has the class as its type even though it won't be able
to look it up) which can cause crashes. Since they can't have
references from outside themselves, we don't lose anything by not
serializing them.

Fixes a crash I observed at Dropbox.

This partially reverts #7413, which introduced this crash (while
fixing another), but leaves the test case it added.

This (or another fix for this crash) needs to go into #7461 since it is a kind of bad regression.

Redefined nodes sometimes have busted internal references (like a self
argument that has the class as its type even though it won't be able
to look it up) which can cause crashes. Since they can't have
references from outside themselves, we don't lose anything by not
serializing them.

Fixes a crash I observed at Dropbox.

This partially reverts #7413, which introduced this crash (while
fixing another), but leaves the test case it added.
@msullivan
msullivan requested a review from JukkaL September 11, 2019 22:17

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the quick fix! I agree that this looks important.

@JukkaL
JukkaL merged commit 28423cd into master Sep 12, 2019
JukkaL pushed a commit that referenced this pull request Sep 12, 2019
Redefined nodes sometimes have busted internal references (like a self
argument that has the class as its type even though it won't be able
to look it up) which can cause crashes. Since they can't have
references from outside themselves, we don't lose anything by not
serializing them.

Fixes a crash I observed at Dropbox.

This partially reverts #7413, which introduced this crash (while
fixing another), but leaves the test case it added.
@JukkaL JukkaL mentioned this pull request Sep 12, 2019
@ilevkivskyi
ilevkivskyi deleted the no_serialize_redefs branch September 12, 2019 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants