[phobos] FreeBSD 32 still fails unittests for std.datetime

Jonathan M Davis jmdavisProg at gmx.com
Mon May 2 13:14:48 PDT 2011


> Not sure if it's related, but at work we had a strange issue with some
> process being unexpectedly killed on Linux.  The root cause turned out to
> be the process using too much memory.  Apparently, if the system gets
> critically low on memory, the kernel selects the worst offender and kills
> it.
> 
> Of course, that's Linux, but I think BSD and linux have cross pollinating
> ideas sometimes.
> 
> But it might be a start to compare the amount of memory this system has
> with the auto-tester which does not fail.

Well, it could be related to 
http://d.puremagic.com/issues/show_bug.cgi?id=5454

The problem is far worse on Windows than on Linux - both in terms of the 
amount of memory eaten by dmd and because the Windows unit tests are all 
compiled together instead of separately, but dmd still eats too much memory on 
OSes other than Windows. FreeBSD would have the unit tests compiled separately 
like on Linux, so dmd shouldn't be running out of memory in the same way as 
occurs on Windows, but it could still be using a lot of memory, and if 
Walter's machine doesn't have a lot of it, and if FreeBSD tries to kill 
processes that use too much, then that could be the problem. On Windows, it 
very clearly states that dmd ran out of memory, but if the OS just kills the 
process, then you might not get such a clear message.

I've been hoping that Don's CTFE fixes would reduce dmd's memory footprint 
enough to get rid of issue 5454, but since they're buggy enough that Phobos' 
unit tests don't currently build, I have no idea how close they've gotten to 
fixing the problem.

- Jonathan M Davis


More information about the phobos mailing list