Bug 3898 – access violation with associative arrays
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-03-08T07:24:00Z
Last change time
2014-02-15T02:42:16Z
Assigned to
sean
Creator
r.sagitario
Comments
Comment #0 by r.sagitario — 2010-03-08T07:24:53Z
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 by schveiguy — 2010-03-11T05:13:04Z
See my bug fix for 3930, let me know if this fixes the problem.
Comment #2 by r.sagitario — 2010-03-11T05:42:04Z
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 by schveiguy — 2010-03-11T05:44:03Z
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 ***