#10548: The coercion model is keeping references to tracebacks which causes 
memory
leaks.
-------------------------------+--------------------------------------------
   Reporter:  mderickx         |       Owner:  robertwb       
       Type:  defect           |      Status:  positive_review
   Priority:  major            |   Milestone:  sage-4.7       
  Component:  coercion         |    Keywords:                 
     Author:  Robert Bradshaw  |    Upstream:  N/A            
   Reviewer:  Maarten Derickx  |      Merged:                 
Work_issues:                   |  
-------------------------------+--------------------------------------------
Description changed by jdemeyer:

Old description:

> When I was doing some computations on modular forms, I noticed that the
> ModularSymbols_clear_cache() was not doing what it claims to do.
>
> {{{
> sage: import gc
> sage: m=ModularSymbols(Gamma1(29),sign=1)
> sage: m=[]
> sage: ModularSymbols_clear_cache()
> sage: gc.collect()
> 57
> sage: [x for x in gc.get_objects() if
> isinstance(x,sage.modular.modsym.ambient.ModularSymbolsAmbient_wtk_g1)]
> [Modular Symbols space of dimension 49 for Gamma_1(29) of weight 2 with
> sign 1 and over Rational Field]
> sage:
> }}}
> So even after garbage collection the modular symbols element is still in
> memory.
>
> When testing please also make sure that the last stackframe from #10570
> is also gone.
>
> Apply 10548-coerce-traceback.2.patch, trac_10548-coerce-traceback-
> doctest.v2.patch

New description:

 When I was doing some computations on modular forms, I noticed that the
 ModularSymbols_clear_cache() was not doing what it claims to do.

 {{{
 sage: import gc
 sage: m=ModularSymbols(Gamma1(29),sign=1)
 sage: m=[]
 sage: ModularSymbols_clear_cache()
 sage: gc.collect()
 57
 sage: [x for x in gc.get_objects() if
 isinstance(x,sage.modular.modsym.ambient.ModularSymbolsAmbient_wtk_g1)]
 [Modular Symbols space of dimension 49 for Gamma_1(29) of weight 2 with
 sign 1 and over Rational Field]
 sage:
 }}}
 So even after garbage collection the modular symbols element is still in
 memory.

 When testing please also make sure that the last stackframe from #10570 is
 also gone.

 Apply [attachment:10548-coerce-traceback.2.patch] and
 [attachment:trac_10548-coerce-traceback-doctest.v2.patch]

--

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