Incremental GC does not collect garbage as soon as expected
Abierto
Nadie ha tomado este issue todavía.
3.14
3.15
interpreter-core
performance
type-bug
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 35.9k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
Bug report
Bug description:
This was found by @Yhg1s . If you run tests with this command:
./python -m test --randseed=3169227856 --no-randomize --single-process test_pyclbr test_trace test_pdb test_iter test_ordered_dict test_urllib2_localnet test_array test_generated_cases test_typing test_fnmatch test_tools test_descr test___all__ test_xml_dom_xmlbuilder test_nturl2path test_hmac test_pickle test_android test_ipaddress test_modulefinder test_interpreters test_zoneinfo test_runpy test_sqlite3 test_bdb test_zipfile test_crossinterp test_pulldom test_pkgutil test_re test_dbm_sqlite3 test_venv test_pyrepl test_xml_etree_c test_gc
The test_gc unit test fails with:
File "/home/thomas/python/python/main/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/thomas/python/python/main/Lib/test/test_gc.py", line 1573, in test_bug1055820d
self.fail("gc didn't happen after 50000 iterations")
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: gc didn't happen after 50000 iterations
Reverting GH-140262 seems to fix this. It is possible this is related to GH-141890 as well.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
- gh-142001
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza por test/test_gc.py, especialmente por test_bug1055820d, y reproduce el fallo usando el comando indicado en el informe. Compara el comportamiento con GH-140262 revertido e investiga la posible relación con GH-141890. Se considera terminado cuando el test ya no informa de que la recolección de basura ha fallado después de 50,000 iteraciones.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100