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

asyncio._SelectorSocketTransport cyclic ref leak is back as ._write_ready.__self__ #106503

Closed
pteromys opened this issue Jul 7, 2023 · 1 comment
Labels
topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@pteromys
Copy link
Contributor

pteromys commented Jul 7, 2023

Bug report

#100348 aka #87745 (fix #100349 merged 2022-12-20) is back as a side effect of #31871 (merged 2022-12-24)—caching a bound method as _write_ready creates the reference cycle ._write_ready.__self__ on _SelectorSocketTransport.

Your environment

  • CPython versions tested on: 3.9.12, 3.11.3
  • Operating system and architecture: uname -a = Linux delia 6.3.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 11 May 2023 16:40:42 +0000 x86_64 GNU/Linux

Linked PRs

@pteromys pteromys added the type-bug An unexpected behavior, bug, or error label Jul 7, 2023
kumaraditya303 pushed a commit that referenced this issue Jul 7, 2023
…nce on close(). (GH-106504) (#106514)

gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on close(). (GH-106504)
(cherry picked from commit 3e5ce79)

Co-authored-by: Andrew Geng <pteromys@gmail.com>
@pteromys
Copy link
Contributor Author

pteromys commented Jul 7, 2023

Closed by PRs #106504 (main) and #106514 (3.12 backport).

@pteromys pteromys closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-asyncio type-bug An unexpected behavior, bug, or error
Projects
Status: Done
Development

No branches or pull requests

2 participants