Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 8, 2026

In optimized and -Og builds, arguments and local variables are frequently
unavailable in gdb. This makes py-bt fail to print anything useful. Use the
PyThreadState* pointers _Py_tss_gilstate and Py_tss_tstate to find the
interpreter frame if we can't get the frame from the
_PyEval_EvalFrameDefault call.
(cherry picked from commit 49c3b0a)

Co-authored-by: Sam Gross colesbury@gmail.com
Co-authored-by: Victor Stinner vstinner@python.org

…ll` when available (pythongh-143371)

In optimized and `-Og` builds, arguments and local variables are frequently
unavailable in gdb. This makes `py-bt` fail to print anything useful. Use the
`PyThreadState*` pointers `_Py_tss_gilstate` and `Py_tss_tstate` to find the
interpreter frame if we can't get the frame from the
`_PyEval_EvalFrameDefault` call.
(cherry picked from commit 49c3b0a)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @colesbury for commit 9953389 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143566%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 8, 2026
@colesbury colesbury merged commit 0f02dbe into python:3.14 Jan 8, 2026
90 of 92 checks passed
@miss-islington miss-islington deleted the backport-49c3b0a-3.14 branch January 8, 2026 17:35
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