Bill Allombert on Sun, 18 Jan 2004 00:25:18 +0100


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

Re: listsort bug


On Sat, Jan 17, 2004 at 11:37:27PM +0100, Robert Gerbicz wrote:
> 
> Reading GPRC: /cygdrive/c/Program Files/PARI_2003.12.17/.gprc ...Done.                    GP/PARI CALCULATOR Version 2.2.7 (alpha)                i686 running cygwin (ix86 kernel) 32-bit version               compiled: Dec 17 2003, gcc-3.3.1 (cygming special)              (readline v4.3 enabled, extended help not available)                       Copyright (C) 2003 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, andcomes WITHOUT ANY WARRANTY WHATSOEVER.Type ? for help, \q to quit.Type ?12 for how to get moral (and possibly technical) support.   realprecision = 28 significant digits   seriesprecision = 16 significant terms   format = g0.28parisize = 4000000, primelimit = 500000(22:04) gp > a=listcreate(5):b=listcreate(5):b=listsort(a,1):print(b)List([369098752])(22:04) gp >This is a bug since a was an empty list, so b=listsort(a,1) has to be an empty list.

In fact, this bug can be shortened to
? listsort(List([]),1)
  ***   bug in GP (Segmentation Fault), please report

Please use ';' to separate commands. ':' is deprecated and may have
an other meaning in the futur (and has already with gp2c).

Thanks for your report!

Cheers,
Bill.