*** top-posting fixed *** Grant Jacobs wrote:
jan.ruzicka@comcast.net wrote:
Jan-Ruzickas-Computer:~/Desktop/downloads/gpc-20041218/p/test
... snip ...
TEST systemtest.pas: *** malloc: vm_allocate(size=2147483648) failed (error code=3) *** malloc[452]: error: Can't allocate region *** malloc: vm_allocate(size=2147483648) failed (error code=3) *** malloc[452]: error: Can't allocate region
A bug in Mac OS X. Please report it to devbugs@apple.com.
Perhaps search Apple's XCode user mailing list - I seem to vaguely recall a discussion about a similar issue quite some time ago. Sorry I can't remember the details myself.
Why a bug? Any malloc system has the right to limit assignment size. In this case I expect it is probably using sbrk calls to the system, and allowing for negative arguments to return core to the system. That assignment size is ridiculous on the face of it, and the test simply exposes a system limit.