◐ Shell
reader mode source ↗
Skip to content

bpo-36333: Fix leak in _PyRuntimeState_Fini#12400

Merged
vstinner merged 1 commit into
python:masterfrom
matrixise:bpo-36333-fix_refleak__PyRuntimeState_Fini
Mar 19, 2019
Merged

bpo-36333: Fix leak in _PyRuntimeState_Fini#12400
vstinner merged 1 commit into
python:masterfrom
matrixise:bpo-36333-fix_refleak__PyRuntimeState_Fini

Conversation

@matrixise

@matrixise matrixise commented Mar 18, 2019

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM, but I would prefer that @ericsnowcurrently review it since he added _PyRuntime.xidregistry (and its mutex).

@vstinner

Copy link
Copy Markdown
Member

Python 3.7 is not affected: it doesn't have _PyRuntime.xidregistry.

@eamanu eamanu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hide comment

LGTM!

@ericsnowcurrently ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM

Thanks for working on this!

@ericsnowcurrently

Copy link
Copy Markdown
Member

FWIW, _PyRuntime.ceval.pending.lock may be leaking too.

@vstinner

Copy link
Copy Markdown
Member

FWIW, _PyRuntime.ceval.pending.lock may be leaking too.

@matrixise: Can you try to free _PyRuntime.ceval.pending.lock in _PyEval_FiniThreads()?

@matrixise

Copy link
Copy Markdown
Member Author

@ericsnowcurrently I will check in an other PR. Thanks for the review

@matrixise

Copy link
Copy Markdown
Member Author

Ok i will do it

@vstinner vstinner merged commit 943395f into python:master Mar 19, 2019
@vstinner

Copy link
Copy Markdown
Member

I merged this PR, thanks @matrixise.

Oh, there are now too many leaks... I merged https://bugs.python.org/issue36356 PR and I wrote PR #12432 to free the pending lock, to have a better view of remaining leaks.

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.

6 participants