#12215: Memleak in UniqueRepresentation, @cached_method
-----------------------------+----------------------------------------------
   Reporter:  vbraun         |          Owner:  rlm                             
          
       Type:  defect         |         Status:  needs_work                      
          
   Priority:  major          |      Milestone:  sage-5.0                        
          
  Component:  memleak        |       Keywords:  UniqueRepresentation 
cached_method caching
Work_issues:  Fix two tests  |       Upstream:  N/A                             
          
   Reviewer:                 |         Author:  Simon King                      
          
     Merged:                 |   Dependencies:  #11115 #11900                   
          
-----------------------------+----------------------------------------------

Comment(by vbraun):

 I tried the following in `cdef class Action`:
 {{{
 #!python
     def __cinit__(self):
         print 'Action __cinit__ ' + str(id(self))

     def __dealloc__(self):
         print 'Action __dealloc__ ' + str(id(self))
 }}}
 then I do get occasionally reused id (=memory address in CPython), for
 example
 {{{
     Action __cinit__ 105376976
     Action __dealloc__ 105376976
     Action __cinit__ 105376976
     Action __dealloc__ 105376976
 }}}
 But I don't see any double finalizers without the object being constructed
 in-between. I also don't get any segfault in
 `bordeaux_2008/half_integral.rst`.

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