#14711: Weak references in the coercion graph
-------------------------------------+-------------------------------------
Reporter: jpflori | Owner: davidloeffler
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-6.2
Component: number fields | Resolution:
Keywords: memleak, number | Merged in:
field, QuadraticField | Reviewers: Jean-Pierre Flori
Authors: Simon King | Work issues:
Report Upstream: N/A | Commit:
Branch: | d0c26b94039540688eb35e985ebd7b558cec62b1
u/jpflori/ticket/14711 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jpflori):
Minimal example:
{{{
sage: cf6 = CyclotomicField( 6 )
sage: cf12 = CyclotomicField( 12 )
sage: z6 = cf6.0
sage: g = cf12.coerce_map_from(cf6)
sage: g(z6)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-6-cc0ddcad408e> in <module>()
----> 1 g(z6)
/home/jpflori/sage.git/local/lib/python2.7/site-
packages/sage/categories/map.so in sage.categories.map.Map.__call__
(sage/categories/map.c:4982)()
/home/jpflori/sage.git/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field_morphisms.so in
sage.rings.number_field.number_field_morphisms.CyclotomicFieldEmbedding._call_
(sage/rings/number_field/number_field_morphisms.c:6049)()
/home/jpflori/sage.git/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field_element_quadratic.so in
sage.rings.number_field.number_field_element_quadratic.NumberFieldElement_quadratic._lift_cyclotomic_element
(sage/rings/number_field/number_field_element_quadratic.cpp:5613)()
TypeError: an integer is required
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14711#comment:199>
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/groups/opt_out.