Thread overview
[Issue 6372] New: data loss due to possible bug in garbage collector
Jul 24, 2011
Jelle Geerts
Jul 20, 2013
Rainer Schuetze
Jul 20, 2013
yebblies
July 24, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6372

           Summary: data loss due to possible bug in garbage collector
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: druntime
        AssignedTo: nobody@puremagic.com
        ReportedBy: bughunter2@googlemail.com


--- Comment #0 from Jelle Geerts <bughunter2@googlemail.com> 2011-07-24 04:02:17 PDT ---
Created an attachment (id=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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6372


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de


--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> 2013-07-20 05:05:11 PDT ---
https://github.com/D-Programming-Language/druntime/pull/547

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6372


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


--- Comment #2 from yebblies <yebblies@gmail.com> 2013-07-20 23:57:14 EST ---
https://github.com/D-Programming-Language/druntime/commit/883d699b7c6fabcc89aae77ae62955eebd9b0372

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