Title: Free threading locking issues in `listobject.c` · Issue #127536 · python/cpython · GitHub
Open Graph Title: Free threading locking issues in `listobject.c` · Issue #127536 · python/cpython
X Title: Free threading locking issues in `listobject.c` · Issue #127536 · python/cpython
Description: Bug report In #127524, @mpage suggested adding an assert to check that the list object is locked when calling ensure_shared_on_resize. This uncovers a few more locking issues. Additionally, we may return out of the critical section witho...
Open Graph Description: Bug report In #127524, @mpage suggested adding an assert to check that the list object is locked when calling ensure_shared_on_resize. This uncovers a few more locking issues. Additionally, we may ...
X Description: Bug report In #127524, @mpage suggested adding an assert to check that the list object is locked when calling ensure_shared_on_resize. This uncovers a few more locking issues. Additionally, we may ...
Opengraph URL: https://github.com/python/cpython/issues/127536
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Free threading locking issues in `listobject.c`","articleBody":"# Bug report\n\nIn https://github.com/python/cpython/pull/127524, @mpage suggested adding an assert to check that the list object is locked when calling `ensure_shared_on_resize`. This uncovers a few more locking issues.\n\nAdditionally, we may return out of the critical section without unlocking here:\n\nhttps://github.com/python/cpython/blob/c7dec02de2ed4baf3cd22ad094350265b52c18af/Objects/listobject.c#L956-L964\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-127580\n* gh-127613\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-12-02T19:46:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/127536/cpython/issues/127536"}
| 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:f9d98a1c-b681-4192-8357-1e179d56f6a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B336:FD8CA:6C83F3:9D9423:6A55EA4A |
| html-safe-nonce | 22c6ab41e4ef7eb3f4bedbae7e075664932d8a21499520b0ff008fc9eeb7e0a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzM2OkZEOENBOjZDODNGMzo5RDk0MjM6NkE1NUVBNEEiLCJ2aXNpdG9yX2lkIjoiNTgwMzc2MDI3NDg4OTg5NDQ3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29cf2f6050a803bd136395d1a49cf73832594a50682e7066f6087efcfc8c0688 |
| hovercard-subject-tag | issue:2713185800 |
| 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/127536/issue_layout |
| twitter:image | https://opengraph.githubassets.com/582ba3f28c73354c307a268ac19987503fa673017b1483b5da015dc79a9770b0/python/cpython/issues/127536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/582ba3f28c73354c307a268ac19987503fa673017b1483b5da015dc79a9770b0/python/cpython/issues/127536 |
| og:image:alt | Bug report In #127524, @mpage suggested adding an assert to check that the list object is locked when calling ensure_shared_on_resize. This uncovers a few more locking issues. Additionally, we may ... |
| 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 | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width