On 2017-01-30 at 23:22 GMT+01:00 Bill Allombert wrote:
On Fri, Jan 13, 2017 at 11:00:28PM +0100, Loďc Grenié wrote:
> Package: pari
> Version: dd75740be
> Severity: normal
>
>      Hi Karim and Bill,
>
>      I think you probably understood what I will say. With pthread,
>
> parfor(n=10,20,addprimes(nextprime(10^n)))

I fixed that. Now, each thread has a separate addprimes list and
import the addprimes from the main thread.

Please check it works for your application.

      I honestly do not remember what I was trying to do when I hit the bug. As far
  as I can tell the bug is fixed.

          Thanks a lot,

              Loïc