[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

STINNER Victor report at bugs.python.org
Fri Nov 29 18:27:30 CET 2013


STINNER Victor added the comment:

> Under very low memory condition, PyErr_NoMemory() or PyErr_NormalizeException() enters an unlimited loop when the free list of MemoryError becomes empty.

I got this bug when I worked on the issue #19817 which adds an arbitary limit to memory allocations using tracemalloc. I used this limit on the Python test suite to check how Python behaves under very low memory condition.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19835>
_______________________________________


More information about the Python-bugs-list mailing list