Bill Allombert on Sat, 24 Feb 2018 19:41:56 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: spamming with "Warning: not enough memory, new stack ..."


On Sat, Feb 24, 2018 at 12:03:15PM -0500, Max Alekseyev wrote:
> Dear Bill,
> Thank you for clarification! Indeed, I used the pthread version.
> Can this warning message be made a bit more specific to indicate that
> it's related to threads? (It was very puzzling for me.)

Hello Max,

It is not related to threads. It just occurs in a thread in your case.
It also happen when GP starts if parisizemax is set too high.

Now we could try to prefix warnings with something to indicate they
occurs in a thread. Prefixing errors would be harder because than can be
caught.

> Also, is there a way to suppress such warnings?

You can disable them by setting debugmem to 0, but the best is to set
threadsize or threadsizemax to a more reasonnable value.
While PARI can recover from unsufficient memory problem, it is not a
safe way to operate. Hiding the warning does not fix the problem.

Cheers,
Bill.