Skip to content

test_list.ListTest.test_no_memory fails under tracerefs #130926

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
mpage opened this issue Mar 6, 2025 · 1 comment
Closed

test_list.ListTest.test_no_memory fails under tracerefs #130926

mpage opened this issue Mar 6, 2025 · 1 comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@mpage
Copy link
Contributor

mpage commented Mar 6, 2025

Bug report

Bug description:

After gh-130811, test_list.ListTest.test_no_memory fails when CPython is configured with --with-trace-refs, because memory allocation fails in _PyRefchain_Trace and an unexpected error is produced:

======================================================================
FAIL: test_no_memory (test.test_list.ListTest.test_no_memory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/encukou/dev/cpython/Lib/test/test_list.py", line 328, in test_no_memory
    self.assertIn("MemoryError", err.decode("utf-8"))
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'MemoryError' not found in 'Fatal Python error: _PyRefchain_Trace: _Py_hashtable_set() memory allocation failed\nPython runtime state: initialized\n\nCurrent thread 0x00007ff7cc547740 (most recent call first):\n  File "<string>", line 7 in <module>\n\nExtension modules: _testcapi (total: 1)\n'

----------------------------------------------------------------------

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

@mpage mpage added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Mar 6, 2025
@mpage
Copy link
Contributor Author

mpage commented Mar 6, 2025

Fixed by gh-130921

@mpage mpage closed this as completed Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant