#11604: PARI qfminim bug on 32-bit systems (Sage 4.7 and 4.6.2)
------------------------+---------------------------------------------------
   Reporter:  mmasdeu   |          Owner:  was                                  
                  
       Type:  defect    |         Status:  needs_review                         
                  
   Priority:  major     |      Milestone:  sage-4.7.2                           
                  
  Component:  packages  |       Keywords:  pari, qfminim, ZM_lll, large matrix, 
ArchLinux, PARI/GP
Work_issues:            |       Upstream:  Fixed upstream, in a later stable 
release.             
   Reviewer:            |         Author:  Jeroen Demeyer                       
                  
     Merged:            |   Dependencies:  #11321, #11130                       
                  
------------------------+---------------------------------------------------

Old description:

> In Sage 4.7, when calling the function
>
> pari('qfminim(%s,2,0)'%(A._pari_()))
>
> with certain matrix, I get the following:
>
> {{{
> sage: A=Matrix(ZZ,4,4,[32982266684193100, 1368614777139719,
> 224591013270052693 , 276460184982223238,1368614777139719,
> 56791380087354, 9319512049770279, 11471848267545007,224591013270052693 ,
> 9319512049770279 ,1529340971891522140,
> 1882541434053596358,276460184982223238 ,  11471848267545007,
> 1882541434053596358, 2317313350044091414])
> sage: pari('qfminim(%s,2,0)'%(A._pari_()))
>   ***   at top-level: qfminim([32982266684
>   ***                 ^--------------------
>   *** qfminim: bug in ZM_lll, please report
> ---------------------------------------------------------------------------
> RuntimeError                              Traceback (most recent call
> last)
>
> /home/float/<ipython console> in <module>()
>
> /home/float/sage/local/lib/python2.6/site-packages/sage/libs/pari/gen.so
> in sage.libs.pari.gen.PariInstance.__call__
> (sage/libs/pari/gen.c:43438)()
>
> RuntimeError: evaluating PARI string
>
> }}}
>
> This is fixed by #11130, this ticket simply adds a doctest.

New description:

 In Sage 4.7, when calling the function

 pari('qfminim(%s,2,0)'%(A._pari_()))

 with certain matrix, I get the following:

 {{{
 sage: A=Matrix(ZZ,4,4,[32982266684193100, 1368614777139719,
 224591013270052693 , 276460184982223238,1368614777139719,
 56791380087354, 9319512049770279, 11471848267545007,224591013270052693 ,
 9319512049770279 ,1529340971891522140,
 1882541434053596358,276460184982223238 ,  11471848267545007,
 1882541434053596358, 2317313350044091414])
 sage: pari('qfminim(%s,2,0)'%(A._pari_()))
   ***   at top-level: qfminim([32982266684
   ***                 ^--------------------
   *** qfminim: bug in ZM_lll, please report
 ---------------------------------------------------------------------------
 RuntimeError                              Traceback (most recent call
 last)

 /home/float/<ipython console> in <module>()

 /home/float/sage/local/lib/python2.6/site-packages/sage/libs/pari/gen.so
 in sage.libs.pari.gen.PariInstance.__call__ (sage/libs/pari/gen.c:43438)()

 RuntimeError: evaluating PARI string

 }}}

 This is [http://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=1154
 PARI bug 1154], fixed by #11130, this ticket simply adds a doctest.

--

Comment(by leif):

 For the impatient: A new spkg fixing this for Sage versions 4.6.x, 4.7 and
 4.7.1 is still available at http://spkg-
 upload.googlecode.com/files/pari-2.4.3.alpha.p8.spkg .

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11604#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to