Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 9, 2026

Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure.

(cherry picked from commit 39a2bcf)

Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.

(cherry picked from commit 39a2bcf)
@vstinner vstinner added the needs backport to 3.13 bugs and security fixes label Jan 9, 2026
@vstinner vstinner merged commit 1d0baf1 into python:3.14 Jan 9, 2026
53 checks passed
@vstinner vstinner deleted the unraisablehook14 branch January 9, 2026 15:10
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 9, 2026
…GH-143557) (pythonGH-143603)

pythongh-143547: Fix PyErr_FormatUnraisable() fallback (pythonGH-143557)

Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.
(cherry picked from commit 1d0baf1ae48f98b61cc869a82e1b7206298f653f)

Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 39a2bcf)
@bedevere-app
Copy link

bedevere-app bot commented Jan 9, 2026

GH-143612 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 9, 2026
vstinner added a commit that referenced this pull request Jan 9, 2026
…H-143603) (#143612)

[3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) (GH-143603)

gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557)

Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.
(cherry picked from commit 1d0baf1)


(cherry picked from commit 39a2bcf)

Co-authored-by: Victor Stinner <[email protected]>
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.

1 participant