Title: gh-149816: Fix a race condition in `_PyBytes_FromList` with free-threading by sobolevn · Pull Request #149909 · python/cpython · GitHub
Open Graph Title: gh-149816: Fix a race condition in `_PyBytes_FromList` with free-threading by sobolevn · Pull Request #149909 · python/cpython
X Title: gh-149816: Fix a race condition in `_PyBytes_FromList` with free-threading by sobolevn · Pull Request #149909 · python/cpython
Description: _PyBytes_FromList is called from PyBytes_FromObject which does not own the passed object, so it is a borrowed reference. Using _PyList_GetItemRef seems like the correct solution here. However, I was not successful in actually triggering the failure without C-API direct usage. Issue: gh-149816
Open Graph Description: _PyBytes_FromList is called from PyBytes_FromObject which does not own the passed object, so it is a borrowed reference. Using _PyList_GetItemRef seems like the correct solution here. However, I wa...
X Description: _PyBytes_FromList is called from PyBytes_FromObject which does not own the passed object, so it is a borrowed reference. Using _PyList_GetItemRef seems like the correct solution here. However, I wa...
Opengraph URL: https://github.com/python/cpython/pull/149909
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e7ec7609-ef22-f880-372f-36b3bb5b28cc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8ABE:25BA60:556057:6FF54E:6A5303A4 |
| html-safe-nonce | ce456ec6d796a6cc3ee10d131b9de01a546f10969ca400fbfc624a154bce2e08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUJFOjI1QkE2MDo1NTYwNTc6NkZGNTRFOjZBNTMwM0E0IiwidmlzaXRvcl9pZCI6IjI4NjQ1ODQ5Nzg4MDA1MDk4NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ea7d3a8da6d952b9d7b500c7d08cdc0fea33d19454ed5feb2b3bc38bd29eddd6 |
| hovercard-subject-tag | pull_request:3693978151 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/pull/149909/files |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | _PyBytes_FromList is called from PyBytes_FromObject which does not own the passed object, so it is a borrowed reference. Using _PyList_GetItemRef seems like the correct solution here. However, I wa... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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