Bug after update to 2.072?
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 7 10:38:14 PST 2016
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
More information about the Digitalmars-d-learn
mailing list