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

Memory leak of NoDefaultType in _typing #123448

Closed
ZeroIntensity opened this issue Aug 29, 2024 · 1 comment
Closed

Memory leak of NoDefaultType in _typing #123448

ZeroIntensity opened this issue Aug 29, 2024 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@ZeroIntensity
Copy link
Member

ZeroIntensity commented Aug 29, 2024

Bug report

Bug description:

Quick reproducer:

$ ./python -X showrefcount -c "import _typing"
[8 refs, 0 blocks]

The underlying leaked object is NoDefaultType. I think this was caused by gh-118897 (cc @JelleZijlstra).

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@ZeroIntensity ZeroIntensity added the type-bug An unexpected behavior, bug, or error label Aug 29, 2024
@ZeroIntensity ZeroIntensity changed the title Memory leak of NoDefaultType in _typing` Memory leak of NoDefaultType in _typing Aug 29, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 29, 2024
…ythonGH-123449)

(cherry picked from commit c9930f5)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
JelleZijlstra pushed a commit that referenced this issue Aug 29, 2024
…H-123449) (#123450)

(cherry picked from commit c9930f5)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@JelleZijlstra
Copy link
Member

Thanks!

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