#15498: Memory leak in ideal arithmetic
-------------------------------+------------------------
       Reporter:  ppurka       |        Owner:
           Type:  defect       |       Status:  new
       Priority:  major        |    Milestone:  sage-6.1
      Component:  algebra      |   Resolution:
       Keywords:  memory leak  |    Merged in:
        Authors:               |    Reviewers:
Report Upstream:  N/A          |  Work issues:
         Branch:               |       Commit:
   Dependencies:               |     Stopgaps:
-------------------------------+------------------------

Comment (by SimonKing):

 Note the following variation:
 {{{
 sage: while R.ideal(1):
 ....:     count += 1
 ....:     if (count%1000 == 0):
 ....:         _ = gc.collect()
 ....:         print get_memory_usage(p), len(gc.get_objects())-l
 ....:         p = get_memory_usage()
 ....:
 10.03515625 378
 0.0 378
 0.0 378
 0.0 373
 0.0 373
 0.0 373
 0.0 373
 0.0 373
 0.0 373
 ...
 }}}
 So, we need to ''compare'' ideals to see the leak. It is not enough to
 just ''create'' the ideals and then just test if they are nonzero.

 By the way, I just noticed:
 {{{
 sage: R.ideal(1)!=1
 False
 sage: R.ideal(1)==1
 False
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/15498#comment:5>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to