www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - new Issue 11734 - undefined behavior with dirEntries probably due to

I've reduced a hard to track bug down to this:

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
* 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
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)
Dec 13 2013