bloomberg / pystack

🔍 🐍 Like pstack but for Python!
https://bloomberg.github.io/pystack
Apache License 2.0
1.03k stars 45 forks source link

Can't get even a pure-Python stack from a 3.13 without symbols or ELF files #205

Closed godlygeek closed 2 months ago

godlygeek commented 3 months ago

These recently introduced changes:

https://github.com/bloomberg/pystack/blob/d6b11022345b1b429d9fc6fff311236fa3be2c53/src/pystack/_pystack/pycode.cpp#L168-L185

have left us unable to render even a pure-Python stack from a 3.13 core file unless either debug symbols or the original ELF files are available.

At the very least, we need to fail open rather than closed here: if we can't tell for certain whether anything is a code object, we'd do better to assume that everything is than that nothing else. But perhaps there's something better we can do.