Skip to content

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Jan 2, 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.

@colesbury colesbury requested a review from vstinner January 2, 2026 19:50
@colesbury colesbury changed the title gh-142941: Use thread local frame info in py-bt and py-bt-full when available gh-142095: Use thread local frame info in py-bt and py-bt-full when available Jan 2, 2026
@colesbury colesbury added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 2, 2026
@bedevere-bot
Copy link

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

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143371%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 2, 2026
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