Hi @Zoffix Znet

Do you have any pointers or howto's to write thread-save code? Otherwise 
I'd remove all of the promises. It gave some other problems in the past.
Regards
Marcel
> On Thu, 26 Oct 2017 06:04:51 -0700, alex.jakime...@gmail.com wrote:
>> FWIW, when toasting I observed double free or corruption when
>> installing both
>> BSON and MongoDB modules. The issue is really there, and should be
>> reproducible
>> by just running the tests. That said, I've been running BSON tests
>> locally in a
>> loop for hours with no luck.
> I can repro it easily on by Ubuntu box. Golfed it down to the attached code 
> running in BSON repo[^1]
> checkout with `while perl6 -Ilib t/300-document.t; do true; done`. I get 
> double-free errors as well as
> occasional failing tests.
>
> Briefly glancing at the guts of the module and seeing all the Promises 
> created left, right, and center,
> it wouldn't surprise me if this issue is due to the BSON module doing 
> thread-unsafe things somewhere and
> not an issue in rakudo.
>
> [1] https://github.com/MARTIMM/BSON
>

Reply via email to