Title: Data race in `functools.partial` in Python 3.14 · Issue #143880 · python/cpython · GitHub
Open Graph Title: Data race in `functools.partial` in Python 3.14 · Issue #143880 · python/cpython
X Title: Data race in `functools.partial` in Python 3.14 · Issue #143880 · python/cpython
Description: Bug report Seen by @ngoldbaum in NumPy in numpy/numpy#30653 (comment) WARNING: ThreadSanitizer: data race (pid=15392) Read of size 8 at 0x00010b6de6f8 by thread T325: #0 object_vacall call.c:820 (libpython3.14t.dylib:arm64+0x8e0f4) #1 Py...
Open Graph Description: Bug report Seen by @ngoldbaum in NumPy in numpy/numpy#30653 (comment) WARNING: ThreadSanitizer: data race (pid=15392) Read of size 8 at 0x00010b6de6f8 by thread T325: #0 object_vacall call.c:820 (l...
X Description: Bug report Seen by @ngoldbaum in NumPy in numpy/numpy#30653 (comment) WARNING: ThreadSanitizer: data race (pid=15392) Read of size 8 at 0x00010b6de6f8 by thread T325: #0 object_vacall call.c:820 (l...
Opengraph URL: https://github.com/python/cpython/issues/143880
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Data race in `functools.partial` in Python 3.14","articleBody":"# Bug report\n\nSeen by @ngoldbaum in NumPy in https://github.com/numpy/numpy/pull/30653#issuecomment-3755762506\n\n```\nWARNING: ThreadSanitizer: data race (pid=15392)\n Read of size 8 at 0x00010b6de6f8 by thread T325:\n #0 object_vacall call.c:820 (libpython3.14t.dylib:arm64+0x8e0f4)\n #1 PyObject_CallFunctionObjArgs call.c:927 (libpython3.14t.dylib:arm64+0x8e49c)\n #2 array_str \u003cnull\u003e (_multiarray_umath.cpython-314t-darwin.so:arm64+0x254dd8)\n #3 PyObject_Str object.c:822 (libpython3.14t.dylib:arm64+0x13834c)\n...\n\n Previous write of size 8 at 0x00010b6de6f8 by thread T327:\n #0 partial_vectorcall_fallback _functoolsmodule.c:378 (libpython3.14t.dylib:arm64+0x424f94)\n #1 partial_vectorcall _functoolsmodule.c:393 (libpython3.14t.dylib:arm64+0x4248dc)\n #2 object_vacall call.c:820 (libpython3.14t.dylib:arm64+0x8e110)\n #3 PyObject_CallFunctionObjArgs call.c:927 (libpython3.14t.dylib:arm64+0x8e49c)\n```\n\nThe relevant code is:\n\nhttps://github.com/python/cpython/blob/1241432150f6342e3d38c5a80a19c8c157a4ebe8/Modules/_functoolsmodule.c#L373-L381\n\nThe assignemnt `pto-\u003evectorcall = NULL` leads to a data race in the free threading build.\n\nThis is fixed in main. We should fix it in 3.14 by guarding that assignment with an `#ifndef Py_GIL_DISABLED`\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-143882\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2026-01-15T18:01:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/143880/cpython/issues/143880"}
| 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:3224a51a-54de-1a9a-d801-585f8227a49d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E060:1EEB64:1DAC19:281884:6969CA5A |
| html-safe-nonce | 3b7032eb251899fa44c61ebf618e99d4fd86c2df90409eb3339ad0f3e55cab2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDYwOjFFRUI2NDoxREFDMTk6MjgxODg0OjY5NjlDQTVBIiwidmlzaXRvcl9pZCI6IjE1NzY3NjA4NTM1MTM0ODg5ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ef92b2e080c59cd6c3b0db163bebde12f586cf4f2c147b2cd24d1e69b262efbb |
| hovercard-subject-tag | issue:3818575368 |
| 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/143880/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da187dc5f7b5d88f7bac69f7e406bd098fffd9271658f00d0c3c37af5df732dc/python/cpython/issues/143880 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da187dc5f7b5d88f7bac69f7e406bd098fffd9271658f00d0c3c37af5df732dc/python/cpython/issues/143880 |
| og:image:alt | Bug report Seen by @ngoldbaum in NumPy in numpy/numpy#30653 (comment) WARNING: ThreadSanitizer: data race (pid=15392) Read of size 8 at 0x00010b6de6f8 by thread T325: #0 object_vacall call.c:820 (l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width