Skip to content

gh-132673: Fix ctypes.Structure with _align_=0 #132676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2025

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Apr 18, 2025

…sliCv.rst

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, this is a really funny bug! LGTM, with one news nitpick.

@@ -0,0 +1,2 @@
Fix :exc:`AssertionError` raised on :class:`ctypes.Structure` with
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't it a crash, not an AssertionError?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 3.14 it was an AssertionError.

@picnixz
Copy link
Member

picnixz commented Apr 18, 2025

(For 3.13, the NEWS entry should mention a crash)

@sobolevn sobolevn merged commit 678b8e1 into python:main Apr 18, 2025
43 checks passed
@miss-islington-app
Copy link

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

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

cherry_picker 678b8e165646e72a2f39f017ad237210d3d481ef 3.13

@sobolevn sobolevn removed the needs backport to 3.13 bugs and security fixes label Apr 18, 2025
@sobolevn
Copy link
Member Author

See #132673 (comment) on why I don't think that backport is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants