PARI/GP Bug report logs - #1374
isprime fails with Bus Error

Package: pari; Maintainer for pari is Aurel Page <aurel.page@normalesup.org>; Source for pari is src:pari.

Reported by: Charles Greathouse <charles.greathouse@case.edu>

Date: Tue, 13 Nov 2012 23:33:03 UTC

Severity: normal

Done: Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list@pari.math.u-bordeaux.fr, Karim.Belabas@math.u-bordeaux.fr:
Bug#1374; Package pari. (full text, mbox, link).


Acknowledgement sent to Charles Greathouse <charles.greathouse@case.edu>:
New Bug report received and forwarded. Copy sent to Karim.Belabas@math.u-bordeaux.fr. (full text, mbox, link).


Message #5 received at submit@pari.math.u-bordeaux.fr (full text, mbox, reply):

From: Charles Greathouse <charles.greathouse@case.edu>
To: submit@pari.math.u-bordeaux.fr
Subject: isprime fails with Bus Error
Date: Tue, 13 Nov 2012 18:21:37 -0500
[Message part 1 (text/plain, inline)]
Package: pari
Version: 2.6.0 git-460e83a

> N = 4309513411435775833571;
> ispseudoprime(N)
%1 = 1
> isprime(N)
  ***   at top-level: isprime(N)
  ***                 ^----------
  *** isprime: bug in PARI/GP (Bus Error), please report.
  ***   Break loop: type 'break' to go back to GP prompt

Charles Greathouse
Analyst/Programmer
Case Western Reserve University
[Message part 2 (text/html, inline)]

Reply sent to Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Charles Greathouse <charles.greathouse@case.edu>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 1374-close@pari.math.u-bordeaux.fr (full text, mbox, reply):

From: Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr>
To: Charles Greathouse <charles.greathouse@case.edu>, 1374-close@pari.math.u-bordeaux.fr
Subject: Re: Bug#1374: isprime fails with Bus Error
Date: Wed, 14 Nov 2012 02:07:16 +0100
* Charles Greathouse [2012-11-14 00:41]:
> > N = 4309513411435775833571;
> > ispseudoprime(N)
> %1 = 1
> > isprime(N)
>   ***   at top-level: isprime(N)
>   ***                 ^----------
>   *** isprime: bug in PARI/GP (Bus Error), please report.
>   ***   Break loop: type 'break' to go back to GP prompt

Obscure bug introduced in 28e1f18b. Fixed in master:

  commit b6eefc625299e25f7d4feb1f95e43cf8bc1a4e9f
  Author: Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr>
  Date:   Wed Nov 14 02:04:12 2012 +0100

      pass around pC length instead of abusing lg() [#1374]
      
      introduced in 28e1f18b: isprime(4309513411435775833571) -> SEGV

Thanks for your report !

    K.B.
-- 
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`



Send a report that this bug log contains spam.


Bill Allombert <allomber@math.u-bordeaux.fr>. Last modified: Fri Mar 29 08:42:29 2024; Machine Name: pari

PARI/GP Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.