Title: asyncio._SelectorSocketTransport cyclic ref leak is back as `._write_ready.__self__` · Issue #106503 · python/cpython · GitHub
Open Graph Title: asyncio._SelectorSocketTransport cyclic ref leak is back as `._write_ready.__self__` · Issue #106503 · python/cpython
X Title: asyncio._SelectorSocketTransport cyclic ref leak is back as `._write_ready.__self__` · Issue #106503 · python/cpython
Description: 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. Y...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/python/cpython/issues/106503
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"asyncio._SelectorSocketTransport cyclic ref leak is back as `._write_ready.__self__`","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n# Bug report\r\n\r\n#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`.\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.9.12, 3.11.3\r\n - attempted 3.12.0b3 but my repro case uses aiohttp and I can't get aiohttp to build on 3.12+, probably due to https://github.com/aio-libs/aiohttp/pull/7315 being still in progress\r\n- 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`\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-106504\n* gh-106514\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/pteromys","@type":"Person","name":"pteromys"},"datePublished":"2023-07-07T07:01:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/106503/cpython/issues/106503"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4025a754-dc7d-195f-8cca-429b49e15c57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE44:22A519:14009F1:1B56687:69694CDB |
| html-safe-nonce | a7f562b4c9328df0ffc41a1493c50597cd8d5b5ae31b1557037ce63f792b292d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTQ0OjIyQTUxOToxNDAwOUYxOjFCNTY2ODc6Njk2OTRDREIiLCJ2aXNpdG9yX2lkIjoiMzcyNTE5NjM1NjQ2MDU2MzY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 28f6ca245256d8ac9a59bc0f956dc3b36d93d15780d28f6953fac225189b1aea |
| hovercard-subject-tag | issue:1792930523 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/106503/issue_layout |
| twitter:image | https://opengraph.githubassets.com/623f38fd9678fb7afe98be9b640b2b9709ec839c450c3c49d152ac1e458c8b05/python/cpython/issues/106503 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/623f38fd9678fb7afe98be9b640b2b9709ec839c450c3c49d152ac1e458c8b05/python/cpython/issues/106503 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pteromys |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width