August 25, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6308


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |soywiz@gmail.com


--- Comment #10 from Don <clugdbug@yahoo.com.au> 2011-08-25 08:01:17 PDT ---
*** Issue 6363 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 26, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6308



--- Comment #11 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-08-26 09:25:16 PDT ---
This code:

import std.file;
void main()
{
    string[] dirs;
    foreach (string dir; dirEntries(r"C:\", SpanMode.shallow))
    {
        if (dir.isDir)
            dirs ~= dir;
    }
}


Compiled via DMD 2.055 commit cfab198ee186f6e69c364aaf4206434220d83204 (Aug 15), enters an infinite loop at runtime where exceptions are kept throwing:

=== Bypassed ===
std.file.FileException@std\file.d(1156): C:\pagefile.sys: The process cannot
access the file because it is being used by
another process.
----------------
42A540
42A3B7
402A7D
40206D
402950
40298F
40258B
45B855
45B7AC
----------------
object.Error: Access Violation
----------------
42A540
42A3B7
402950
40298F
40258B
45B855
45B7AC
----------------
Bypasses std.file.FileException@std\file.d(1156)
object.Error: Access Violation
----------------
42A540
42A3B7
402950
40298F
40258B
45B855
45B7AC
----------------
object.Error: Access Violation
----------------
42A540
42A3B7
402950
40298F
40258B
45B855
45B7AC

It seems after it tries to open the protected pagefile.sys it keeps rethrowing exceptions and not exiting the foreach loop. It doesn't stop at all, just keeps rethrowing.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 08, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6308



--- Comment #12 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-09-08 03:22:49 PDT ---
(In reply to comment #11)
> It seems after it tries to open the protected pagefile.sys it keeps rethrowing exceptions and not exiting the foreach loop. It doesn't stop at all, just keeps rethrowing.

I can't reproduce this, it throws a single exception for me. Was this fixed in the meantime?

The fact that you can't list C:\ because Phobos can't read a file's attributes is worth a separate bug report, though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 08, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6308



--- Comment #13 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-09-08 07:48:16 PDT ---
(In reply to comment #12)
> (In reply to comment #11)
> > It seems after it tries to open the protected pagefile.sys it keeps rethrowing exceptions and not exiting the foreach loop. It doesn't stop at all, just keeps rethrowing.
> 
> I can't reproduce this, it throws a single exception for me. Was this fixed in the meantime?

The final 2.055 release still has this issue, just checked.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 08, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6308



--- Comment #14 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-09-08 09:16:03 PDT ---
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > It seems after it tries to open the protected pagefile.sys it keeps rethrowing exceptions and not exiting the foreach loop. It doesn't stop at all, just keeps rethrowing.
> > 
> > I can't reproduce this, it throws a single exception for me. Was this fixed in the meantime?
> 
> The final 2.055 release still has this issue, just checked.

Note that my bug6329 which was labeled as duplicate of this has a similar issue. First I get a range violation, then `object.Error: Access Violation` is printed many times before the app exits.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »