Crash when iterating over files with foreach and std.file.dirEntries on Windows?

Jeremy DeHaan via D.gnu d.gnu at puremagic.com
Mon Nov 16 07:34:11 PST 2015


On Monday, 16 November 2015 at 09:31:22 UTC, Johannes Pfau wrote:
> Am Mon, 16 Nov 2015 03:08:39 +0000
> schrieb Jeremy DeHaan <dehaan.jeremiah at gmail.com>:
>
>> I'm wondering if anyone has experienced a crash when using 
>> dirEntries to iterate over files. This is for the Windows 32 
>> bits build of gdc from the gdc downloads page and it happens 
>> for both the 5.2.0 and 4.9.3 gcc versions (I haven't tried any 
>> others). It works correctly for the 64 bit builds though.
>> 
>> I'm wondering if this is a known issue (I couldn't find 
>> anything) or if I should get a minimal example going. Crash 
>> seems to happen when exiting a foreach loop.
>
> I think somebody already reported this. The windows builds are 
> unsupported right now and there are likely many similar issues. 
> I hope we'll have stable MinGW builds at the end of this year.

Should I file an issue in the bugzilla just in case? And if it 
makes you feel better, this is the first issue I've encountered 
with the MinGW builds.


More information about the D.gnu mailing list