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

Comment(by leif):

 With non-verbose debugging memory allocator:
 {{{
 ...
 Trying:
     P = GF(Integer(1009))['x']; (x,) = P._first_ngens(1)###line 621:_sage_
 >>> P.<x> = GF(1009)[]
 Expecting nothing
 ok
 Trying:
     (prod(P.random_element() for i in range(Integer(5)))).factor()###line
 622:_sage_    >>> (prod(P.random_element() for i in range(5))).factor()
 Expecting:
     (920) * (x + 96) * (x + 288) * (x + 362) * (x + 432) * (x + 603) * (x
 + 709) * (x^2 + x + 585) * (x^2 + 40*x + 888)
 *** glibc detected *** python: munmap_chunk(): invalid pointer:
 0x00000000072d7de8 ***
 ======= Backtrace: =========
 /lib/libc.so.6(+0x775b6)[0x7f90f075b5b6]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_clear+0x3b)[0x7f90e3a1ccdb]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_berlekamp+0xb6a)[0x7f90e3a2353a]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_berlekamp+0xaf4)[0x7f90e3a234c4]
 }}}

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