Skip to content

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

Description

@vstinner

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)

Activity

  1. vstinner commented on Jun 29, 2022

    @vstinner
    MemberAuthor

    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!

  2. vstinner commented on Jun 29, 2022

    @vstinner
    MemberAuthor

    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
    
  3. tiran commented on Jun 29, 2022

    @tiran
    Member

    Fixed by #94411

  4. tiran commented on Jun 29, 2022

    @tiran
    Member

    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.

  5. markshannon commented on Jun 29, 2022

    @markshannon
    Member

    Thanks @tiran for fixing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions