Bill Allombert on Sun, 20 Aug 2017 22:49:19 +0200


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

Re: Misleading error message


On Wed, Aug 16, 2017 at 09:12:44AM +0100, John Cremona wrote:
> Someone using my mwrank program, which uses the pari library in a
> small way (for integer factorization) reported the following error
> message appearing:
> 
>  ***   the PARI stack overflows !
>     current stack size: 1000000 (0.954 Mbytes)
>     [hint] set 'parisizemax' to a non-zero value in your GPRC
>     ***   Error in the PARI system. End of program.
> 
> The point was that mwrank calls pari_init() with quite a small value
> of parisize, and did not allow that to be increased at run-time.  I
> fixed that yesterday with an update to mwrank, but the point of this
> posting is that the hint in the error message seems irrelevant here?
> The user did have a large value in his gprc but that only applies to a
> gp session, not to running a separate binary usig the pari library,
> surely?

Well, there is a libpari function 
void gp_load_gprc(void)
for reading the .gprc file that mwrank could use.
I suppose we would need to detect whether this function was called or
not before displaying the hint.

Cheers,
Bill.