#12173: Update FLINT to 2.3
-------------------------------+--------------------------------------------
       Reporter:  mhansen      |         Owner:  tbd     
           Type:  enhancement  |        Status:  new     
       Priority:  major        |     Milestone:  sage-5.1
      Component:  packages     |    Resolution:          
       Keywords:               |   Work issues:          
Report Upstream:  N/A          |     Reviewers:          
        Authors:               |     Merged in:          
   Dependencies:  #12433       |      Stopgaps:          
-------------------------------+--------------------------------------------

Comment (by fredrik.johansson):

 The first Invalid read of size 8 is likely not a bug. On various
 platforms, mpn_copyi relies on page boundaries being aligned to a multiple
 of 16 bytes so that it can safely read an extra 8 bytes, IIRC. (This pops
 up all over the place when valgrinding flint unit tests, and it's
 convenient to add it to the valgrind suppression file.)

 The second one has to be what it looks like: some polynomial lives until
 after _fmpz_cleanup has been called.

 So the question is how we can guarantee that all Python objects
 referencing flint objects get deallocated before _fmpz_cleanup is called.

 If this is impossible, I guess we could compile flint in reentrant mode
 for Sage (but this would slow things down, unfortunately).

 One possibility is that we change _fmpz_cleanup to free all mpz limb data
 but leave the mpz array. This might still be a bit fragile, but if it
 works, it should solve the problem of polluting valgrind logs since there
 will only be one large block of unfreed memory.

 We must also have this problem with flint_compute_primes.

 Does Sage free the MPFR caches on exit, and if so where?

 Perhaps this should be brought to sage-devel.

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