cpython: efcc48cd5bfb (original) (raw)

Mercurial > cpython

changeset 100690:efcc48cd5bfb

faulthandler: only log fatal exceptions Issue #23848, #26622: * faulthandler now only logs fatal Windows exceptions. * write error code as decimal, not as hexadecimal * replace "Windows exception" with "Windows fatal exception" [#23848]

Victor Stinner victor.stinner@gmail.com
date Wed, 23 Mar 2016 14:44:14 +0100
parents 9d3e7efbc85b
children e6f00778d61f
files Lib/test/test_faulthandler.py Modules/faulthandler.c
diffstat 2 files changed, 11 insertions(+), 4 deletions(-)[+] [-] Lib/test/test_faulthandler.py 2 Modules/faulthandler.c 13

line wrap: on

line diff

--- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -115,7 +115,7 @@ class FaultHandlerTests(unittest.TestCas self.check_error(code, line_number, fatal_error, **kw) def check_windows_exception(self, code, line_number, name_regex, **kw):

@unittest.skipIf(sys.platform.startswith('aix'),

--- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -367,8 +367,15 @@ faulthandler_exc_handler(struct _EXCEPTI { const int fd = fatal_error.fd; DWORD code = exc_info->ExceptionRecord->ExceptionCode;

+