Uh oh!
There was an error while loading. Please reload this page.
GH-126910: add test for manual frame unwinding - #144137
Conversation
bedevere-bot
commented
Jan 22, 2026
🤖 New build scheduled with the buildbot fleet by @diegorusso for commit 5d53a15 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F144137%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
bedevere-bot
commented
Jan 22, 2026
🤖 New build scheduled with the buildbot fleet by @diegorusso for commit c179848 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F144137%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| #else | ||
| static const char * | ||
| classify_address(uintptr_t addr, int jit_enabled, PyInterpreterState *interp) |
There was a problem hiding this comment.
Do you get a warning here for interp being unused? I would have expected the compiler to complain for platforms without HAVE_DLADDR or WASI 🤔
There was a problem hiding this comment.
I tried compiling the branch above by removing code and I didn't see any warning even when passing -Wunused-parameter
There was a problem hiding this comment.
but I spotted a double branch in the ifdef logic. Wasi can fallback in the final else :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pablogsal
left a comment
There was a problem hiding this comment.
LGTM! I just left a bunch of minor nits. Feel free to land without those
pablogsal
commented
Jan 26, 2026
Very cool and great work @diegorusso 💯 |
diegorusso
commented
Jan 27, 2026
I've addressed all your reviews. Please have a look. |
Uh oh!
There was an error while loading. Please reload this page.
pablogsal
commented
Jan 27, 2026
LGTM Great work! |
Add a test that unwinds the stack using frame pointers. We test on any platform that frame pointers are enable (the others will be skipped). It tests with and without the JIT.
Output with PYTHON_JIT=0
Output with PYTHON_JIT=1
The core of the test has been taken from @pablogsal repository https://github.com/pablogsal/cpython-unwind