#10570: sage leaves a lot of stackframes alive at startup
------------------------+---------------------------------------------------
   Reporter:  mderickx  |       Owner:  rlm     
       Type:  defect    |      Status:  new     
   Priority:  critical  |   Milestone:  sage-4.7
  Component:  memleak   |    Keywords:          
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by mderickx):

 This shows that #10548 is actually the cause of the factorial generator.
 {{{
 sage: import gc
 sage: import inspect
 sage: frames=[x for x in gc.get_objects() if inspect.isframe(x)]
 sage:
 
l=objgraph.find_backref_chain(frames[0],inspect.ismodule,max_depth=15,extra_ignore=[id(frames)])
 sage:
 
l=objgraph.find_backref_chain(frames[8],inspect.ismodule,max_depth=15,extra_ignore=[id(frames)])
 sage: map(type,l)
 [<type 'module'>, <type 'dict'>, <type
 'sage.structure.coerce.CoercionModel_cache_maps'>, <type 'list'>, <type
 'tuple'>, <type 'traceback'>, <type 'frame'>, <type 'frame'>, <type
 'frame'>, <type 'frame'>]
 }}}
 I'm going to add a patch to remove all the other stack frames in the way
 david sugested so this ticket can be closed. (since when there is a fix
 for 10548 it should also remove last stackframe)

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