Bill Allombert on Tue, 17 Jan 2017 23:04:21 +0100


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

Re: Use PROT_NONE for unused virtual stack memory


On Sat, Jan 14, 2017 at 03:16:36PM +0100, Bill Allombert wrote:
> On Thu, Jan 05, 2017 at 10:47:51AM +0100, Jeroen Demeyer wrote:
> > Hello pari-dev,
> > 
> > In attachment you find an updated version of my patch, taking in account
> > some comments by Bill Allombert and fixing #1881.
> 
> Applied, thanks a lot.

Unfortunately this seems to cause a crash:

./gp -f
parisize = 8000000, primelimit = 500000
? default(parisizemax,"4G")
  ***   Warning: new maximum stack size = 4000002048 (3814.699 Mbytes).
?  my(n=64);L=[G.group|i<-[1..galoisgetpol(n)];V<-[galoisgetpol(n,i)];G<-[galoisinit(V[1],V[2])],!galoisisabelian(G)];
  *** galoisinit: Warning: increasing stack size to 16000000.
  ***   Warning: increasing stack size to 32000000.
zsh: segmentation fault  ./gp -f

Cheers,
Bill.