#12173: Update FLINT to 2.3
---------------------------------------------------------------------+------
       Reporter:  mhansen                                            |         
Owner:  tbd         
           Type:  enhancement                                        |        
Status:  needs_review
       Priority:  major                                              |     
Milestone:  sage-5.3    
      Component:  packages                                           |    
Resolution:              
       Keywords:  flint spkg                                         |   Work 
issues:              
Report Upstream:  N/A                                                |     
Reviewers:              
        Authors:  Mike Hansen, Fredrik Johansson, Jean-Pierre Flori  |     
Merged in:              
   Dependencies:  #12433                                             |      
Stopgaps:              
---------------------------------------------------------------------+------

Comment (by SimonKing):

 I did not look into the patch, but according to Jean-Pierre, you had
 problems with segfaults at quitting Sage.

 I am pretty much sure that this comes from something similar I had to
 struggle with at #12215 in the case of Pari. Namely, if you want to
 deallocate C-data of pari, flint, ... instances, you should do so in a
 `__dealloc__` method, but ''not'' like this:
 {{{
     import sage.matrix.matrix_mod2_dense
     sage.matrix.matrix_mod2_dense.free_m4ri()

     import sage.libs.flint.flint
     sage.libs.flint.flint.free_flint_stack()

     pari._unsafe_deallocate_pari_stack()
 }}}
 That is code from sage.all.quit_sage. I have replaced the
 pari._unsafe_deallocate... by a proper `__dealloc__` method in #12215, but
 perhaps you should do the same for the flint stack here?

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