[Python-Dev] tests failing in 2.2.2

Martin v. Loewis martin@v.loewis.de
07 Oct 2002 21:22:12 +0200


Guido van Rossum <guido@python.org> writes:

> That's strange -- that test is specifically designed to fail before it
> ever gets to allocating memory.  Can you track this down with a
> debugger?

Notice that this test does not strictly achieve that: with a four-byte
pointer, you attempt to allocate 0x20000000L items (due to
roundupsize), which is small enough to try a realloc. In turn, it
tries to allocate 0x80000000L bytes, i.e. 2GB. On a 32-bit machine, it
is possible to allocate that much memory.

Regards,
Martin