Remy Cano on Thu, 28 Sep 2017 03:04:25 +0200


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

Re: ( Possibly... ) Bug report.


Merci.

Cheers,

Remy

2017-09-27 10:49 GMT-04:00, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
> On Thu, Apr 13, 2017 at 07:46:22PM +0200, Bill Allombert wrote:
>> 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)
>
> I fixed this bug in GP2C rev 42a389ce.
>
> Cheers,
> Bill.
>
>