Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
zooba merged 4 commits into
python:masterpython/cpython:masterfrom
zooba:bpo-30557zooba/cpython:bpo-30557Copy head branch name to clipboard
Jun 5, 2017
Merged

bpo-30557: faulthandler now correctly filters and displays exception codes on Windows#1924
zooba merged 4 commits into
python:masterpython/cpython:masterfrom
zooba:bpo-30557zooba/cpython:bpo-30557Copy head branch name to clipboard

Conversation

@zooba

@zooba zooba commented Jun 2, 2017

Copy link
Copy Markdown
Member

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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.

Comment thread 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 */

Copy link
Copy Markdown
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

zooba commented Jun 2, 2017

Copy link
Copy Markdown
Member Author

@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

vstinner commented Jun 3, 2017 via email

Copy link
Copy Markdown
Member

@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

zooba commented Jun 5, 2017

Copy link
Copy Markdown
Member Author

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.