Title: Race between asyncio Condition.notify() and Task.cancel() may result in lost wakeups. · Issue #112202 · python/cpython · GitHub
Open Graph Title: Race between asyncio Condition.notify() and Task.cancel() may result in lost wakeups. · Issue #112202 · python/cpython
X Title: Race between asyncio Condition.notify() and Task.cancel() may result in lost wakeups. · Issue #112202 · python/cpython
Description: Bug report Bug description: A Task which issues a condition.notify(1) to wake up a Task from a set of waiting tasks to perform some task, e.g. consume a piece of data, may hit a race condition with a simultaneous cancel() of a task among...
Open Graph Description: Bug report Bug description: A Task which issues a condition.notify(1) to wake up a Task from a set of waiting tasks to perform some task, e.g. consume a piece of data, may hit a race condition with...
X Description: Bug report Bug description: A Task which issues a condition.notify(1) to wake up a Task from a set of waiting tasks to perform some task, e.g. consume a piece of data, may hit a race condition with...
Opengraph URL: https://github.com/python/cpython/issues/112202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Race between asyncio Condition.notify() and Task.cancel() may result in lost wakeups.","articleBody":"# Bug report\n\n### Bug description:\n\nA Task which issues a `condition.notify(1)` to wake up a `Task` from a set of waiting tasks to perform some task, e.g. consume a piece of data, may hit a *race condition* with a simultaneous `cancel()` of a task among the waiting tasks, resulting in none of the tasks\nsuccessfully returning from `cond.wait()`. This is problematic because because the `notify()` is essentially lost, and starvation/deadlocks may occur.\n\nPR #112201 contains a fix, as well as documentation updates\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112201\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kristjanvalur","@type":"Person","name":"kristjanvalur"},"datePublished":"2023-11-17T13:52:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/112202/cpython/issues/112202"}
| 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:95eb4545-c4b7-a9d7-d9ab-dad86aa276b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACC2:35ABB0:3F0B6C6:535A6A9:6A5D5462 |
| html-safe-nonce | b60b7a7944c563c9f087ceffcd13cb12f054b9432f466e315bd689cb87bb7896 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0MyOjM1QUJCMDozRjBCNkM2OjUzNUE2QTk6NkE1RDU0NjIiLCJ2aXNpdG9yX2lkIjoiNDc3MDQ3NDI0MjUwMDAyMzM5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6365efb84a1b621fc3ff29f4f954bf02318b2ee082d71cff24ae08da5337353 |
| hovercard-subject-tag | issue:1999190287 |
| 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/112202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d65961027b936adf53a15e01b3931e50c321e2a0a3284b44bd6ef4ed9f84120d/python/cpython/issues/112202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d65961027b936adf53a15e01b3931e50c321e2a0a3284b44bd6ef4ed9f84120d/python/cpython/issues/112202 |
| og:image:alt | Bug report Bug description: A Task which issues a condition.notify(1) to wake up a Task from a set of waiting tasks to perform some task, e.g. consume a piece of data, may hit a race condition with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kristjanvalur |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width