python / python/cpython

Assertion crash in `code_returns_only_none`

Đang mở
#139,778 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@efimov-mikhail đang làm issue này rồi.

Từ ngày 16/10/2025.

3.14 3.15 extension-modules topic-subinterpreters type-crash
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.