Bug 6372 – data loss due to possible bug in garbage collector

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-07-24T04:02:00Z
Last change time
2013-07-20T06:57:14Z
Assigned to
nobody
Creator
bughunter2

Attachments

IDFilenameSummaryContent-TypeSize
1011testcase.dtestcase for possible bug in gcx.dtext/x-dsrc1555

Comments

Comment #0 by bughunter2 — 2011-07-24T04:02:17Z
Created attachment 1011 testcase for possible bug in gcx.d It seems that during reallocation, the garbage collector does not always copy enough bytes to the new block should a new block be allocated. The first reallocation seems ok, but the next reallocation is where things go awry. I've added a comment to the testcase which I've attached. It explains the issue in a bit more detail.
Comment #1 by r.sagitario — 2013-07-20T05:05:11Z
Comment #2 by yebblies — 2013-07-20T06:57:14Z