mailjaro on Sat, 15 Oct 2011 21:29:14 +0200


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

Re: bnfinit: the PARI stack overflows


Thank you very much for Your reply.

2) I will try to download v 2.5.0, read your install documentation and try to compile it myself.
I was advised to use fink, but as far as I understand, it only results in a old version.  Should
I try to uninstall the old version first?

1) gp -f and bnfinit(x^2 + 1 ) produce:

bash-3.2$ gp -f
                  GP/PARI CALCULATOR Version 2.3.5 (released)
          i386 running darwin (x86-64/GMP-5.0.2 kernel) 64-bit version
compiled: Oct 13 2011, gcc-3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
                (readline v5.0 enabled, extended help available)

                     Copyright (C) 2000-2006 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and 
comes WITHOUT ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.

parisize = 8000000, primelimit = 500000
? bnfinit(x^2 + 1)
  *** bnfinit: the PARI stack overflows !
  current stack size: 8000000 (7.629 Mbytes)
  [hint] you can increase GP stack with allocatemem()


END OF OUTPUT.

Increasing the stack size produce the same output.

Regards
Jan

2011/10/15 Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr>
* mailjaro [2011-10-13 22:20]:
> I have installed the GP/Pari calculator (version 2.3.5) - using fink - on my
> Mac (Mac Mini, 4GB RAM, 2,5 GHz Intel Core i5, OSX 10.7.2), and it works
> fine; except that the bnfinit(P) always returns with a stack overflow error.
>  I have tried running GP with all kinds of stack sizes, have tried all kinds
> of polynomials P, my system seems healthy (with a lot of free memory etc)
> and commands like nfinit(P) work fine.  Does anybody know what´s wrong/what
> to do?

1) We would need more details: type gp -f in a terminal, then

 bnfinit(x^2+1)

What happens ?

2) 2.3.5 is a very old version, why not upgrade to version 2.5.0 ? See
[ I have no idea whether this is available under Fink, but you can
always download it from http://pari.math.u-bordeaux1.fr/download.html
then compile it yourself ]

Cheers,

   K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~belabas/
F-33405
Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`