Skip to content

Fine-grained: Fix crashes due to stale dependencies #4725

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

Merged
merged 4 commits into from
Mar 14, 2018
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Mar 13, 2018

We can have a dependency pointing to a target that is no longer valid,
and this could trigger various assertions, causing a crash. Now we just
filter out bad targets to avoid crashes.

Fixes #4723 and other related issues.

JukkaL added 3 commits March 13, 2018 11:38
We could have a dependency pointing to a target that no longer was valid,
and various assertions could be triggered, causing a crash. Now we just
filter out bad targets to avoid crashes.

Fixes #4723 and other related issues.
Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -458,7 +458,7 @@ def set_line(self, target: Union[Context, int], column: Optional[int] = None) ->


class FuncItem(FuncBase):
arguments = [] # type: List[Argument]
arguments = [] # type: List[Argument] # Note: Can be None if deserialized (type is a lie!)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunate.

@@ -2832,3 +2832,148 @@ class C(Enum):
==
a.py:4: error: Argument 1 to "f" has incompatible type "C"; expected "int"
a.py:5: error: Argument 1 to "f" has incompatible type "C"; expected "int"

Copy link
Collaborator

Choose a reason for hiding this comment

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

Which tests hit partially deserialized nodes?

@msullivan msullivan merged commit f456718 into master Mar 14, 2018
@msullivan msullivan deleted the fg-crash-var branch March 14, 2018 00:32
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