Title: gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it by albanD · Pull Request #107275 · python/cpython · GitHub
Open Graph Title: gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it by albanD · Pull Request #107275 · python/cpython
X Title: gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it by albanD · Pull Request #107275 · python/cpython
Description: This fixes both the example in the initial report #77377 and other reports on the PyTorch repo. Note that as far as I can tell, all objects that lead to segfault with mixed context are all caused by SemLock created with fork sent over a Spawn process. That's why it is the only object updated here and the only pair of ctx covered. Let me know if I'm mistaken and I can find a way to update other objects as well. Also windows behavior is not changed here (and thus not tested). Please let me know if the error message and/or the test are not appropriate and I can work on improving them. Issue: gh-77377
Open Graph Description: This fixes both the example in the initial report #77377 and other reports on the PyTorch repo. Note that as far as I can tell, all objects that lead to segfault with mixed context are all caused b...
X Description: This fixes both the example in the initial report #77377 and other reports on the PyTorch repo. Note that as far as I can tell, all objects that lead to segfault with mixed context are all caused b...
Opengraph URL: https://github.com/python/cpython/pull/107275
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:fd07f0f5-8477-cf62-c044-f6b8c36a58cb |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A928:1C7E2D:5232D9:7283A6:696A7696 |
| html-safe-nonce | 5f5840d8b414fdb429ad0bfec3ccadc090147450cf88b90d878acaab59b99d2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTI4OjFDN0UyRDo1MjMyRDk6NzI4M0E2OjY5NkE3Njk2IiwidmlzaXRvcl9pZCI6IjQzMTUxNDQ3NDQ4ODc1NDc1NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 00c3d2ba63657ba88e7f31b4bc297f6fa63a3ab157c2cf4a31164f25f8e4d5ae |
| hovercard-subject-tag | pull_request:1449259557 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/107275/checks |
| twitter:image | https://avatars.githubusercontent.com/u/6359743?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6359743?s=400&v=4 |
| og:image:alt | This fixes both the example in the initial report #77377 and other reports on the PyTorch repo. Note that as far as I can tell, all objects that lead to segfault with mixed context are all caused b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width