[New-bugs-announce] [issue3556] test_raiseMemError consumes an insane amount of memory

Martin v. Löwis report at bugs.python.org
Thu Aug 14 22:21:19 CEST 2008


New submission from Martin v. Löwis <martin at v.loewis.de>:

It appears that test_unicode::test_raiseMemError was meant to produce a
MemoryError. Unfortunately, on my machine (Linux 2.6.25, 32-bit
processor, 1GiB main memory, plenty swap), allocation *succeed*, and
then brings the machine to a near halt, trying to fill that memory with
data.

IMO, the patch should be rewritten to either reliably produce a
MemoryError (why not allocate sys.maxsize characters, or sys.maxsize//2?),
or else it should be removed.

----------
assignee: amaury.forgeotdarc
messages: 71150
nosy: amaury.forgeotdarc, loewis
severity: normal
status: open
title: test_raiseMemError consumes an insane amount of memory
versions: Python 2.6, Python 3.0

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


More information about the New-bugs-announce mailing list