Skip to content

[3.12] gh-129726: Break gzip.GzipFile reference loop (GH-130055) - #130670

Merged
vstinner merged 1 commit into
python:3.12from
miss-islington:backport-7f39137-3.12
Feb 28, 2025
Merged

vstinner merged 1 commit into
python:3.12from
miss-islington:backport-7f39137-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Feb 28, 2025 •

Copy link
Copy Markdown
Contributor

A reference loop was resulting in the fileobj held by the GzipFile
being closed before the GzipFile.

The issue started with gh-89550 in 3.12, but was hidden in most cases
until 3.13 when gh-62948 made it more visible.
(cherry picked from commit 7f39137)

Co-authored-by: Cody Maloney cmaloney@users.noreply.github.com

A reference loop was resulting in the `fileobj` held by the `GzipFile`
being closed before the `GzipFile`.

The issue started with pythongh-89550 in 3.12, but was hidden in most cases
until 3.13 when pythongh-62948 made it more visible.
(cherry picked from commit 7f39137)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants