New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memleak in singular.pyx #11468
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to libsingular |
comment:2
Calling gc.collect() just after the creation prevents the memory problem. But it does not if called later. |
This comment has been minimized.
This comment has been minimized.
comment:4
I finally found the memleaks in different si2sa_* functions. Potential fix provided. |
Author: Jean-Pierre Flori |
This comment has been minimized.
This comment has been minimized.
comment:8
The patch does not seem to fix the reported problem. I applied the patch to sage-4.7.1.alpha2, did 'sage -b', yet I still see memory |
comment:9
I just retested it and it seems to fix the memleak for me: no increase in memory footprint after 30 minutes. Which code did you run ? The one in the tickect description or the one on sage-support post ? Because there are other memleaks involved when using EllipticCurve class. |
comment:10
Replying to @jpflori:
I used the code in the ticket description. I will try again. |
Reviewer: Mariah Lenox |
comment:11
I must have forgotten to do 'sage -b' when I tried before. Apologies This time when I applied the patch (and did 'sage -b') the code in the Positive review! |
comment:12
The commit message
looks a bit odd... Also, if you change the "copyright" message, at least make it such that it looks like http://sagemath.org/doc/developer/conventions.html#headings-of-sage-library-code-files |
Attachment: trac_11468-memleaks_singular.patch.gz New version with correct commit message and copyright. |
comment:14
Just apply: trac_11468-memleaks_singular.patch |
comment:15
This patch looks good to me. I don't get a leak with either the example or the code I was running that lead me to this ticket, and the changes that the patch makes seem simple and sensible. |
Changed reviewer from Mariah Lenox to Mariah Lenox, Jonathan Bober |
Merged: sage-4.7.2.alpha1 |
Using the following piece of code makes the memory footprint of sage
grow indefinitely:
The memleak happens when different si2sa_* functions are called.
See http://groups.google.com/group/sage-support/browse_thread/thread/9a8e887df34a8e9a for further discussion.
CC: @jpflori @burcin
Component: memleak
Keywords: libsingular
Author: Jean-Pierre Flori
Reviewer: Mariah Lenox, Jonathan Bober
Merged: sage-4.7.2.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/11468
The text was updated successfully, but these errors were encountered: