gh-127604: Add C stack dumps to faulthandler (#128159)

This commit is contained in:
Peter Bierma 2025-04-21 15:48:02 -04:00 committed by GitHub
parent ea8ec95cfa
commit 8dfa840773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 378 additions and 69 deletions

View file

@ -56,6 +56,7 @@ struct _faulthandler_runtime_state {
#ifdef MS_WINDOWS
void *exc_handler;
#endif
int c_stack;
} fatal_error;
struct {

View file

@ -99,6 +99,9 @@ extern int _PyTraceBack_Print(
extern int _Py_WriteIndentedMargin(int, const char*, PyObject *);
extern int _Py_WriteIndent(int, PyObject *);
// Export for the faulthandler module
PyAPI_FUNC(void) _Py_DumpStack(int fd);
#ifdef __cplusplus
}
#endif