-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-30557: faulthandler now correctly filters and displays exception codes on Windows #1924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to write an unit test for filtered exception? It's not a requirement, just a question.
Modules/faulthandler.c
Outdated
@@ -374,7 +374,7 @@ faulthandler_exc_handler(struct _EXCEPTION_POINTERS *exc_info) | |||
DWORD flags = exc_info->ExceptionRecord->ExceptionFlags; | |||
|
|||
/* only log fatal exceptions */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add bpo number to this comment.
@Haypo Should be able to - the RaiseException function should let us raise with any code we like. Or perhaps I can figure out the call that brought this problem to light and make that one. |
Ah yes, using RaiseException() and check that faulthandler didn't log
anything is a good plan
|
…codes on Windows (python#1924) * bpo-30557: faulthandler now correctly filters and displays exception codes on Windows * Adds test for non-fatal exceptions. * Adds bpo number to comment.
Doesn't actually need a backport to 3.5, since the affected code doesn't appear to be there. |
…ption … (#1960) * bpo-30557: faulthandler now correctly filters and displays exception codes on Windows (#1924) * bpo-30557: faulthandler now correctly filters and displays exception codes on Windows * Adds test for non-fatal exceptions. * Adds bpo number to comment. * bpo-30557: Fix test_faulthandler (#1969) On Windows 8, 8.1 and 10 at least, the exit code is the exception code (no bit is cleared).
bpo-30557: faulthandler now correctly filters and displays exception codes on Windows