new Issue 11734 - undefined behavior with dirEntries probably due to memory corruption

Timothee Cour thelastmammoth at gmail.com
Fri Dec 13 00:50:08 PST 2013


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131213/64f4689b/attachment.html>


More information about the Digitalmars-d mailing list