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
PEP 475: Enhance faulthandler to handle better reentrant calls #68024
Comments
While working on the PEP-475, I noticed that the faulthandler module doesn't handle well reentrant calls to its signal handlers. If a signal is received while faulthandler is displaying the traceback, faulthandler restarts to display a new traceback (and then finish to display the previous traceback). Moreover, faulthandler uses the C function write() to display the traceback and it ignores write() errors. It should retry write() if write() is interrupted by a signal (fails with EINTR). Attached py_write_noraise.patch:
Attached traceback_eintr.patch:
Attached faulthandler_eintr.patch:
|
New changeset 60e001ec141d by Victor Stinner in branch 'default': New changeset d9b9e2a68e7c by Victor Stinner in branch 'default': New changeset 12e065efc821 by Victor Stinner in branch 'default': New changeset e3c97621d8b4 by Victor Stinner in branch 'default': New changeset 29ab05c5e9dc by Victor Stinner in branch 'default': New changeset f07b855afbb2 by Victor Stinner in branch 'default': |
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: