[phobos] Phobos unit tests running out of memory

Jonathan M Davis jmdavisProg at gmx.com
Tue Sep 4 10:48:41 PDT 2012

On Tuesday, September 04, 2012 18:28:31 Johannes Pfau wrote:
> I think this is a known problem. When I added the std.uuid module the
> unittests failed on the autotester because of out of memory issues. I
> then moved the std.uuid module to a separate unit test run (SRC_STD_4,
> in win32.mak, I tried all other SRC_STD variables, but none worked) to
> make it work. The whole thing seems very fragile and I guess most
> contributors just check that the unittests work on the autotester, so
> they might fail on other machines.

I'm well aware of all of that. What baffles me is how it's running out of memory 
on my box and not the autotester. I wouldn't have thought that it would matter 
what box you were on. But maybe memory fragmentation or something changes 

And of course, there's always the mystery of why on earth dmd runs out of 
memory at around 900MB even when there's lots more memory on the box. It's 
been like that for a long time (I've seen it for other running out of memory 
build problems), but I have no idea why that would happen. I'm not aware of 
any significance to 900MB (unlike, say 3.6 GB, when the 32-bit address space 
hits its limit).

- Jonathan M Davis

More information about the phobos mailing list