Title: Free-threaded function watchers race with modifications to the function · Issue #162529 · python/cpython · GitHub
Open Graph Title: Free-threaded function watchers race with modifications to the function · Issue #162529 · python/cpython
X Title: Free-threaded function watchers race with modifications to the function · Issue #162529 · python/cpython
Description: Bug report Applies to the free-threaded build. There's no synchronization for a function watcher receiving an event for field k on function F about to be modified and another thread modifying F.k in parallel. When the watcher goes to ins...
Open Graph Description: Bug report Applies to the free-threaded build. There's no synchronization for a function watcher receiving an event for field k on function F about to be modified and another thread modifying F.k i...
X Description: Bug report Applies to the free-threaded build. There's no synchronization for a function watcher receiving an event for field k on function F about to be modified and another thread modifying F...
Opengraph URL: https://github.com/python/cpython/issues/162529
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Free-threaded function watchers race with modifications to the function","articleBody":"### Bug report\n\nApplies to the free-threaded build.\n\nThere's no synchronization for a function watcher receiving an event for field `k` on function `F` about to be modified and another thread modifying `F.k` in parallel. When the watcher goes to inspect the function, its fields might not be the same fields as they were before the corresponding MODIFY event.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-162530\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/alexmalyshev","@type":"Person","name":"alexmalyshev"},"datePublished":"2026-11-24T05:40:22Z","url":"https://github.com/python/cpython/issues/162529"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:96cdc7e4-3a4f-b5b9-09dc-a93e9caf9adf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FA4:1CA0E6:CEABB2:118D75E:6B064C03 |
| html-safe-nonce | 434297b26acba230954680855cd17cb5e07f13828dcdb8b3915f29c486110cbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkE0OjFDQTBFNjpDRUFCQjI6MTE4RDc1RTo2QjA2NEMwMyIsInZpc2l0b3JfaWQiOiI3ODk1NTMzODg0OTI1MTY4NjQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8b09f5b7f8eb09d165e28cf03cadbaf71eb59d96f2496b4a3ac91c4975c80b1e |
| hovercard-subject-tag | issue:6575448673 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/162529/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3158bd4993c9eacfb7fc813640f16395e25b8e4eb0f8ad356b0bf40e4cc55339/python/cpython/issues/162529 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3158bd4993c9eacfb7fc813640f16395e25b8e4eb0f8ad356b0bf40e4cc55339/python/cpython/issues/162529 |
| og:image:alt | Bug report Applies to the free-threaded build. There's no synchronization for a function watcher receiving an event for field k on function F about to be modified and another thread modifying F.k i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexmalyshev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width