Summary: Win32 phobos unittest crashes with access violation
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD

--- Comment #0 from Shin Fujishiro <> 2010-09-21 00:54:02 PDT 
dmd r680
phobos trunk r2043

Paste the following code at the bottom of phobos/unittest.d. This simply
increases the size of unittest executable.
    struct K(Q...)
        static if (Q.length < 5) static K!(Q, int) next;
        Q q;
    static K!byte a1;
    static K!short a2;
    static K!int a3;
    static K!long a4;
    static K!ubyte a5;
    static K!ushort a6;
    static K!uint a7;
    static K!ulong a8;
    static K!float a9;
    static K!double a10;
    static K!real a11;
    static K!char a12;
    static K!wchar a13;
    static K!dchar a14;

Then, run the phobos unittest on Windows. It will crash.
>make -f win32.mak unittest
object.Error: Access Violation

Access violation seems to start happening when the size of executable exceeds
some critical point. Sometimes the AV didn't occur, and alternatively the test
showed weird behavior - such as infinitely failing unittests or broken output.

See this message and follow ups.

Auto tester output:

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to