Title: Data races in typeobject.c for type structure updates · Issue #133467 · python/cpython · GitHub
Open Graph Title: Data races in typeobject.c for type structure updates · Issue #133467 · python/cpython
X Title: Data races in typeobject.c for type structure updates · Issue #133467 · python/cpython
Description: Bug report Bug description: There are some additional data races (producing TSAN warnings) for typeobject.c in the free-threaded build. The following stores are unsafe: _Py_slot_tp_getattr_hook re-assigns tp_getattro slot_tp_descr_get as...
Open Graph Description: Bug report Bug description: There are some additional data races (producing TSAN warnings) for typeobject.c in the free-threaded build. The following stores are unsafe: _Py_slot_tp_getattr_hook re-...
X Description: Bug report Bug description: There are some additional data races (producing TSAN warnings) for typeobject.c in the free-threaded build. The following stores are unsafe: _Py_slot_tp_getattr_hook re-...
Opengraph URL: https://github.com/python/cpython/issues/133467
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Data races in typeobject.c for type structure updates","articleBody":"# Bug report\n\n### Bug description:\n\nThere are some additional data races (producing TSAN warnings) for typeobject.c in the free-threaded build.\n\nThe following stores are unsafe:\n\n- [x] _Py_slot_tp_getattr_hook re-assigns tp_getattro\n- [x] slot_tp_descr_get assigns to tp_descr_get\n- [x] type_set_name assigns to tp_name\n- [x] tp_base and tp_bases are assigned in likely unsafe ways\n\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133534\n* gh-133717\n* gh-137302\n* gh-137303\n* gh-140549\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/nascheme","@type":"Person","name":"nascheme"},"datePublished":"2025-05-05T19:42:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/133467/cpython/issues/133467"}
| 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:3fbc5be6-0f27-1787-fb66-5e4e5c9b7b12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B302:2BA57F:4765C5:5F3239:6A53E86C |
| html-safe-nonce | 15fe68ae1a8f3cd7988935b7b554e53d7db523aa9aaff373fab30af8e9f2308c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzAyOjJCQTU3Rjo0NzY1QzU6NUYzMjM5OjZBNTNFODZDIiwidmlzaXRvcl9pZCI6IjMzMTQyNjk5MzU4ODc0NDQwNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1d9ea5735d04c6c7f27ac825159a1c4d7babbac15fd138cd5017ad0068b6b966 |
| hovercard-subject-tag | issue:3040653232 |
| 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/133467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76a1ee59a725d0d87e3db04e49593553f7fcde4c16057aac83b23ab5a0aa90f9/python/cpython/issues/133467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76a1ee59a725d0d87e3db04e49593553f7fcde4c16057aac83b23ab5a0aa90f9/python/cpython/issues/133467 |
| og:image:alt | Bug report Bug description: There are some additional data races (producing TSAN warnings) for typeobject.c in the free-threaded build. The following stores are unsafe: _Py_slot_tp_getattr_hook re-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nascheme |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width