#852·py-spy

Failed to get thread names on python v3.14.5

Author: benfredCreated May 13, 2026Updated May 13, 2026
Labelsbug

Thread names aren't being returned on python v3.14.5: https://github.com/benfred/py-spy/pull/851

This seems to be because of PyInterpreterState.imports.modules being at a different location versus v3.14.4. We should handle this case, possibly by leveraging Py_DebugOffsets.interpreter_state.imports_modules to get the correct location