#11771: sage crashes on some degenerate flint xgcd's
--------------------------------+-------------------------------------------
   Reporter:  lftabera          |          Owner:  AlexGhitza                   
                    
       Type:  defect            |         Status:  needs_review                 
                    
   Priority:  critical          |      Milestone:  sage-4.7.2                   
                    
  Component:  basic arithmetic  |       Keywords:  flint, crash, xgcd fmpq_poly 
rational polynomials
Work_issues:                    |       Upstream:  N/A                          
                    
   Reviewer:                    |         Author:  Leif Leonhardy               
                    
     Merged:                    |   Dependencies:                               
                    
--------------------------------+-------------------------------------------

Comment(by spancratz):

 On second thought, the code in fmpq_poly_canonicalize() is too
 embarrassing.  I have deleted the bits of code that were commented out,
 removed the temporary parameter, which wasn't used anyway, and adjusted
 the remaining part of the code in fmpq_poly.c accordingly.  This also made
 the memory allocations in two or three other places a little cleaner.

 What's the best way to proceed?

 On my laptop here at home I only have a version of Sage 4.6 and
 downloading the latest version of Sage, plus installing it from source etc
 might take a little while.

 I could either send you the updated versions of fmpq_poly.c and
 fmpq_poly.h and then let you make a patch from it etc.  The only other
 change necessary should be a one-line change in line 26 of fmpq_poly.pxd.

 Alternatively, I can attach a patch for those three files based on Sage
 4.6.  I assume they haven't changed since then?

 Best wishes,

 Sebastian

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11771#comment:21>
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