#14711: Memleak when creating QuadraticField
-------------------------------------------------+-------------------------
       Reporter:  jpflori                        |        Owner:
           Type:  defect                         |  davidloeffler
       Priority:  critical                       |       Status:  new
      Component:  number fields                  |    Milestone:  sage-5.13
       Keywords:  memleak, number field,         |   Resolution:
  QuadraticField                                 |    Merged in:
        Authors:                                 |    Reviewers:
Report Upstream:  N/A                            |  Work issues:
         Branch:  u/SimonKing/ticket/14711       |       Commit:
   Dependencies:                                 |     Stopgaps:
-------------------------------------------------+-------------------------

Comment (by SimonKing):

 Replying to [comment:74 SimonKing]:
 > This is really getting scary. I see in an interactive session that the
 leak is fixed, but according to the corresponding doctest it isn't fixed.

 What a fun...

 When counting the number of quadratic number fields tracked by gc, I did
 {{{
 numberQuadFields = len([x for x in gc.get_objects() if isinstance(x, C)])
 }}}
 And apparently,just  by chance, x became a pointer to the number field
 that I wanted to delete. Hence, I had to add `del x` to make the tests
 pass.

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