Thomas D. Dean on Wed, 25 Oct 2023 01:31:37 +0200


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

Re: segfault


On 10/24/23 16:26, Thomas D. Dean wrote:
Ubuntu 22.04
64G RAM

 > gp
Reading GPRC: /home/tomdean/.gprc
GPRC Done.

         GP/PARI CALCULATOR Version 2.16.1 (development 28775-3c253ce7d5)
           amd64 running linux (x86-64/GMP-6.2.1 kernel) 64-bit version
    compiled: Oct 24 2023, gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
                             threading engine: single
                  (readline v8.1 enabled, extended help enabled)

                      Copyright (C) 2000-2023 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 ?18 for how to get moral (and possibly technical) support.

parisizemax = 16000000000, primelimit = 10000000
? quadhilbert(-3299)
   *** quadhilbert: Warning: increasing stack size to 16000000000.
   ***   at top-level: quadhilbert(-3299)
   ***                 ^------------------
   *** quadhilbert: bug in PARI/GP (Segmentation Fault), please report.
   ***   Break loop: type 'break' to go back to GP prompt
break>

Tom Dean


The above was built with readline and gmp.  Rebuild with

./Configure --mt=pthread --with-readline --with-gmp

Now, I get
> gp

Reading GPRC: /home/tomdean/.gprc
GPRC Done.

        GP/PARI CALCULATOR Version 2.16.1 (development 28775-3c253ce7d5)
          amd64 running linux (x86-64/GMP-6.2.1 kernel) 64-bit version
compiled: Oct 24 2023, gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
                           threading engine: pthread
                 (readline v8.1 enabled, extended help enabled)

                     Copyright (C) 2000-2023 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 ?18 for how to get moral (and possibly technical) support.

parisizemax = 16000000000, primelimit = 10000000, nbthreads = 64
? quadhilbert(-3299)
%1 = x^27 - 46*x^26 + 10629*x^25 - 33353*x^24 + 169828*x^23 - 245541*x^22 - 708655*x^21 + 1107476*x^20 + 5104262*x^19 + 3150573*x^18 - 14494717*x^17 - 10069226*x^16 + 24507714*x^15 + 11081859*x^14 - 24227257*x^13 - 5803570*x^12 + 14412354*x^11 + 1342815*x^10 - 4449847*x^9 - 913182*x^8 - 252192*x^7 + 881533*x^6 + 761927*x^5 + 44192*x^4 - 18669*x^3 + 9893*x^2 + 190*x + 1
?

Tom Dean