John Cremona on Wed, 16 Aug 2017 10:13:25 +0200


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

Misleading error message


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?

John