#12313: Fix yet another memory leak caused by caching of coercion data
-------------------------------------------------+--------------------------
Reporter: SimonKing | Owner: rlm
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: memleak | Resolution:
Keywords: coercion weak dictionary | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Simon King, Jean-Pierre Flori | Merged in:
Dependencies: #715, #11599 | Stopgaps:
-------------------------------------------------+--------------------------
Comment (by defeo):
I think the problem is independent from these tickets.
I added these two lines in a clean sage 4.7.2 tree:
{{{
--- a/sage/structure/coerce_dict.pyx
+++ b/sage/structure/coerce_dict.pyx
@@ -35,7 +35,9 @@
-
+
+ sage: list(sorted([('a', 1), (-15,3), ('ab', 2)]))
+ [(-15, 3), ('a', 1), ('ab', 2)]
}}}
and run a `make ptest`. It failed with error:
{{{
File "/home/defeo/sage-4.7.2/devel/sage-
main/sage/structure/coerce_dict.pyx", li
ne 39:
sage: list(sorted([('a', 1), (-15,3), ('ab', 2)]))
Expected:
[(-15, 3), ('a', 1), ('ab', 2)]
Got:
[('a', 1), ('ab', 2), (-15, 3)]
}}}
I think some doctest hidden in some file tested before `coerce_dict.pyx`
may be redefining `sorted`. If this bug is confirmed in newer releases, we
should make a separate ticket.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12313#comment:43>
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.