Order of _io objects finalization can lose data in reference cycles

Offen
#67,185 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
20/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
backend

Rechercherichtung

Start by reading the linked gcio.py and gcgzipio.py examples, then inspect the relevant _io finalization behavior for reference cycles. Reproduce the reported data loss and establish the expected finalization order before determining what regression coverage is needed; done means cyclic _io objects no longer lose buffered data.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

3.10 3.11 3.9 (EOL) interpreter-core topic-IO type-bug
BPO 22996
Nosy @pitrou, @vstinner, @serhiy-storchaka, @MojoVampire, @iritkatriel
Files
  • gcio.py
  • gcgzipio.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2014-12-04.13:50:26.895>
    labels = ['3.10', 'type-bug', '3.9', 'expert-IO', '3.11']
    title = 'Order of _io objects finalization can lose data in reference cycles'
    updated_at = <Date 2021-11-27.15:03:59.912>
    user = 'https://github.com/pitrou'
    

    bugs.python.org fields:

    activity = <Date 2021-11-27.15:03:59.912>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['IO']
    creation = <Date 2014-12-04.13:50:26.895>
    creator = 'pitrou'
    dependencies = []
    files = ['37358', '37371']
    hgrepos = []
    issue_num = 22996
    keywords = []
    message_count = 6.0
    messages = ['232138', '232161', '232162', '232179', '232180', '407149']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'vstinner', 'serhiy.storchaka', 'josh.r', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22996'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    Vorherrschende Sprache
    Python
    Sterne
    77.2k
    Forks
    36k
    Ø Merge
    1 T. 9 Std.
    Gemergte PRs (30 T.)
    558

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
    3. Forken Sie das Repository und arbeiten Sie in einem Branch.
    4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

    Mehr aus python/cpython

    Alle Issues in python/cpython

    Ähnliche Issues

    Weitere Issues zu Python

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.