Skip to content

[3.14] gh-157579: Fix race condition in the cleanup of tempfile.TemporaryDirectory (GH-157580) - #158430

Merged
encukou merged 2 commits into
python:3.14from
miss-islington:backport-5c20517-3.14
Oct 9, 2026
Merged

encukou merged 2 commits into
python:3.14from
miss-islington:backport-5c20517-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

(cherry picked from commit 5c20517)

Co-authored-by: Stan Ulbrych stan@python.org
Co-authored-by: Petr Viktorin encukou@gmail.com

…raryDirectory` (pythonGH-157580)

(cherry picked from commit 5c20517)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This partially backports commit 86b8617
(pythonGH-146195); making existing tests use the helper is omitted.
@encukou

encukou commented Sep 30, 2026

Copy link
Copy Markdown
Member

!buildbot root

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit fb187f1 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158430%2Fmerge

The command will test the builders whose names match following regular expression: root

The builders matched are:

  • AMD64 Debian root PR

@encukou

encukou commented Oct 2, 2026

Copy link
Copy Markdown
Member

!buildbot Android

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit fb187f1 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158430%2Fmerge

The command will test the builders whose names match following regular expression: Android

The builders matched are:

  • aarch64 Android PR
  • AMD64 Android PR

jkreileder added a commit to jkreileder/cf-ips-to-hcloud-fw that referenced this pull request Oct 4, 2026
…1527)

Grype matches CVE-2026-12345 (TemporaryDirectory cleanup race, medium)
against the python 3.14.8 binary in the base image and lists a fix only
in 3.15.0. The fix is merged on main and 3.15 (python/cpython#157580,
#158431); the 3.14 backport (python/cpython#158430) is still open.

Refs #1412

Signed-off-by: Jürgen Kreileder <jk@blackdown.de>
@encukou encukou added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 8, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit fb187f1 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158430%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 8, 2026
@encukou

encukou commented Oct 9, 2026

Copy link
Copy Markdown
Member

Buildbot failures are pre-existing or unrelated.

@encukou
encukou merged commit 58ed025 into python:3.14 Oct 9, 2026
125 of 137 checks passed
@miss-islington
miss-islington deleted the backport-5c20517-3.14 branch October 9, 2026 13:17
@encukou encukou added the needs backport to 3.12 only security fixes label Oct 9, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @miss-islington for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @miss-islington and @encukou, I could not cleanly backport this to 3.12 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 58ed0259cae509a19138795df302fe60b544dc74 3.12

@bedevere-app

bedevere-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

GH-159074 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Oct 9, 2026
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.

4 participants