[Issue 15723] New: GC memory leakade depending on source code size
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Feb 25 05:45:30 PST 2016
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 at puremagic.com
Reporter: verylonglogin.reg at 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.
--
More information about the Digitalmars-d-bugs
mailing list