Title: Assertion crash in `code_returns_only_none` · Issue #139778 · python/cpython · GitHub
Open Graph Title: Assertion crash in `code_returns_only_none` · Issue #139778 · python/cpython
X Title: Assertion crash in `code_returns_only_none` · Issue #139778 · python/cpython
Description: Crash report What happened? There is incorrect assertion in code_returns_only_none function from Objects/codeobject.c: -> % cat subinterpreteres_assert.py from concurrent import interpreters interp = interpreters.create() interp.exec("""...
Open Graph Description: Crash report What happened? There is incorrect assertion in code_returns_only_none function from Objects/codeobject.c: -> % cat subinterpreteres_assert.py from concurrent import interpreters interp...
X Description: Crash report What happened? There is incorrect assertion in code_returns_only_none function from Objects/codeobject.c: -> % cat subinterpreteres_assert.py from concurrent import interpreters int...
Opengraph URL: https://github.com/python/cpython/issues/139778
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assertion crash in `code_returns_only_none`","articleBody":"# Crash report\n\n### What happened?\n\nThere is incorrect assertion in `code_returns_only_none` function from `Objects/codeobject.c`:\n\n```python\n-\u003e % cat subinterpreteres_assert.py \nfrom concurrent import interpreters\n\ninterp = interpreters.create()\ninterp.exec(\"\"\"while True: pass\"\"\")\n\n-\u003e % ./python subinterpreteres_assert.py\npython: Objects/codeobject.c:2132: code_returns_only_none: Assertion `IS_RAISE_OPCODE(final.op.code)' failed.\n[1] 1341262 IOT instruction ./python subinterpreteres_assert.py\n```\n\nI've already have a PR which fixes it.\n\n### CPython versions tested on:\n\nCPython main branch, 3.14\n\n### Operating systems tested on:\n\n_No response_\n\n### Output from running 'python -VV' on the command line:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139779\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/efimov-mikhail","@type":"Person","name":"efimov-mikhail"},"datePublished":"2025-10-08T13:58:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/139778/cpython/issues/139778"}
| 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:1b0b4d18-e4e9-ae02-4a5e-1a9b8804a1d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B962:1E1D6F:2BFF368:3B45DFB:696AEBB2 |
| html-safe-nonce | 0d8204dc73670ab3dd4bca180ae8b39bf8a05bb4cfc7ebb78c4da6442672a935 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTYyOjFFMUQ2RjoyQkZGMzY4OjNCNDVERkI6Njk2QUVCQjIiLCJ2aXNpdG9yX2lkIjoiNTM0NDMxOTEyNzc3NjA2MjM4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0152c683ef2258fd45823c7f36ecaae4734ad8bd5ace0f860553fdf6f249bfcc |
| hovercard-subject-tag | issue:3495566753 |
| 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/139778/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd58672cb1312575012477e4cc641cd08067994bc8c22963927f0be0c9ce602d/python/cpython/issues/139778 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd58672cb1312575012477e4cc641cd08067994bc8c22963927f0be0c9ce602d/python/cpython/issues/139778 |
| og:image:alt | Crash report What happened? There is incorrect assertion in code_returns_only_none function from Objects/codeobject.c: -> % cat subinterpreteres_assert.py from concurrent import interpreters interp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | efimov-mikhail |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width