www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3898] New: access violation with associative arrays

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3898

           Summary: access violation with associative arrays
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: r.sagitario gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario gmx.de> 2010-03-08 07:24:53
PST ---
the following test case crashes in version 2.041

import std.conv;

void main()
{
    int[string] aa;
    for(int i = 0; i < 100000; i++)
    {
        string s = to!string(i);
        aa[s] = i;
    }
}

while it worked with 2.040 and earlier. The access violation is in _aaBalance
and very much looks like a memory corruption.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 08 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3898


Steven Schveighoffer <schveiguy yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy yahoo.com


--- Comment #1 from Steven Schveighoffer <schveiguy yahoo.com> 2010-03-11
05:13:04 PST ---
See my bug fix for 3930, let me know if this fixes the problem.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 11 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3898



--- Comment #2 from Rainer Schuetze <r.sagitario gmx.de> 2010-03-11 05:42:04
PST ---
Somehow I could not reproduce it with this test case, but it still happened
with the larger project that showed the problem to begin with.

After applying your fix, it back up and running. Thanks.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 11 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3898


Steven Schveighoffer <schveiguy yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #3 from Steven Schveighoffer <schveiguy yahoo.com> 2010-03-11
05:44:03 PST ---
OK, great.

I'll mark this as a duplicate of 3930 so we only track it in one place.

*** This issue has been marked as a duplicate of issue 3930 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 11 2010