Thread overview
[Issue 14993] Allocating in a destructor segfaults instead of throwing InvalidMemoryOperationError
Sep 06, 2015
Martin Nowak
Oct 12, 2015
Martin Nowak
September 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14993

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #1 from Martin Nowak <code@dawg.eu> ---
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.

--
October 12, 2015
https://issues.dlang.org/show_bug.cgi?id=14993

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Martin Nowak <code@dawg.eu> ---
https://github.com/D-Programming-Language/druntime/pull/1406

--
October 14, 2015
https://issues.dlang.org/show_bug.cgi?id=14993

--- Comment #3 from github-bugzilla@puremagic.com ---
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

--
October 14, 2015
https://issues.dlang.org/show_bug.cgi?id=14993

--- Comment #4 from github-bugzilla@puremagic.com ---
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

--