Skip to content

bpo-31683: Py_FatalError() now supports long error messages - #3878

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:fatal_error_win
Oct 4, 2017
Merged

bpo-31683: Py_FatalError() now supports long error messages#3878
vstinner merged 1 commit into
python:masterfrom
vstinner:fatal_error_win

Conversation

@vstinner

@vstinner vstinner commented Oct 3, 2017

Copy link
Copy Markdown
Member

On Windows, Py_FatalError() now limits the size to 256 bytes of the
buffer used to call OutputDebugStringW(). Previously, the size
depended on the length of the error message.

https://bugs.python.org/issue31683

On Windows, Py_FatalError() now limits the size to 256 bytes of the
buffer used to call OutputDebugStringW(). Previously, the size
depended on the length of the error message.
@vstinner

vstinner commented Oct 3, 2017

Copy link
Copy Markdown
Member Author

I tested my change using Microsoft DebugView:
https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

I modified the buffer size of 8 bytes and called faulthandler._fatal_error("1234567890"): chunks are correctly logged.

@vstinner
vstinner merged commit 8d5a3aa into python:master Oct 4, 2017
@vstinner
vstinner deleted the fatal_error_win branch October 4, 2017 16:50
@vstinner

vstinner commented Oct 4, 2017

Copy link
Copy Markdown
Member Author

Thank you for the review @zooba!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants