Skip to content

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury 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

…y-bt-full` 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 c073a86 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143567%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 a4a33ff into python:3.13 Jan 8, 2026
91 of 96 checks passed
@colesbury colesbury deleted the backport-49c3b0a-3.13 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.

2 participants