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
Fix memoryleak introduced in #11670 #23851
Comments
Author: nbruin, pbruin |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Changed author from nbruin, pbruin to Nils Bruin, Peter Bruin |
Changed branch from u/nbruin/fix_memoryleak_introduced_in__11670 to u/pbruin/23851-memory_leak |
comment:3
Cleaned up the docstrings of |
comment:4
I do not know what is happening with the patchbot. The bug is fixed and I get |
Changed keywords from none to thursdaysbdx |
Reviewer: Sébastien Labbé |
comment:5
I'm getting this on various buildbots:
|
comment:6
With the following change (which is probably a bad idea) I consistently get the same doctest failures as above: --- a/src/sage/rings/polynomial/polynomial_quotient_ring.py
+++ b/src/sage/rings/polynomial/polynomial_quotient_ring.py
@@ -1050,7 +1050,6 @@ class PolynomialQuotientRing_generic(CommutativeRing):
return self(self.polynomial_ring().random_element( \
degree=self.degree()-1, *args, **kwds))
- @cached_method
def _S_decomposition(self, S):
"""
Compute the decomposition of self into a product of number fields. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
The above commit appears to make the computation deterministic again. Let's see if the patchbot agrees. |
comment:10
Replying to @seblabbe:
I confirm that I get the same errors when run alone:
I am sorry, I do not know what happened with my run of
|
comment:11
Why? Can you add a sentence in this paragraph saying why the computatino of |
comment:12
I confirm that the last commit fixes the sage -t of |
comment:19
Do we really want to delete |
comment:20
Replying to @roed314:
One argument for caching a method is when it takes long time to compute which is not the case here:
Is there another reason why |
Changed work issues from fix random doctest failures to none |
comment:23
Replying to @seblabbe:
Your timings, on a quadratic field which is already absolute, aren't particularly convincing that this method is always fast. However, running some other tests on higher degree relative extensions shows that they're quite fast as well. I'll withdraw my objection to removing the
|
comment:24
Merge conflict |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:27
I don't really understand the memory leak. If the original code leaks, isn't that a deeper problem with |
comment:29
Does anybody have an idea? If not, please say so. I'm just asking to know whether it's worth my time to investigate it. |
comment:30
Replying to @jdemeyer:
The leak is caused by the combination of |
This comment has been minimized.
This comment has been minimized.
comment:32
Thanks for the pointer! It all makes sense to me now. |
Changed branch from u/pbruin/23851-memory_leak to |
In #11670 the following leak was introduced:
See Nils's explanation in #23807 comment:14 and the surrounding discussion, where this bug was found.
Component: memleak
Keywords: thursdaysbdx
Author: Nils Bruin, Peter Bruin
Branch/Commit:
b7e1042
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/23851
The text was updated successfully, but these errors were encountered: