Repository navigation
Backlog
Labels
OS-risc-vinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
Description
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
Metadata
Metadata
Assignees
Labels
OS-risc-vinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
Activity
vstinner commentedon Dec 3, 2026
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:11012Error while running test_pyrepl.test_keymap:
where
Python/generated_cases.c.h:11012is a called toASSERT_WITHIN_STACK_BOUNDS:vstinner commentedon Dec 3, 2026
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.vstinner commentedon Dec 3, 2026
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/354vstinner commentedon Dec 3, 2026
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/295vstinner commentedon Dec 3, 2026
See issue #163068 which also occurs on the RISC-V Clang buildbot worker.