#10548: The coercion model is keeping references to tracebacks which causes
memory
leaks.
------------------------+---------------------------------------------------
Reporter: mderickx | Owner: robertwb
Type: defect | Status: new
Priority: major | Milestone: sage-4.7
Component: coercion | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Description changed by mderickx:
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.
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.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10548#comment:13>
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.