Skip to content

Conversation

@godlygeek
Copy link
Contributor

@godlygeek godlygeek commented Aug 29, 2024

All other debug offsets are relative to the start of the object, but the offsets for PyLongObject's fields are relative to the start of an inner object, and so each field's value is too small by sizeof(PyObject).

All other debug offsets are relative to the start of the object, but the
offsets for PyLongObject's fields are relative to the start of an inner
object, and so each field's value is too small by `sizeof(PyObject)`.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek
Copy link
Contributor Author

CC @pablogsal

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. Alright, the base object is PyLongObject.

@vstinner vstinner added the needs backport to 3.13 bugs and security fixes label Aug 30, 2024
@pablogsal pablogsal merged commit 7fca268 into python:main Aug 30, 2024
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 30, 2024
)

(cherry picked from commit 7fca268)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
@bedevere-app
Copy link

bedevere-app bot commented Aug 30, 2024

GH-123499 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 Aug 30, 2024
@godlygeek godlygeek deleted the fix_long_debug_offsets branch August 30, 2024 13:50
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.

3 participants