Bill Allombert on Mon, 17 Oct 2011 18:58:15 +0200


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

Re: bnfinit: the PARI stack overflows


On Sat, Oct 15, 2011 at 09:29:08PM +0200, mailjaro wrote:
> 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?

It is probably not required, but this might be less confusing.

> 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.

Probably the binary was miscompiled. The new compiler in Mac OS 10.7 is known
to generate broken code. We advise to use gcc 4.4 or 4.5 to compile PARI/GP.

Cheers,
Bill.