Title: Parallel parsing sometimes crashes when compiled in free-threaded Python · Issue #21578 · python/mypy · GitHub
Open Graph Title: Parallel parsing sometimes crashes when compiled in free-threaded Python · Issue #21578 · python/mypy
X Title: Parallel parsing sometimes crashes when compiled in free-threaded Python · Issue #21578 · python/mypy
Description: I don't have a way to reproduce this, but just noticed this random crash in testOutputJsonParallel: Current thread's C stack trace (most recent call first): Binary file "/opt/hostedtoolcache/Python/3.14.5/arm64-freethreaded/lib/libpython...
Open Graph Description: I don't have a way to reproduce this, but just noticed this random crash in testOutputJsonParallel: Current thread's C stack trace (most recent call first): Binary file "/opt/hostedtoolcache/Python...
X Description: I don't have a way to reproduce this, but just noticed this random crash in testOutputJsonParallel: Current thread's C stack trace (most recent call first): Binary file "/opt/hostedtoo...
Opengraph URL: https://github.com/python/mypy/issues/21578
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parallel parsing sometimes crashes when compiled in free-threaded Python","articleBody":"I don't have a way to reproduce this, but just noticed this random crash in `testOutputJsonParallel`:\n```\nCurrent thread's C stack trace (most recent call first):\n Binary file \"/opt/hostedtoolcache/Python/3.14.5/arm64-freethreaded/lib/libpython3.14t.so.1.0\", at _Py_DumpStack+0x4c [0xff4fb2f871ac]\n Binary file \"/opt/hostedtoolcache/Python/3.14.5/arm64-freethreaded/lib/libpython3.14t.so.1.0\", at +0xed7ac [0xff4fb2f8d7ac]\n Binary file \"linux-vdso.so.1\", at __kernel_rt_sigreturn+0x0 [0xff4fb3536938]\n Binary file \"/lib/aarch64-linux-gnu/libc.so.6\", at +0x87608 [0xff4fb2d67608]\n Binary file \"/lib/aarch64-linux-gnu/libc.so.6\", at gsignal+0x1c [0xff4fb2d1cb3c]\n Binary file \"/lib/aarch64-linux-gnu/libc.so.6\", at abort+0xf4 [0xff4fb2d07e00]\n Binary file \"/lib/aarch64-linux-gnu/libc.so.6\", at +0x35cc0 [0xff4fb2d15cc0]\n Binary file \"/lib/aarch64-linux-gnu/libc.so.6\", at __assert_perror_fail+0x0 [0xff4fb2d15d30]\n Binary file \"/home/runner/work/mypy/mypy/fb62009ad6f7d3457273__mypyc.cpython-314t-aarch64-linux-gnu.so\", at +0x2bde554 [0xff4fab4ee554]\n Binary file \"/home/runner/work/mypy/mypy/fb62009ad6f7d3457273__mypyc.cpython-314t-aarch64-linux-gnu.so\", at +0x6118dc [0xff4fa8f218dc]\n Binary file \"/home/runner/work/mypy/mypy/fb62009ad6f7d3457273__mypyc.cpython-314t-aarch64-linux-gnu.so\", at CPyArg_ParseStackAndKeywordsSimple+0x1b0 [0xff4fa8f22e9c]\n Binary file \"/home/runner/work/mypy/mypy/fb62009ad6f7d3457273__mypyc.cpython-314t-aarch64-linux-gnu.so\", at CPyPy_mypy___build___State___parse_file_inner+0x48 [0xff4fa90d8f98]\n Binary file \"/opt/hostedtoolcache/Python/3.14.5/arm64-freethreaded/lib/libpython3.14t.so.1.0\", at _PyEval_EvalFrameDefault+0x48c4 [0xff4fb30620a4]\n```\nIt looks like some C-level assertion failure (because of a race condition?) FWIW I have never seen this issue in regular (non-free-threaded) Python.\n\ncc @JukkaL (as you have been interested in making native parser more stable)","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2026-06-02T16:17:38Z","url":"https://github.com/python/mypy/issues/21578"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d7fd02d9-3d08-9120-24b1-8c88512d821c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4E0:3E7030:55C44B:731EF7:6B0032BA |
| html-safe-nonce | 3285e8feae70d2de0e427dcb41edd4ddc259ae21346b2268392bd6edb2340a5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEUwOjNFNzAzMDo1NUM0NEI6NzMxRUY3OjZCMDAzMkJBIiwidmlzaXRvcl9pZCI6IjEzMjg5NTg4MzI3NDY5Njc3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 811a79b4cbb6e5cb06cce761143a39a75936ef3bf10b11c583e4feca0dbf8ec5 |
| hovercard-subject-tag | issue:4573127432 |
| 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/mypy/21578/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a89b7c86c75f601a1709b4ebcabf46c4342b33492555d2225212645ad40ca699/python/mypy/issues/21578 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a89b7c86c75f601a1709b4ebcabf46c4342b33492555d2225212645ad40ca699/python/mypy/issues/21578 |
| og:image:alt | I don't have a way to reproduce this, but just noticed this random crash in testOutputJsonParallel: Current thread's C stack trace (most recent call first): Binary file "/opt/hostedtoolcache/Python... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilevkivskyi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width