Assertion crash in `code_returns_only_none`
Aperta
@efimov-mikhail ci sta già lavorando.
Dal 16/10/2025.
3.14
3.15
extension-modules
topic-subinterpreters
type-crash
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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("""while True: pass""")
-> % ./python subinterpreteres_assert.py
python: Objects/codeobject.c:2132: code_returns_only_none: Assertion `IS_RAISE_OPCODE(final.op.code)' failed.
[1] 1341262 IOT instruction ./python subinterpreteres_assert.py
I've already have a PR which fixes it.
CPython versions tested on:
CPython main branch, 3.14
Operating systems tested on:
No response
Output from running 'python -VV' on the command line:
No response
Linked PRs
- gh-139779
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.