[Issue 19322] A lot of memory is consumed and not freed to the system when Exception is formatted with stacktrace in debug

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 13 21:21:43 UTC 2019


--- Comment #2 from Tomáš Chaloupka <chalucha at gmail.com> ---
Thanks for the lead description. It seems to be exactly it.
I've tried to debug this a bit to understand this more.

And the problem is as you said with this line:

which thanks to the alias here:

returns only aliased ubyte[] here:

and that doesn't destruct MMaped file which is hold here:

which seems to be another bug (I've tried to reproduce it in a simple test
case, but failed to do so).
But even if it will be destroyed on return, than the debugLineSectionData would
point to invalid data.


More information about the Digitalmars-d-bugs mailing list