#9129: sqrt memory leaks
------------------------------------+--------------------------
       Reporter:  zimmerma          |        Owner:  AlexGhitza
           Type:  defect            |       Status:  new
       Priority:  critical          |    Milestone:  sage-6.2
      Component:  basic arithmetic  |   Resolution:
       Keywords:  sd35.5            |    Merged in:
        Authors:                    |    Reviewers:
Report Upstream:  N/A               |  Work issues:
         Branch:                    |       Commit:
   Dependencies:                    |     Stopgaps:
------------------------------------+--------------------------
Description changed by jdemeyer:

Old description:

> cf http://groups.google.com/group/sage-
> support/browse_thread/thread/8c18b2b91004c35a#
> (this first example does not leak memory any more in Sage 6.0)
> {{{
> sage: m = get_memory_usage()
> sage: while True:
>     a = ZZ(randint(2^400,2^800)).sqrt()
>     print get_memory_usage(m)
> }}}
> or simpler (this one still leaks memory in Sage 6.0):
> {{{
> m = get_memory_usage()
> i=0
> while True:
>     i+=1
>     a = 2.sqrt()
>     if i%1000==0:
>         print get_memory_usage(m)
> }}}

New description:

 cf http://groups.google.com/group/sage-
 support/browse_thread/thread/8c18b2b91004c35a#
 {{{
 m = get_memory_usage()
 i=0
 while True:
     i+=1
     a = 2.sqrt()
     if i%1000==0:
         print get_memory_usage(m)
 }}}

--

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