Missing stacktrace on memory allocation failure
Steven Schveighoffer
schveiguy at gmail.com
Thu Nov 12 13:16:21 UTC 2020
On 11/12/20 4:22 AM, Per Nordlöw wrote:
> Why don't I get a stack trace on Memory allocation exceptions?
>
> In my case I only get:
>
> src/core/exception.d(647): [unittest] Memory allocation failed
> core.exception.OutOfMemoryError at src/core/exception.d(647): Memory
> allocation failed
>
Certain errors are flagged as not able to allocate memory. So you don't
get a stack trace.
I think it's a huge mistake, and we don't need memory allocation to do
stack trace printing. But that's the way it is.
-Steve
More information about the Digitalmars-d-learn
mailing list