#19363: 16 bytes lost with every call to psi(real number)
-----------------------+--------------------------------------
   Reporter:  rws      |            Owner:
       Type:  defect   |           Status:  new
   Priority:  minor    |        Milestone:  sage-6.9
  Component:  memleak  |         Keywords:  symbolic, function
  Merged in:           |          Authors:
  Reviewers:           |  Report Upstream:  N/A
Work issues:           |           Branch:
     Commit:           |     Dependencies:
   Stopgaps:           |
-----------------------+--------------------------------------
 {{{
 sage: for i in range(1000):
 ....:     _ = psi(.5)
 }}}

 in `sage valgrind`results in:

 {{{
 ==27695== 16,000 bytes in 1,000 blocks are possibly lost in loss record
 5,181 of 5,373
 ==27695==    at 0x4C290CD: malloc (vg_replace_malloc.c:296)
 ==27695==    by 0x12569F89: sage_malloc (memory.c:1070)
 ==27695==    by 0x12569F89: __pyx_f_4sage_3ext_6memory_sage_sig_malloc
 (memory.c:821)
 ==27695==    by 0x1779FD8F: mpfr_init2 (init2.c:55)
 ==27695==    by 0x19A63BEE:
 __pyx_pf_4sage_5rings_9real_mpfr_10RealNumber___init__ (real
 _mpfr.c:11360)
 ==27695==    by 0x19A63BEE:
 __pyx_pw_4sage_5rings_9real_mpfr_10RealNumber_1__init__ (rea
 l_mpfr.c:11279)
 ==27695==    by 0x4EEE0BB: wrap_init (typeobject.c:4748)
 ==27695==    by 0x4E89A22: PyObject_Call (abstract.c:2529)
 ==27695==    by 0x4F3A316: PyEval_CallObjectWithKeywords (ceval.c:3902)
 ==27695==    by 0x4EA9FC4: wrapperdescr_call (descrobject.c:343)
 ==27695==    by 0x19A50924: __Pyx_PyObject_Call (real_mpfr.c:42295)
 ==27695==    by 0x19A50924:
 __pyx_pf_4sage_5rings_9real_mpfr_11RealLiteral___init__ (rea
 l_mpfr.c:33947)
 ==27695==    by 0x19A50924:
 __pyx_pw_4sage_5rings_9real_mpfr_11RealLiteral_1__init__ (re
 al_mpfr.c:33880)
 ==27695==    by 0x4EF3A9E: type_call (typeobject.c:745)
 ==27695==    by 0x19A3B400: __Pyx_PyObject_Call.constprop.100
 (real_mpfr.c:42295)
 ==27695==    by 0x19A5E467:
 __pyx_pf_4sage_5rings_9real_mpfr_18create_RealNumber (real_m
 pfr.c:35167)
 ==27695==    by 0x19A5E467:
 __pyx_pw_4sage_5rings_9real_mpfr_19create_RealNumber (real_m
 pfr.c:34516)
 ==27695==    by 0x4F3F1A8: call_function (ceval.c:4033)
 ==27695==    by 0x4F3F1A8: PyEval_EvalFrameEx (ceval.c:2679)
 ==27695==    by 0x4F409CC: PyEval_EvalCodeEx (ceval.c:3265)
 ==27695==    by 0x4F40B01: PyEval_EvalCode (ceval.c:667)
 ==27695==    by 0x4F3F6AD: exec_statement (ceval.c:4730)
 ==27695==    by 0x4F3F6AD: PyEval_EvalFrameEx (ceval.c:1881)
 ==27695==    by 0x4F409CC: PyEval_EvalCodeEx (ceval.c:3265)
 ==27695==    by 0x4F3ECA0: fast_function (ceval.c:4129)
 ==27695==    by 0x4F3ECA0: call_function (ceval.c:4054)
 ==27695==    by 0x4F3ECA0: PyEval_EvalFrameEx (ceval.c:2679)
 ==27695==    by 0x4F409CC: PyEval_EvalCodeEx (ceval.c:3265)
 ==27695==    by 0x4F3ECA0: fast_function (ceval.c:4129)
 ==27695==    by 0x4F3ECA0: call_function (ceval.c:4054)
 ==27695==    by 0x4F3ECA0: PyEval_EvalFrameEx (ceval.c:2679)
 ==27695==    by 0x4F409CC: PyEval_EvalCodeEx (ceval.c:3265)
 ==27695==    by 0x4F3ECA0: fast_function (ceval.c:4129)
 ==27695==    by 0x4F3ECA0: call_function (ceval.c:4054)
 ==27695==    by 0x4F3ECA0: PyEval_EvalFrameEx (ceval.c:2679)
 ==27695==    by 0x4F409CC: PyEval_EvalCodeEx (ceval.c:3265)
 ==27695==    by 0x4F3ECA0: fast_function (ceval.c:4129)
 ==27695==    by 0x4F3ECA0: call_function (ceval.c:4054)
 ==27695==    by 0x4F3ECA0: PyEval_EvalFrameEx (ceval.c:2679)
 ==27695==    by 0x4F409CC: PyEval_EvalCodeEx (ceval.c:3265)
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/19363>
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/d/optout.

Reply via email to