GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — asyncio._SelectorSocketTransport cyclic ref leak is back as `._write_ready.__self__` · Issue #106503 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
asyncio._SelectorSocketTransport cyclic ref leak is back as ._write_ready.__self__#106503
Copy link
Labels
topic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@pteromys
pteromys
opened on Jul 7, 2023
Issue body actions

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
    • attempted 3.12.0b3 but my repro case uses aiohttp and I can't get aiohttp to build on 3.12+, probably due to Add Python 3.12 support aio-libs/aiohttp#7315 being still in progress
  • 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

  • gh-106503: asyncio._SelectorSocketTransport: free another cyclic reference on close(). #106504
  • [3.12] gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on close(). (GH-106504) #106514

Activity

  1. pteromys
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jul 7, 2023
  2. AlexWaygood
    added
    topic-asyncio
    on Jul 7, 2023
  3. github-project-automation
    added this to asyncioon Jul 7, 2023
  4. github-project-automation
    moved this to Todo in asyncioon Jul 7, 2023
  5. kumaraditya303
    added 2 commits that reference this issue on Jul 7, 2023

    gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on …

    3e5ce79

    [3.12] gh-106503: asyncio._SelectorSocketTransport: fix cyclic refere…

    7e883d7
  6. pteromys commented on Jul 7, 2023

    @pteromys
    pteromys
    on Jul 7, 2023
    ContributorAuthor
    More actions

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

  7. pteromys
    closed this as completedon Jul 7, 2023
  8. github-project-automation
    moved this from Todo to Done in asyncioon Jul 7, 2023
  9. Tasssadar
    added 3 commits that reference this issue on Dec 17, 2024

    Fix incomplete writes after close in asyncio._SelectorSocketTransport

    fe8b79c

    Fix incomplete writes after close in asyncio._SelectorSocketTransport

    113440a

    Fix incomplete writes after close in asyncio._SelectorSocketTransport

    f727b51
  10. Tasssadar
    added a commit that references this issue on Jan 13, 2025

    Fix incomplete writes after close in asyncio._SelectorSocketTransport

    060cba1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • asyncio
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.