#4110: [with patch, needs review] Memory leak in saving matrices
---------------------+------------------------------------------------------
 Reporter:  rlm      |        Owner:  mabshoff  
     Type:  defect   |       Status:  assigned  
 Priority:  major    |    Milestone:  sage-3.1.3
Component:  memleak  |   Resolution:            
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by mabshoff):

  * status:  new => assigned
  * summary:  Memory leak in saving matrices => [with patch, needs review]
              Memory leak in saving matrices

Comment:

 Before:
 {{{
 ==27766== LEAK SUMMARY:
 ==27766==    definitely lost: 73,004,158 bytes in 10,007 blocks.
 ==27766==    indirectly lost: 5,586,420 bytes in 209,482 blocks.
 ==27766==      possibly lost: 402,505 bytes in 1,011 blocks.
 ==27766==    still reachable: 36,106,357 bytes in 217,055 blocks.
 ==27766==         suppressed: 305,691 bytes in 4,843 blocks.
 }}}
 Specifically:
 {{{
 ==27766== 78,589,900 (73,003,480 direct, 5,586,420 indirect) bytes in
 9,995 blocks are definitely lost in loss record 13,758 of 13,758
 ==27766==    at 0x4A1BDEB: malloc (vg_replace_malloc.c:207)
 ==27766==    by 0x16A44C5E: gdMalloc (gdhelpers.c:85)
 ==27766==    by 0x16A2E130: gdImageCreate (gd.c:83)
 ==27766==    by 0x166C828B:
 __pyx_pf_4sage_6matrix_17matrix_mod2_dense_17Matrix_mod2_dense___reduce__
 (matrix_mod2_dense.c:6925)
 ==27766==    by 0x415832: PyObject_Call (abstract.c:1861)
 ==27766==    by 0x47D750: PyEval_CallObjectWithKeywords (ceval.c:3442)
 ==27766==    by 0x458C0F: object_reduce_ex (typeobject.c:2867)
 ==27766==    by 0x415832: PyObject_Call (abstract.c:1861)
 ==27766==    by 0x7D86723: save (cPickle.c:2498)
 ==27766==    by 0x7D87ECC: batch_list (cPickle.c:1561)
 ==27766==    by 0x7D86C5B: save (cPickle.c:1629)
 ==27766==    by 0x7D88587: cpm_dumps (cPickle.c:2580)
 }}}

 After:
 {{{
 ==29605== LEAK SUMMARY:
 ==29605==    definitely lost: 678 bytes in 12 blocks.
 ==29605==      possibly lost: 369,938 bytes in 975 blocks.
 ==29605==    still reachable: 36,091,754 bytes in 216,569 blocks.
 ==29605==         suppressed: 305,691 bytes in 4,843 blocks.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4110#comment:3>
SAGE <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to