Any guides on debugging DMD crash?

Matt Jones matthew.brennan.jones at gmail.com
Wed Mar 25 05:46:13 UTC 2020


On Monday, 23 March 2020 at 19:46:33 UTC, Stefan Koch wrote:
> On Sunday, 22 March 2020 at 22:33:13 UTC, Matt Jones wrote:
>> [...]
>
> Hi, so I've found out what's going on.
>
> An assertion in CSE (Common Subexpression Elimination) fails.
> Which means that this is indeed an optimizer bug in the backend.
> I can not yet say how to fix it but is should be enough for you 
> to file a bug report.
>
> The steps I took to find this are the following
> 1. Compile dmd with debug symbols.
> 2. use dub -v to see the compile commandline which fails.
> 3. run the commandline under gdb. (gdb --args)
> 4. look at where the failure happens.

I'll have to try this. Thanks


More information about the Digitalmars-d mailing list