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
_Py_DumpASCII() writes characters one by one leading to corrupted tracebacks #89989
Comments
This is also a performance issue but I'm mostly concerned about the stdout corruption aspect. When more than one thread aborts at the same time, output ends up looking like the example below on the terminal. Unless you understand the issue is output written out byte-by-byte, you might get misled into seeing memory corruption. Fatal Python error: Aborted Fatal Python error: Fatal Python error: Fatal Python error: AbortedAborted AbortedCurrent thread 0x 0000000110cf4dc0 (most recent call first): |
Yep. On Windows, it already happened to me to see characters written one by one when the machine and the terminal was super slow. I expect faster dump if an ASCII string can be written at once. |
Thanks, Victor! ✨ 🍰 ✨ |
I'm curious to know if the traceback became a little more readable than msg406480 with this minor enhancement ;-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: