id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
10548 The coercion model is keeping references to tracebacks which causes memory leaks. mderickx robertwb "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]" defect closed major sage-4.7 coercion fixed davidloeffler sage-4.7.alpha4 Robert Bradshaw Maarten Derickx N/A