Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
On Windows, faulthandler.enable() now registers the exception handler as the
last handler to be called, rather than the first to be called. It prevents
handled C++ exceptions to be logged by faulthandler.
2 changes: 1 addition & 1 deletion Modules/faulthandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ faulthandler_enable(void)

#ifdef MS_WINDOWS
assert(fatal_error.exc_handler == NULL);
fatal_error.exc_handler = AddVectoredExceptionHandler(1, faulthandler_exc_handler);
fatal_error.exc_handler = AddVectoredExceptionHandler(0, faulthandler_exc_handler);
#endif
return 0;
}
Expand Down