#12313: Fix yet another memory leak caused by caching of coercion data
-----------------------------------------------------------------------------------------------------------+
   Reporter:  SimonKing                                                         
                           |          Owner:  rlm                     
       Type:  defect                                                            
                           |         Status:  needs_work              
   Priority:  major                                                             
                           |      Milestone:  sage-5.0                
  Component:  memleak                                                           
                           |       Keywords:  coercion weak dictionary
Work_issues:  Find out why some attribute of a parent is deleted before the 
parent's elements are deleted  |       Upstream:  N/A                     
   Reviewer:                                                                    
                           |         Author:  Simon King              
     Merged:                                                                    
                           |   Dependencies:  #715                    
-----------------------------------------------------------------------------------------------------------+

Comment(by SimonKing):

 I added some print statements into the init and dealloc methods of
 `ntl_ZZ_pEContext` (namely, it is the type of `self._parent._modulus`).
 However, even though `self._parent._modulus` is gone, the deallocation
 method of `self._parent._modulus` is not called.

 Still. Of course one could add a try-except clause into the deallocation
 of a polynomial template. But it should simply not be the case that an
 attribute of an existing object disappears!

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