Either I'm confused or the gc is

tsbockman thomas.bockman at gmail.com
Thu Oct 22 18:54:24 UTC 2020


On Thursday, 22 October 2020 at 04:02:10 UTC, donallen wrote:
> I tried this. With the gc on, the problem still occurs.
>
> I am working on 64-bit Arch Linux systems, up-to-date, DMD64 D 
> Compiler v2.094.0

Have you tried using a different compiler? I know with the big 
languages like C or Java the meme is "it's never a compiler bug", 
but D is developed with *far* fewer resources, and compiler bugs 
are, sadly, not rare.

For example, DMD 2.094+ have this still-unfixed back-end 
regression that may possibly be causing your problem:

https://issues.dlang.org/show_bug.cgi?id=21325

The LDC and GDC back-ends are much more reliable (and better in 
other ways) than DMD's because they are tested and maintained by 
much larger communities.

I recommend giving the latest LDC a try, as well as a 
significantly older compiler of your choice, before assuming that 
the problem is in your code, or in the garbage collector.


More information about the Digitalmars-d mailing list