I've reduced a hard to track bug down to this: https://d.puremagic.com/issues/show_bug.cgi?id=11734
It was hard to track for various reasons: * works on OSX, but fails on ubuntu 64 * error tends to occur long after the root cause, probably due to memory corruption * only occurs in certain cases of input parameters (see bug report) I've reproduced it on several ubuntu 64 machines, on the dmd releases up to 2.064.2 Unfortunately can't test on git head to to bugzilla/11684 which prevents using git head on ubuntu 64 (other linux flavors or osx are unaffected). Please take a look, it's a nasty bug that can make people loose a lot of time (and potentially data as it's related to std.file)