Skip to content

bpo-26153: Fix a rare crash when issuing warnings during interpreter shutdown#6520

Closed
Yhg1s wants to merge 2 commits into
python:3.6from
Yhg1s:3.6-warnings-del-crash
Closed

bpo-26153: Fix a rare crash when issuing warnings during interpreter shutdown#6520
Yhg1s wants to merge 2 commits into
python:3.6from
Yhg1s:3.6-warnings-del-crash

Conversation

@Yhg1s

@Yhg1s Yhg1s commented Apr 18, 2018

Copy link
Copy Markdown
Member

Fix a rare crash when using the 'warnings' module during interpreter shutdown: if interp->modules is deleted at the wrong time, PyImport_GetModulesDict() will abort.

https://bugs.python.org/issue26153

@Yhg1s

Yhg1s commented Apr 18, 2018

Copy link
Copy Markdown
Member Author

I've not been able to find a simple reproducer for this with 3.6, but I do have a complicated in-house (reproducible) crasher that is fixed by this. We don't use Python 3.5 or 3.4, though, so I can't test it against that, but I expect the same problem exists there.

@Yhg1s

Yhg1s commented Apr 19, 2018

Copy link
Copy Markdown
Member Author

I should've looked a little closer. This was fixed by GH-#5337, so we should just backport that one.

@Yhg1s Yhg1s closed this Apr 19, 2018
@Yhg1s
Yhg1s deleted the 3.6-warnings-del-crash branch May 31, 2018 10:22
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.

4 participants