[Issue 21499] Backref mangling implementation causes OOM in some edge cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 25 11:40:06 UTC 2020


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

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

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

--- Comment #3 from Rainer Schuetze <r.sagitario at gmx.de> ---
I don't get OOM with the test, but the 64-bit compiler needs about 2.6 GB to
hit the template recursion limit (dmd 2.094.2). With -lowmem, a mere 320 MB is
needed.

I doubt the mangler is to blame here, it just happens to execute the failing
memory allocation during the infinite recursion in your case.

fail12485.d was tweaked to avoid the memory and template recursion limit in
order still test the symbol length limit. This was hit way earlier before due
to the large mangled names.

--


More information about the Digitalmars-d-bugs mailing list