May 15, 2015
On Friday, 15 May 2015 at 09:20:32 UTC, Gary Willoughby wrote:
> On Friday, 15 May 2015 at 07:51:29 UTC, thedeemon wrote:
>> On Saturday, 2 May 2015 at 02:51:52 UTC, Fyodor Ustinov wrote:
>>> Simple code:
>>>
>>> http://pastebin.com/raw.php?i=7jVeMFXQ
>>>
>>> What I'm doing wrong?
>>
>> Try using class instead of struct.
>> Last time I played with std.concurrency it used Variants to store the messages, so when something bigger than a little basic value or a reference, like a class object, is sent it behaves unpredictably: can crash or shit garbage. Trying to send structs larger than ~20 bytes usually caused problems.
>
> Please raise a bugzilla issue for this.

this commit cause the issue:
https://github.com/D-Programming-Language/phobos/commit/45fda72192ff5b878ebe915db0ffb9f6504cca8f

but it is probably just a trigger not a real cause.
May 15, 2015
On Saturday, 2 May 2015 at 02:51:52 UTC, Fyodor Ustinov wrote:
> Simple code:
>
> http://pastebin.com/raw.php?i=7jVeMFXQ
>
> This code works compiled by DMD v2.066.1 and LDC2 (0.15.1) based on DMD v2.066.1 and LLVM 3.5.0.
>
> $ ./z
> TUQLUE
> 42
> 11
>
> Compiled by DMD v2.067.1 the program crashes:
> $ ./aa
> TUQLUE
> Segmentation fault
>
> What I'm doing wrong?

(Copying my reply to the post in the main group here:)

I investigated this further. std.variant is to blame. I filed an issue an made a pull request to fix it:

https://issues.dlang.org/show_bug.cgi?id=14585
https://github.com/D-Programming-Language/phobos/pull/3284
1 2
Next ›   Last »