Skip to content

Python 3.11: Assertion `_PyOpcode_Deopt[first_instr[frame->f_code->_co_firsttraceable]] == RESUME' failed #94412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vstinner opened this issue Jun 29, 2022 · 5 comments
Labels
release-blocker type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner commented Jun 29, 2022

Oh, Python 3.11 was aborted by an assertion failure on "s390x Fedora Clang 3.11" buildbot at commit 3b4f5ed:

build: https://buildbot.python.org/all/#builders/953/builds/161

python: Python/ceval.c:5617: PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion `_PyOpcode_Deopt[first_instr[frame->f_code->_co_firsttraceable]] == RESUME' failed.
Fatal Python error: Aborted

Current thread 0x000003ff8b376710 (most recent call first):
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/bdb.py", line 595 in run
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/doctest.py", line 2653 in debug_script
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/doctest.py", line 2633 in debug_src
  File "<doctest test.test_doctest.test_debug[3]>", line 1 in <module>
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/doctest.py", line 1350 in __run
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/doctest.py", line 1497 in run
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/doctest.py", line 2215 in runTest
  (...)
  File "/home/dje/cpython-buildarea/3.11.edelsohn-fedora-z.clang/build/Lib/runpy.py", line 198 in _run_module_as_main

Extension modules: _testcapi, _testinternalcapi (total: 2)
@vstinner vstinner added type-bug An unexpected behavior, bug, or error release-blocker labels Jun 29, 2022
@vstinner
Copy link
Member Author

Oh, many tests failed!

17 tests failed:
    test_audit test_bdb test_cprofile test_doctest test_import
    test_patma test_pdb test_profile test_pstats test_regrtest
    test_scope test_sys_setprofile test_sys_settrace test_threading
    test_trace test_unittest test_zipimport_support

@pablogsal: I suggest to hold the next release until this issue is investigated!

@vstinner
Copy link
Member Author

Same on a similar buildbot worker: "s390x Fedora Rawhide Refleaks 3.11"
https://buildbot.python.org/all/#/builders/1000/builds/53

17 tests failed:
    test_audit test_bdb test_cprofile test_doctest test_import
    test_patma test_pdb test_profile test_pstats test_regrtest
    test_scope test_sys_setprofile test_sys_settrace test_threading
    test_trace test_unittest test_zipimport_support

@tiran
Copy link
Member

tiran commented Jun 29, 2022

Fixed by #94411

@tiran
Copy link
Member

tiran commented Jun 29, 2022

The assert breaks on big endian machiens because it is missing a _Py_OPCODE(). My PR #94411 removes the assert. It is not present in main.

@markshannon
Copy link
Member

Thanks @tiran for fixing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants