Skip to content

_PyEval_EvalFrameDefault: Assertion `WITHIN_STACK_BOUNDS()' failed on RISC-V 64-bit Ubuntu Clang 3.x #163066

Backlog

Description

@vstinner

Bug report

RISC-V 64-bit Ubuntu Clang 3.x: https://buildbot.python.org/#/builders/2255/builds/874

Error: python: Python/generated_cases.c.h:13671: PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion 'WITHIN_STACK_BOUNDS()' failed.

Python built with ./configure --prefix '$(PWD)/target' CC=clang LD=clang --with-pydebug and clang -Og using "Ubuntu clang version 18.1.3 (1)" on Ubuntu 24.04 LTS.

Logs:

test_very_large_function (test.test_sys_settrace.TraceTestCase.test_very_large_function) ... ok

python: Python/generated_cases.c.h:13671: PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion `WITHIN_STACK_BOUNDS()' failed.
Fatal Python error: Aborted

Current thread 0x0000003fd0a9c020 [python] (most recent call first):
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/unittest/runner.py", line 28 in writeln
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/unittest/runner.py", line 154 in printErrors
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/unittest/runner.py", line 266 in run
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 84 in _run_suite
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 42 in run_unittest
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 162 in test_func
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 118 in regrtest_runner
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 165 in _load_run_test
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 212 in _runtest_env_changed_exc
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 321 in _runtest
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 350 in run_single_test
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/worker.py", line 99 in worker_process
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/worker.py", line 137 in main
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/test/libregrtest/worker.py", line 141 in <module>
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/runpy.py", line 87 in _run_code
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/Lib/runpy.py", line 201 in _run_module_as_main

Current thread's C stack trace (most recent call first):
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at _Py_DumpStack+0x36 [0x2abdccdd9c]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x3a1966 [0x2abdced966]
  Binary file "linux-vdso.so.1", at __vdso_rt_sigreturn+0x0 [0x3fd0ca3800]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at +0x72aae [0x3fd0b10aae]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at gsignal+0x16 [0x3fd0ad66f0]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at abort+0xb6 [0x3fd0ac5382]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at +0x32ac0 [0x3fd0ad0ac0]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at __assert_perror_fail+0x0 [0x3fd0ad0b18]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x2c240 [0x2abda1568a]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x2b9f3a [0x2abdc05f3a]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at PyEval_EvalCode+0xc0 [0x2abdc05ce0]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x2b5194 [0x2abdc01194]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x1d5c2e [0x2abdb21c2e]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x15e8fa [0x2abdaaa8fa]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at _Py_VectorCallInstrumentation_StackRefSteal+0xda [0x2abdc0677e]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x715a [0x2abd9f05a4]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x2b9f3a [0x2abdc05f3a]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x391894 [0x2abdcdd894]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at Py_RunMain+0x736 [0x2abdcdd2aa]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at +0x3914bc [0x2abdcdd4bc]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at Py_BytesMain+0x22 [0x2abdcdd542]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at +0x277cc [0x3fd0ac57cc]
  Binary file "/lib/riscv64-linux-gnu/libc.so.6", at __libc_start_main+0x78 [0x3fd0ac5878]
  Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.x.rise-riscv64-2.clang/build/python", at _start+0x20 [0x2abda1a20c]

Extension modules: _testcapi, _testinternalcapi (total: 2)

where Python/generated_cases.c.h:13671 is the line:

        LABEL(pop_1_error)
        {
            stack_pointer -= 1;
            assert(WITHIN_STACK_BOUNDS());  // <===== HERE ====
            JUMP_TO_LABEL(error);
        }

test.pythoninfo:

CC.version: [clang] Ubuntu clang version 18.1.3 (1)
CXX.version: [/usr/bin/clang++] Ubuntu clang version 18.1.3 (1)

platform.architecture: 64bit
platform.freedesktop_os_release[ID]: ubuntu
platform.freedesktop_os_release[NAME]: Ubuntu
platform.freedesktop_os_release[VERSION]: 24.04 LTS (Noble Numbat)
platform.freedesktop_os_release[VERSION_CODENAME]: noble
platform.freedesktop_os_release[VERSION_ID]: 24.04
platform.libc_ver: glibc 2.39
platform.platform: Linux-5.10.113-scw1-riscv64-with-glibc2.39
platform.python_implementation: CPython

os.uname: os.uname_result(sysname='Linux', nodename='rise-cpython-2', release='5.10.113-scw1', version='#1 SMP PREEMPT Fri Jul 12 15:31:22 UTC 2024', machine='riscv64')

system.boot_id: 9ea572f9-e4f1-4c41-90cf-f467c3b2f9b4
system.machine_id: 7d3ba56b03be43c08b396a4bc79dda39
system.uptime: 134 days, 10:00:02

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Activity

  1. added
    type-bug
    on Dec 3, 2026
  2. vstinner commented on Dec 3, 2026

    @vstinner
    MemberAuthor

    A different error which may be related on RISC-V 64-bit Ubuntu Clang 3.15: https://buildbot.python.org/#/builders/2256/builds/367

    Error: Stack underflow (depth = -1) at Python/generated_cases.c.h:11012

    Error while running test_pyrepl.test_keymap:

    test_keynames (test.test_pyrepl.test_keymap.TestParseKeys.test_keynames)
    Ensure that keynames are parsed to their corresponding mapping. ... ok
    test_keyspec_errors (test.test_pyrepl.test_keymap.TestParseKeys.test_keyspec_errors) ...
    
    Stack underflow (depth = -1) at Python/generated_cases.c.h:11012
    Fatal Python error: Aborted
    
    Current thread 0x0000003fc78f6020 [python] (most recent call first):
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/result.py", line 133 in addSubTest
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/runner.py", line 93 in addSubTest
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/case.py", line 81 in testPartExecutor
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/contextlib.py", line 210 in __exit__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/case.py", line 586 in subTest
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/contextlib.py", line 210 in __exit__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_pyrepl/test_keymap.py", line 65 in test_keyspec_errors
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/case.py", line 637 in _callTestMethod
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/case.py", line 691 in run
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/case.py", line 747 in __call__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 122 in run
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 84 in __call__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 122 in run
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 84 in __call__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 122 in run
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 84 in __call__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 122 in run
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/suite.py", line 84 in __call__
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/unittest/runner.py", line 256 in run
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 84 in _run_suite
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 42 in run_unittest
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 162 in test_func
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 118 in regrtest_runner
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 165 in _load_run_test
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 212 in _runtest_env_changed_exc
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 321 in _runtest
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/single.py", line 350 in run_single_test
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/worker.py", line 99 in worker_process
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/worker.py", line 137 in main
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/libregrtest/worker.py", line 141 in <module>
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/runpy.py", line 87 in _run_code
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/runpy.py", line 201 in _run_module_as_main
    
    Current thread's C stack trace (most recent call first):
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _Py_DumpStack+0x36 [0x2aac1fa46a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x3bdf68 [0x2aac218f68]
      Binary file "linux-vdso.so.1", at __vdso_rt_sigreturn+0x0 [0x3fc7afd800]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at +0x72aae [0x3fc796aaae]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at gsignal+0x16 [0x3fc79306f0]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at abort+0xb6 [0x3fc791f382]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29dc78 [0x2aac0f8c78]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x28404 [0x2aac12158c]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x146b62 [0x2aabfa1b62]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x144678 [0x2aabf9f678]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29829a [0x2aac0f329a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _Py_BuiltinCallFast_StackRef+0xc0 [0x2aac0f8122]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x908e [0x2aac102216]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x146b62 [0x2aabfa1b62]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x144678 [0x2aabf9f678]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29829a [0x2aac0f329a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _Py_BuiltinCallFast_StackRef+0xc0 [0x2aac0f8122]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x908e [0x2aac102216]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2aac0f73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x121784 [0x2aabf7c784]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x123a00 [0x2aabf7ea00]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0xa0b6 [0x2aac10323e]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2aac0f73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x121a14 [0x2aabf7ca14]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x122e5c [0x2aabf7de5c]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x1e6d4e [0x2aac041d4e]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyObject_MakeTpCall+0x13c [0x2aabf7cd58]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _Py_VectorCall_StackRefSteal+0xc6 [0x2aac0f776a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0xfda2 [0x2aac108f2a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2aac0f73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x121784 [0x2aabf7c784]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x123a00 [0x2aabf7ea00]
      <truncated rest of calls>
    

    where Python/generated_cases.c.h:11012 is a called to ASSERT_WITHIN_STACK_BOUNDS:

            TARGET(RETURN_VALUE) {
                #if _Py_TAIL_CALL_INTERP
                int opcode = RETURN_VALUE;
                (void)(opcode);
                #endif
                frame->instr_ptr = next_instr;
                next_instr += 1;
                INSTRUCTION_STATS(RETURN_VALUE);
                _PyStackRef value;
                _PyStackRef retval;
                _PyStackRef res;
                // _MAKE_HEAP_SAFE
                {
                    value = stack_pointer[-1];
                    value = PyStackRef_MakeHeapSafe(value);
                }
                // _RETURN_VALUE
                {
                    retval = value;
                    assert(frame->owner != FRAME_OWNED_BY_INTERPRETER);
                    _PyStackRef temp = retval;
                    stack_pointer += -1;
                    ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);  // <==== HERE
                    _PyFrame_SetStackPointer(frame, stack_pointer);
                    assert(STACK_LEVEL() == 0);
                    DTRACE_FUNCTION_RETURN();
                    _Py_LeaveRecursiveCallPy(tstate);
                    _PyInterpreterFrame *dying = frame;
                    frame = tstate->current_frame = dying->previous;
                    _PyEval_FrameClearAndPop(tstate, dying);
                    stack_pointer = _PyFrame_GetStackPointer(frame);
                    LOAD_IP(frame->return_offset);
                    res = temp;
                    LLTRACE_RESUME_FRAME();
                }
                stack_pointer[0] = res;
                stack_pointer += 1;
                ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);
                DISPATCH();
            }
  3. vstinner commented on Dec 3, 2026

    @vstinner
    MemberAuthor

    Another different error but also in ceval on RISC-V 64-bit Ubuntu Clang 3.15: https://buildbot.python.org/#/builders/2256/builds/354

    Error: python: Python/ceval_macros.h:241: PyObject *GETITEM(PyObject *, Py_ssize_t): Assertion 'i < PyTuple_GET_SIZE(v)' failed.

    ======================================================================
    FAIL: test_matchfile (test.test_regrtest.ArgsTestCase.test_matchfile)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_regrtest.py", line 1546, in test_matchfile
        output = self.run_tests("-v", "--matchfile", filename, testname)
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_regrtest.py", line 1014, in run_tests
        return self.run_python(cmdargs, **kw)
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_regrtest.py", line 861, in run_python
        proc = self.run_command(cmd, **kw)
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_regrtest.py", line 849, in run_command
        self.fail(msg)
        ~~~~~~~~~^^^^^
    AssertionError: Command ['/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=/tmp/test_python_9h8_6j3u/tmp_krknpvh', '-v', '--matchfile', '@test_3152802_tmpæ', 'test_regrtest_noop20'] failed with exit code -6, but exit code 0 expected!
    
    stdout:
    ---
    python: Python/ceval_macros.h:241: PyObject *GETITEM(PyObject *, Py_ssize_t): Assertion `i < PyTuple_GET_SIZE(v)' failed.
    Fatal Python error: Aborted
    
    Current thread 0x0000003fcbecf020 [python] (most recent call first):
      File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/_colorize.py", line ??? in __annotate__
      <invalid frame>
    
    Current thread's C stack trace (most recent call first):
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _Py_DumpStack+0x36 [0x2ac15ca46a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x3bdf68 [0x2ac15e8f68]
      Binary file "linux-vdso.so.1", at __vdso_rt_sigreturn+0x0 [0x3fcc0d6800]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at +0x72aae [0x3fcbf43aae]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at gsignal+0x16 [0x3fcbf096f0]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at abort+0xb6 [0x3fcbef8382]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at +0x32ac0 [0x3fcbf03ac0]
      Binary file "/lib/riscv64-linux-gnu/libc.so.6", at __assert_perror_fail+0x0 [0x3fcbf03b18]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x142da [0x2ac14dd462]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2ac14c73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x121784 [0x2ac134c784]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at PyObject_CallOneArg+0x30 [0x2ac134db8c]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x1eb020 [0x2ac1416020]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x1f0a02 [0x2ac141ba02]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyObject_MakeTpCall+0x13c [0x2ac134cd58]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _Py_VectorCall_StackRefSteal+0xc6 [0x2ac14c776a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0xfda2 [0x2ac14d8f2a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2ac14c73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at PyEval_EvalCode+0xc8 [0x2ac14c70b0]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x297334 [0x2ac14c2334]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0xa0b6 [0x2ac14d323e]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2ac14c73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x123f98 [0x2ac134ef98]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at PyObject_CallMethodObjArgs+0x78 [0x2ac134ee04]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x3244fa [0x2ac154f4fa]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at PyImport_ImportModuleLevelObject+0x29c [0x2ac154e738]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_ImportName+0x5c [0x2ac14fe28a]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_LazyImportName+0xc8 [0x2ac14fdf92]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at _PyEval_EvalFrameDefault+0x1837c [0x2ac14e1504]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x29c3da [0x2ac14c73da]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at PyEval_EvalCode+0xc8 [0x2ac14c70b0]
      Binary file "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/python", at +0x297334 [0x2ac14c2334]
      <truncated rest of calls>
    
    ---
    
    
    ----------------------------------------------------------------------
    Ran 125 tests in 234.506s
    
    FAILED (failures=1, skipped=2)
    
  4. vstinner commented on Dec 3, 2026

    @vstinner
    MemberAuthor

    Error python: Python/ceval_macros.h:241: PyObject *GETITEM(PyObject *, Py_ssize_t): Assertion 'i < PyTuple_GET_SIZE(v)' failed. occurred also on a previous build on RISC-V 64-bit Ubuntu Clang 3.15: https://buildbot.python.org/#/builders/2256/builds/354

  5. vstinner commented on Dec 3, 2026

    @vstinner
    MemberAuthor

    Error python: Python/ceval_macros.h:241: PyObject *GETITEM(PyObject *, Py_ssize_t): Assertion 'i < PyTuple_GET_SIZE(v)' failed. also occurred on the "pythoninfo" step of RISC-V 64-bit Ubuntu Clang 3.15: https://buildbot.python.org/#/builders/2256/builds/295

  6. added
    interpreter-core
    on Dec 3, 2026
  7. vstinner commented on Dec 3, 2026

    @vstinner
    MemberAuthor

    See issue #163068 which also occurs on the RISC-V Clang buildbot worker.

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

    OS-risc-vinterpreter-coretype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions