On 11/07/2016 06:18 PM, Alex wrote:
On Monday, 7 November 2016 at 17:12:32 UTC, Alex wrote:
dmd -c -of./app.o -debug -g -gc -O -profile -w ./app.d -vcolumns
dmd -of./app ./app.o -g -gc
Knowing this, I tried to find the option which does the difference. This
was the profile option. So, if I omit it, the segmentation fault is gone...
I've reduced it to this:
----
void main() {}
void f()
{
import core.atomic: atomicOp;
shared size_t workUnitIndex;
atomicOp!"+="(workUnitIndex, 1);
}
----
Which crashes when compiled with -profile. Looks like issue 14511 covers
this (comment 5):
https://issues.dlang.org/show_bug.cgi?id=14511#c5