Skip to content

[3.15] gh-143008: Fix race re-initializing TextIOWrapper#151203

Merged
vstinner merged 1 commit into
python:3.15from
cmaloney:backport-db4b194-3.15
Jun 10, 2026
Merged

[3.15] gh-143008: Fix race re-initializing TextIOWrapper#151203
vstinner merged 1 commit into
python:3.15from
cmaloney:backport-db4b194-3.15

Conversation

@cmaloney

@cmaloney cmaloney commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

__init__ changes multiple variables and may be called more than once from multiple threads.

Backporting only a small subset of GH-145957. See #145957 (comment)

__init__ changes multiple variables and may be called more than once
from multiple threads.
@cmaloney cmaloney requested a review from vstinner June 9, 2026 18:18
@cmaloney cmaloney changed the title [3.15] gh-143008: Fix race re-initilaizing TextIOWrapper [3.15] gh-143008: Fix race re-initializing TextIOWrapper Jun 9, 2026
@vstinner vstinner added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 10, 2026
@vstinner vstinner merged commit 0318867 into python:3.15 Jun 10, 2026
59 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @cmaloney for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @cmaloney and @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 0318867acf72e3acf78f480db73a69982573263a 3.13

@bedevere-app

bedevere-app Bot commented Jun 10, 2026

Copy link
Copy Markdown

GH-151226 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 10, 2026
@bedevere-app

bedevere-app Bot commented Jun 10, 2026

Copy link
Copy Markdown

GH-151227 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jun 10, 2026
@vstinner

Copy link
Copy Markdown
Member

Merged, thanks for the fix. I backported it to 3.13 and 3.14 branches.

vstinner added a commit that referenced this pull request Jun 10, 2026
…) (#151227)

[3.15] gh-143008: Fix race re-initializing TextIOWrapper (#151203)

__init__() changes multiple variables and may be called more than once
from multiple threads.

(cherry picked from commit 0318867)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
vstinner pushed a commit that referenced this pull request Jun 10, 2026
…151226)

[3.15] gh-143008: Fix race re-initializing TextIOWrapper (GH-151203)

__init__() changes multiple variables and may be called more than once
from multiple threads.
(cherry picked from commit 0318867)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants