Title: GitHub · Where software is built
Open Graph Title: python/cpython
X Title: python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
X Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Opengraph URL: https://github.com/python/cpython
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_weakref.test_threaded_weak_key_dict_deepcopy` crash: merged objects should have ob_tid == 0","articleBody":"# Bug report\n\n```\n0:08:41 load avg: 0.10 [402/491/1] test_weakref worker non-zero exit code (Exit code 2147483651) -- running (7): test_largefile (2 min 38 sec), test_zipimport (2 min 25 sec), test_compileall (2 min 14 sec), test_dbm (1 min 54 sec), test_free_threading (2 min 32 sec), test_regrtest (1 min 36 sec), test_pathlib (2 min 44 sec)\n...\ntest.test_weakref.MappingTestCase.test_threaded_weak_key_dict_deepcopy) ... C:\\Users\\Administrator\\buildarea\\pull_request.itamaro-win64-srv-22-aws.x64.nogil\\build\\Python\\gc_free_threading.c:1081: validate_refcounts: Assertion \"op-\u003eob_tid == 0\" failed: merged objects should have ob_tid == 0\nEnable tracemalloc to get the memory block allocation traceback\n\nobject address : 0000020002444810\nobject refcount : 0\nobject type : 00007FFC8D8A1620\nobject type name: weakref.ReferenceType\nobject repr : \u003crefcnt 0 at 0000020002444810\u003e\n\nFatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed\nPython runtime state: initialized\n\nStack (most recent call first):\n File \"C:\\Users\\Administrator\\buildarea\\pull_request.itamaro-win64-srv-22-aws.x64.nogil\\build\\Lib\\test\\test_weakref.py\", line 1999 in pop_and_collect\n File \"C:\\Users\\Administrator\\buildarea\\pull_request.itamaro-win64-srv-22-aws.x64.nogil\\build\\Lib\\threading.py\", line 1016 in run\n File \"C:\\Users\\Administrator\\buildarea\\pull_request.itamaro-win64-srv-22-aws.x64.nogil\\build\\Lib\\threading.py\", line 1074 in _bootstrap_inner\n File \"C:\\Users\\Administrator\\buildarea\\pull_request.itamaro-win64-srv-22-aws.x64.nogil\\build\\Lib\\threading.py\", line 1036 in _bootstrap\n```\n\nLooks like it happens during a `gc.collect()` call:\n\nhttps://github.com/python/cpython/blob/1ffe913c2017b44804aca18befd45689df06c069/Lib/test/test_weakref.py#L1992-L1999\n\nhttps://buildbot.python.org/#/builders/1295/builds/591\n\nThe test passed on retry, but this seems like a bug.\n\nSeen in main (3.15) on Windows debug build with free threading\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-135589\n* gh-135682\n* gh-135876\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2025-06-03T21:03:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/135106/cpython/issues/135106"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:a360823d-42ac-c0ef-0009-f3e16ebeea6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A220:378262:481675:5EBF72:696AE1F5 |
| html-safe-nonce | 783d9bb8f680736632b9fc924851bc695421e31fe8657d17233c421036384c3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjIwOjM3ODI2Mjo0ODE2NzU6NUVCRjcyOjY5NkFFMUY1IiwidmlzaXRvcl9pZCI6IjU4NDQ2ODU3MzMwNDE4MTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fe14987038721205f171fc2647c204a2fb64c205780c4b09a372a39fe5a1a9a5 |
| hovercard-subject-tag | repository:81598961 |
| 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/python/cpython/issues/135106 |
| twitter:image | https://opengraph.githubassets.com/4bdc75ff44f93fff474a15ea6ea0267a6b07f28bf753fc4d6f632a57d2fa7429/python/cpython |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4bdc75ff44f93fff474a15ea6ea0267a6b07f28bf753fc4d6f632a57d2fa7429/python/cpython |
| og:image:alt | The Python programming language. Contribute to python/cpython development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-cache |
| 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 | 3d84d50b3c75fa36755c3cf392edbc09e626f979 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width