You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_testcapi.set_nomemoy(0) will raise fatal error when --with-pydebug --with-trace-refs #138688
Python 3.15.0a0 (heads/main:5edfe55acf2, Sep 9 2025, 09:49:31) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
^[[A>>> import _testcapi
KeyboardInterrupt
import _testcapi
_testcapi.set_nomemory(0)
Fatal Python error: _PyRefchain_Trace: _Py_hashtable_set() memory allocation failed
Python runtime state: initialized
Current thread 0x0000ffffa2ca8020 [python] (most recent call first):
File "/home/hyi/cpython/Lib/_pyrepl/console.py", line 182 in runcode
File "/home/hyi/cpython/Lib/_pyrepl/console.py", line 239 in runsource
File "/home/hyi/cpython/Lib/code.py", line 324 in push
File "/home/hyi/cpython/Lib/_pyrepl/simple_interact.py", line 151 in run_multiline_interactive_console
File "/home/hyi/cpython/Lib/_pyrepl/main.py", line 58 in interactive_console
Extension modules: _testcapi (total: 1)
Aborted
# Python built with Py_TRACE_REFS fail with a fatal error in# _PyRefchain_Trace() on memory allocation error.@unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')@unittest.skipIf(_testcapiisNone, "requires _testcapi")
Activity
yihong0618 commentedon Sep 9, 2025
after check
this is a known issue so closing this
code: