Compiling with -profile=gc makes program crash - why?
tcak via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 21 02:23:26 PDT 2016
On Wednesday, 20 April 2016 at 22:31:31 UTC, Ivan Kazmenko wrote:
> On Wednesday, 20 April 2016 at 22:27:36 UTC, Ivan Kazmenko
> wrote:
>> I'm trying to use DMD option "-profile=gc". With this option,
>> the following simple program crashes with 2.071.0 down to
>> 2.069.0 but still works on 2.068.2. The command line is "dmd
>> -g -profile=gc prfail1.d" on Windows (compiled to 32-bit by
>> default).
>
> Ouch, meant to post to D.learn. Sorry!
>
> Well, perhaps no point in reposting now.
You are using "spawn". So it is a multithreaded program.
-profile=gc doesn't work with multithreadd programs. Always
creates problems.
More information about the Digitalmars-d
mailing list