#4639: bad memory leak with exponentiation
------------------------------+---------------------------------------------
Reporter: bober | Owner: somebody
Type: defect | Status: new
Priority: blocker | Milestone: sage-3.2.2
Component: basic arithmetic | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Comment (by robertwb):
This is a Cython error, not a coercion error. When something is returned
from within a try block, it appears the (cached) exception is not
released.
{{{
%cython
def foo():
try:
return None
except:
pass
}}}
{{{
%python
def test():
print get_memory_usage()
for i in range(100000):
try:
foo()
raise TypeError
except TypeError:
pass
print get_memory_usage()
}}}
Now {{{test()}}} will leak.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4639#comment:21>
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
-~----------~----~----~----~------~----~------~--~---