Fix D's segfaults!

Nemanja Boric via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 21 00:00:27 PDT 2017


On Sunday, 20 August 2017 at 19:35:45 UTC, Ali Çehreli wrote:
> On 08/20/2017 12:14 PM, Johnson Jones wrote:
>
> >>> Dmd needs to be modified so that errors try to show from
> the source
> >>> code. This should be obvious the reasons, if it is not
> possible, make
> >>> it possible! There are no excuses why dmd should make me go
> on an
> >>> easter egg hunt when a seg fault occurs.
>
> You can open an enhancement request at
>
>   https://issues.dlang.org/enter_bug.cgi
>
> I don't know how well it works with D but what I used to do 
> with C++ was to put a break point at Exception constructor, 
> which would give me the useful stack to go back to my own code.
>
> Ali

The usual trick is to set the breakpoint on `_d_throwdwarf`.


More information about the Digitalmars-d mailing list