Skip to content
This repository has been archived by the owner. It is now read-only.

Issue #37 - Ignore non errors on Windows #38

Merged
merged 3 commits into from Jan 27, 2020

Conversation

@dee42
Copy link

@dee42 dee42 commented Jan 27, 2020

This ports python/cpython@2e4eee2 to Python 2 and to this backport of the faulthandler. It prevents logging of non-error Windows exceptions, which can fill up a logfile very quickly with spurious tracebacks.

Dee Moore added 2 commits Jan 27, 2020
…2c72d9f5b466ac49250b7a76bb3.patch to faulthandler backport

This prevents the Windows Exception handling from logging non error exceptions
Dee Moore
@dee42
Copy link
Author

@dee42 dee42 commented Jan 27, 2020

Travis tests seemed to have some issue running, but I have run the tests with Python 2.7.16 and the new test passes

@dee42 dee42 requested a review from vstinner Jan 27, 2020
Copy link
Owner

@vstinner vstinner left a comment

Thanks for the PR. I just have one request.

I want the faulthandler backport to strictly stick to the same code/feature set than Python upstream. New features should land first in Python.

tests.py Outdated
for exc_code in (
0xE06D7363, # MSC exception ("Emsc")
0xE0434352, # COM Callable Runtime exception ("ECCR")
0x40010006, # Debug Print exception

This comment has been minimized.

@vstinner

vstinner Jan 27, 2020
Owner

I'm ok with with this additional test, but I would prefer to first get it in Python upstream. Can you try to create a PR on Python to add this test? Please remove 0x40010006.

This comment has been minimized.

@vstinner

vstinner Jan 27, 2020
Owner

If you don't want to create a PR on Python, I can do it. Tell me what you prefer.

This comment has been minimized.

@dee42

dee42 Jan 27, 2020
Author

I can just remove it. I added it because it was the specific exception which was causing me issues, so I wanted to explicitly test on Windows that the case was fixed. I don't think there's any need to keep it.

Copy link
Owner

@vstinner vstinner left a comment

LGTM. Thanks for the PR!

@vstinner vstinner merged commit cb0fd39 into vstinner:master Jan 27, 2020
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
@vstinner
Copy link
Owner

@vstinner vstinner commented Jan 27, 2020

faulthandler 3.2 released with your fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.