-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-38920: Add audit hooks for when sys.excepthook and sys.unraisable hooks are invoked #17392
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
Conversation
Targeted tests coming, but I want to manually test the 3.8 backport first. |
GH-17393 is a backport of this pull request to the 3.8 branch. |
if (err_msg == NULL) { | ||
PyErr_Clear(); | ||
} | ||
if (PySys_Audit("sys.unraisablehook", "OO", hook, hook_args) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No audit event is generated if there is no custom exception hook set?
…hook are invoked (GH-17392) Also fixes some potential segfaults in unraisable hook handling.
|
|
|
… hooks are invoked (pythonGH-17392) Also fixes some potential segfaults in unraisable hook handling.
… hooks are invoked (pythonGH-17392) Also fixes some potential segfaults in unraisable hook handling.
Also fixes some potential segfaults in unraisable hook handling.
https://bugs.python.org/issue38920