D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3898 - access violation with associative arrays
Summary: access violation with associative arrays
Status: RESOLVED DUPLICATE of issue 3930
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Windows
: P2 regression
Assignee: Sean Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-08 07:24 UTC by Rainer Schuetze
Modified: 2014-02-15 02:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Rainer Schuetze 2010-03-08 07:24:53 UTC
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.
Comment 1 Steven Schveighoffer 2010-03-11 05:13:04 UTC
See my bug fix for 3930, let me know if this fixes the problem.
Comment 2 Rainer Schuetze 2010-03-11 05:42:04 UTC
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.
Comment 3 Steven Schveighoffer 2010-03-11 05:44:03 UTC
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 ***