#11521: Memleak when resolving the action of Integers on an Elliptic Curve
------------------------+---------------------------------------------------
Reporter: jpflori | Owner: robertwb
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.8
Component: coercion | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by SimonKing):
With my patch, applied on top of #11900, I get
{{{
sage -t devel/sage-main/sage/structure/parent.pyx # 2 doctests
failed
sage -t devel/sage-main/sage/structure/category_object.pyx # 2
doctests failed
sage -t devel/sage-
main/sage/rings/polynomial/polynomial_singular_interface.py # 1 doctests
failed
sage -t devel/sage-
main/sage/rings/polynomial/multi_polynomial_ring.py # 36 doctests failed
sage -t devel/sage-main/sage/structure/parent_base.pyx # 2
doctests failed
}}}
At least some of the errors are like
{{{
sage: n = 5; Hom(n,7)
Exception raised:
Traceback (most recent call last):
File "/home/simon/SAGE/sage-4.8.alpha3/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/simon/SAGE/sage-4.8.alpha3/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/simon/SAGE/sage-4.8.alpha3/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_3[4]>", line 1, in <module>
n = Integer(5); Hom(n,Integer(7))###line 108:
sage: n = 5; Hom(n,7)
File "/home/simon/SAGE/sage-4.8.alpha3/local/lib/python/site-
packages/sage/categories/homset.py", line 159, in Hom
cache2 = _cache[X]
File
"/home/simon/SAGE/sage-4.8.alpha3/local/lib/python2.6/weakref.py", line
243, in __getitem__
return self.data[ref(key)]
TypeError: cannot create weak reference to
'sage.rings.integer.Integer' object
}}}
and I really don't see why this should be considered a bug.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11521#comment:36>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.