Skip to content
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

_Py_DebugOffsets for PyLongObject are incorrect #123484

Closed
godlygeek opened this issue Aug 29, 2024 · 1 comment
Closed

_Py_DebugOffsets for PyLongObject are incorrect #123484

godlygeek opened this issue Aug 29, 2024 · 1 comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@godlygeek
Copy link
Contributor

godlygeek commented Aug 29, 2024

Bug report

Bug description:

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).

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux

Linked PRs

@godlygeek godlygeek added the type-bug An unexpected behavior, bug, or error label Aug 29, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 30, 2024
@picnixz picnixz added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Aug 30, 2024
@picnixz
Copy link
Contributor

picnixz commented Aug 30, 2024

I believe this one can be closed, or is there something else to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants