FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-159739: Skip context watchers cleared during notification (GH-160164) by miss-islington · Pull Request #160291 · python/cpython · GitHub

Repository navigation

[3.15] gh-159739: Skip context watchers cleared during notification (GH-160164) - #160291

Merged
JelleZijlstra merged 1 commit into
python:3.15from
miss-islington:backport-0a57626-3.15
Oct 22, 2026
Merged

JelleZijlstra merged 1 commit into
python:3.15from
miss-islington:backport-0a57626-3.15

Conversation

miss-islington commented Oct 22, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

A context watcher callback can clear a later watcher while a context-switch notification is being dispatched. The dispatcher still uses its earlier snapshot of active watchers, so it calls a NULL callback and crashes; check that each callback is still registered before invoking it. Backport to 3.15 and 3.14.
(cherry picked from commit 0a57626)

Co-authored-by: Jelle Zijlstra jelle@openai.com

…ythonGH-160164)

A context watcher callback can clear a later watcher while a context-switch notification is being dispatched. The dispatcher still uses its earlier snapshot of active watchers, so it calls a NULL callback and crashes; check that each callback is still registered before invoking it. Backport to 3.15 and 3.14.
(cherry picked from commit 0a57626)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
miss-islington requested a review from 1st1 as a code owner October 22, 2026 18:22
JelleZijlstra merged commit 9986943 into python:3.15 Oct 22, 2026
56 checks passed
miss-islington deleted the backport-0a57626-3.15 branch October 22, 2026 22:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL