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

Reference leak in _contextvars.Context.run() #120811

Closed
ZeroIntensity opened this issue Jun 20, 2024 · 0 comments
Closed

Reference leak in _contextvars.Context.run() #120811

ZeroIntensity opened this issue Jun 20, 2024 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@ZeroIntensity
Copy link
Member

ZeroIntensity commented Jun 20, 2024

Bug report

Bug description:

In _contextvars.Context.run, call_result is not Py_DECREF'd if _PyContext_Exit fails. See here.

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Linked PRs

@ZeroIntensity ZeroIntensity added the type-bug An unexpected behavior, bug, or error label Jun 20, 2024
kumaraditya303 added a commit that referenced this issue Jun 21, 2024
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 21, 2024
…ythonGH-120812)

(cherry picked from commit aed31be)

Co-authored-by: Peter <zintensitydev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 21, 2024
…ythonGH-120812)

(cherry picked from commit aed31be)

Co-authored-by: Peter <zintensitydev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit that referenced this issue Jun 22, 2024
…H-120812) (#120844)

gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812)
(cherry picked from commit aed31be)

Co-authored-by: Peter <zintensitydev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit that referenced this issue Jun 22, 2024
…H-120812) (#120843)

gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812)
(cherry picked from commit aed31be)

Co-authored-by: Peter <zintensitydev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
mrahtz pushed a commit to mrahtz/cpython that referenced this issue Jun 30, 2024
…ython#120812)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
…ython#120812)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
…ython#120812)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants