Karim BELABAS on Wed, 12 Jun 2002 23:46:38 +0200 (MEST)


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

Re: 22- polgalois()


On Wed, 12 Jun 2002, Igor Schein wrote:

> On Wed, Jun 12, 2002 at 08:39:20PM +0200, Karim BELABAS wrote:
> > On Wed, 12 Jun 2002, Igor Schein wrote:
> > > ? \d
> > [...]
> > >    new_galois_format = 0 (off)
> > >   ***   bug in GP (Segmentation Fault), please report
[...]
> signal SEGV (no mapping at the fault address) in sd_ulong at line 488 in file "gp.c"
>   488           pariputsf("   %s = %lu %s\n", s, n, *msg);
>
> (/opt/SUNWspro/WS6/bin/sparcv9/dbx) dump
[...]
> n = 4294967296U
[...]
> Hope that's sufficient

Yes, n is ridiculously large here ( 2^32, should be in [0,3] ).

I think I fixed it. The following line in gp.c:sd_output() makes no sense:

    (ulong*) &(GP_DATA->fmt->prettyp), with fmt->prettyp of type int

Introduced it yesterday after the release, when cleaning up the gp defaults.

    Karim.
-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas
--
PARI/GP Home Page: http://www.parigp-home.de/