Hi folks, The following piece of code seems to leak a lot of memory (with/without the statement 'del X') during long runs of computation:
while true: X = SupersingularModule(p) X.hecke_matrix(2) del X p = ZZ(p).next_prime() To pin down the souce of leakage, I incorporated the below code http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65333 into mine http://sage.math.washington.edu/home/burhanud/leak/leak.py [1] When I run load leak.py at the sage prompt, I get the following output ad infinitum: http://sage.math.washington.edu/home/burhanud/leak/dump.txt Are _PolynomialRing_general, _FiniteField_ext_pariElement leaking memory? [2] When I run nohup sage <leak.py> tmp.txt & from the shell prompt, sage exits in a few milliseconds due to an Indentation Error exception. http://sage.math.washington.edu/home/burhanud/leak/tmp.txt Why does the leak.py run perfectly from the sage prompt but not from the shell? Preparsing issue? Regards, Ifti --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---