Skip to content

[3.15] gh-156124: Fix a crash when deleting ctypes Pointer.contents (GH-156125) - #156153

Merged
serhiy-storchaka merged 2 commits into
python:3.15from
miss-islington:backport-ca6e733-3.15
Oct 10, 2026
Merged

serhiy-storchaka merged 2 commits into
python:3.15from
miss-islington:backport-ca6e733-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

In the free-threaded build the setter passed the value to
Py_BEGIN_CRITICAL_SECTION2() before checking it for NULL.
(cherry picked from commit ca6e733)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ythonGH-156125)

In the free-threaded build the setter passed the value to
Py_BEGIN_CRITICAL_SECTION2() before checking it for NULL.
(cherry picked from commit ca6e733)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) October 10, 2026 08:53
@serhiy-storchaka
serhiy-storchaka merged commit 7681a44 into python:3.15 Oct 10, 2026
53 checks passed
@miss-islington
miss-islington deleted the backport-ca6e733-3.15 branch October 10, 2026 09:24
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