Bill Allombert on Thu, 13 Apr 2017 19:46:26 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: ( Possibly... ) Bug report. |
On Thu, Apr 13, 2017 at 01:00:01PM -0400, R J Cano wrote: > Dear PARI-Dev team, and PARI-Users mail list members. > > Greetings!, > > I am humbly following the request: "bug in PARI/GP (Segmentation > Fault), please report." > > Scenario: Source code compiled (including -g option!) and run with > GP2C (from an invocation to gp2c-run ) > A217626_vec(n,{B=10})={my(u=n!-1);my(x=numtoperm(n,0),y,z=vector(u),i);for(j=1,u,y=numtoperm(n,j)-x;z[i++]=fromdigits(vector(#x-1,k,vecsum(y[1..k]) ) ,B);x+=y);z} Hello Remy, it is a bug in the implementation of the -g option of gp2c. But you can avoid the issue and improve your code by replacing my(x=...,i); by my(x=...,i:small=0) Cheers, Bill.