www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15723] New: GC memory leakade depending on source code size

https://issues.dlang.org/show_bug.cgi?id=15723

          Issue ID: 15723
           Summary: GC memory leakade depending on source code size
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: verylonglogin.reg gmail.com

This program fails with OutOfMemoryError on 32-bit Windows with dmd 2.070.0:
---
import std.zlib;

void main() { for(;;) new ubyte[6_300_000]; }
---

Nasty thing about this bug is the more code your application have the more RAM
it will require thus making in very difficult to track down as once you just
remove any code from any function (the function you even never call) memory
usage decreases. In my simple 5-file utility it was enough to allocate no more
than around 1 MiB to get OOM error after few minutes of images processing.

I don't think the language is usable until this is fixed so marked as BLOCKER.

--
Feb 25 2016