]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132869: Fix crash in `_PyObject_TryGetInstanceAttribute` (#133700)
authorSam Gross <colesbury@gmail.com>
Wed, 14 May 2025 03:47:34 +0000 (23:47 -0400)
committerGitHub <noreply@github.com>
Wed, 14 May 2025 03:47:34 +0000 (12:47 +0900)
commite1cc7895313d143478040c9cf8e2215402e326fc
tree821f0f39f131a9bdf66991e77c30feb75d4f9ef6
parent78a04b33005252ba9b4626e2b119da962aac2b3b
gh-132869: Fix crash in `_PyObject_TryGetInstanceAttribute` (#133700)

This fixes a crash in `_PyObject_TryGetInstanceAttribute` due to the use
of `_PyDictKeys_StringLookup` on an unlocked dictionary that may be
concurrently modified.

The underlying bug was already fixed in 3.14 and the main branch.

(partially cherry picked from commit 1b15c89a17ca3de6b05de5379b8717e9738c51ef)
Lib/test/test_free_threading/test_dict.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-08-19-01-32.gh-issue-132869.lqIOhZ.rst [new file with mode: 0644]
Objects/dictobject.c