Finding the file and unittest that triggers an ICE during dub project build only when unittests are enabled

Per Nordlöw per.nordlow at gmail.com
Mon Jun 15 18:39:31 UTC 2020


On Monday, 15 June 2020 at 16:55:00 UTC, MoonlightSentinel wrote:
> My mistake, dub dustmite expects a path to an temporary 
> directory suitable for dustmite (it copies the entire projet + 
> all dependencies s.t. dustmite sees the entire source code). 
> That path needs to be somewhere outside of the project 
> directory.
>
> But "dub dustmite ..." failed the first tests so I've reduced 
> this manually by determining the correct compiler invocation 
> (dub test -v) and running dustmite against all (remaining) 
> source files. The test condition was a script which ran dmd in 
> gdb and checked whether it segfaulted at the specific line of 
> code.
>
> The segfault happens when compiling CyclicArray with 
> preview=dtorfields, see the bug report below for a reduced 
> example.
>
> TLDR: Found your bug and reported it here:
> https://issues.dlang.org/show_bug.cgi?id=20934

Wow. Great job. I commented out the line

     @disable this();

for now.

Thanks a whole lot.


More information about the Digitalmars-d-learn mailing list