Roland Dreier on Wed, 18 Feb 1998 09:31:04 +0100


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

Possible pari-2.0.5/gp bug


On my linux box, I get the following behavior:

% /usr/local/src/pari-2.0.5.alpha/o.linux-i586/gp-dyn
                    GP/PARI CALCULATOR Version 2.0.5 (alpha)
                i586 running linux (ix86 kernel) 32-bit version
                (readline enabled, extended help not available)

                             Copyright 1989-1998 by
          C. Batut, K. Belabas, D. Bernardi, H. Cohen and M. Olivier.

Type ? for help.

   realprecision = 28 significant digits
   seriesprecision = 16 significant terms
   format = g0.28

parisize = 4000000, primelimit = 500000, buffersize = 30000
? factor(3*s^4-140*s^2-4537/9*s-4900/9)
  ***   the PARI stack overflows !!!

  ***   Warning: doubling stack size; new stack = 8000000.
? factor(3*s^4-140*s^2-4537/9*s-4900/9)
  ***   the PARI stack overflows !!!

  ***   Warning: doubling stack size; new stack = 16000000.

I get the same behavior with statically linked gp.  However, in the
old version of gp, I get

            GP/PARI CALCULATOR Version 1.39.03
                      (i386 version)

Copyright 1989-1995 by C. Batut, D. Bernardi, H. Cohen and M. Olivier

Type ? for help

\precision      = 28
\serieslength   = 16
\format         = g0.28
\prompt         = ? 
stacksize = 4000000, prime limit = 500000, buffersize = 30000
? factor(3*s^4-140*s^2-4537/9*s-4900/9)
%1 = 
[9*s^2 + 39*s + 49 1]

[3*s - 25 1]

[s + 4 1]

I haven't tried to track down exactly what's going on.

Best,
  Roland
--
Roland "Mr. Zero" Dreier                        dreier@math.berkeley.edu
"You can't stop him -- you can only hope to contain him." -- Dan Patrick