#14058: Weakly reference binary operation codomains
-------------------------------------+-------------------------------------
Reporter: robertwb | Owner: rlm
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: memleak | Resolution:
Keywords: | Merged in:
Authors: Robert Bradshaw | Reviewers: Simon King
Report Upstream: N/A | Work issues: Fix doctests
Branch: | Commit:
u/SimonKing/weakly_reference_binary_operation_codomains|
b9141eef1042c8b8fb1179b30844d5bdb737b96e
Dependencies: #12313 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Details:
{{{
sage -t src/sage/libs/singular/function.pyx
**********************************************************************
File "src/sage/libs/singular/function.pyx", line 413, in
sage.libs.singular.function.is_singular_poly_wrapper
Failed example:
H.<x,y,z> = A.g_algebra({z*x:x*z+2*x, z*y:y*z-2*y})
Expected nothing
Got:
Exception KeyError: (The ring pointer 0x7f7c7470c8d0,) in
'sage.libs.singular.ring.singular_ring_delete' ignored
**********************************************************************
File "src/sage/libs/singular/function.pyx", line 1250, in
sage.libs.singular.function.SingularFunction.__call__
Failed example:
I = Ideal(I.groebner_basis())
Expected nothing
Got:
Exception KeyError: (The ring pointer 0x7f7c7470ca40,) in
'sage.libs.singular.ring.singular_ring_delete' ignored
**********************************************************************
}}}
--> It seems that the cache became too weak. All errors in Here is a
branch. All errors in `sage -t src/sage/rings/polynomial/plural.pyx` and
`sage -t src/sage/algebras/commutative_dga.py` are of that form.
{{{
sage -t src/sage/structure/coerce.pyx
**********************************************************************
File "src/sage/structure/coerce.pyx", line 418, in
sage.structure.coerce.CoercionModel_cache_maps.get_cache
Failed example:
print copy(left_morphism_ref())
Exception raised:
Traceback (most recent call last):
File "/home/king/Sage/git/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/king/Sage/git/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.structure.coerce.CoercionModel_cache_maps.get_cache[4]>", line 1, in
<module>
print copy(left_morphism_ref())
NameError: name 'left_morphism_ref' is not defined
**********************************************************************
File "src/sage/structure/coerce.pyx", line 422, in
sage.structure.coerce.CoercionModel_cache_maps.get_cache
Failed example:
print right_morphism_ref
Exception raised:
Traceback (most recent call last):
File "/home/king/Sage/git/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/king/Sage/git/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.structure.coerce.CoercionModel_cache_maps.get_cache[5]>", line 1, in
<module>
print right_morphism_ref
NameError: name 'right_morphism_ref' is not defined
**********************************************************************
}}}
--> I got something wrong in my merge.
So, we actually just have two errors.
--
Ticket URL: <http://trac.sagemath.org/ticket/14058#comment:37>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.