Skip to content

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

Merged
merged 4 commits into from
Jun 5, 2017

Conversation

zooba
Copy link
Member

@zooba zooba commented Jun 2, 2017

bpo-30557: faulthandler now correctly filters and displays exception codes on Windows

@zooba zooba added needs backport to 3.5 OS-windows type-bug An unexpected behavior, bug, or error labels Jun 2, 2017
@zooba zooba requested a review from vstinner June 2, 2017 21:41
Copy link
Member

@vstinner vstinner left a 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.

@@ -374,7 +374,7 @@ faulthandler_exc_handler(struct _EXCEPTION_POINTERS *exc_info)
DWORD flags = exc_info->ExceptionRecord->ExceptionFlags;

/* only log fatal exceptions */
Copy link
Member

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.

@zooba
Copy link
Member Author

zooba commented Jun 2, 2017

@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.

@vstinner
Copy link
Member

vstinner commented Jun 3, 2017 via email

@zooba zooba merged commit e6a23c8 into python:master Jun 5, 2017
@zooba zooba deleted the bpo-30557 branch June 5, 2017 22:54
zooba added a commit to zooba/cpython that referenced this pull request Jun 5, 2017
…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.
@zooba
Copy link
Member Author

zooba commented Jun 5, 2017

Doesn't actually need a backport to 3.5, since the affected code doesn't appear to be there.

zooba added a commit that referenced this pull request Jun 6, 2017
…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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants