/////// test.d /////// struct S { ~this() { new int; } } void main() { foreach (n; 0..10) { new S[10]; } } ////////////////////// Introduced in https://github.com/D-Programming-Language/druntime/pull/1325
This broke b/c of an ugly hack in druntime which excluded throwing typeinfo(Ex).init.ptr style exceptions from stacktraces. https://github.com/D-Programming-Language/druntime/blob/46fdff3c82d917c94a79f355274770147bf8bdae/src/rt/deh.d#L22 The underlying issue is the same as issue 14119, stacktraces should be @nogc.
https://github.com/D-Programming-Language/druntime/pull/1406
Commits pushed to stable at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/ee306cc93e7feb894f8fb618b4aae340878c0d54 fix Issue 14993 - segfault for InvalidMemoryOperationError - creating a stacktrace currently uses the GC (thus might recurse infinetely when the GC throws an exception itself) - suppress stack traces for OutOfMemoryError, InvalidMemoryOperationError, and FinalizeError https://github.com/D-Programming-Language/druntime/commit/d3dad79e43a703800ae4407b3d33812f869e3fcc Merge pull request #1406 from MartinNowak/fix14993 fix Issue 14993 - segfault for InvalidMemoryOperationError
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/ee306cc93e7feb894f8fb618b4aae340878c0d54 fix Issue 14993 - segfault for InvalidMemoryOperationError https://github.com/D-Programming-Language/druntime/commit/d3dad79e43a703800ae4407b3d33812f869e3fcc Merge pull request #1406 from MartinNowak/fix14993