#7152: Segmentation fault with monomials()
-----------------------+----------------------------------------------------
Reporter: mraum | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.3
Component: algebra | Keywords: monomials, multivariate polynomial ring,
coercion
Work_issues: | Author:
Reviewer: | Merged:
-----------------------+----------------------------------------------------
Using implicite coercion and then calling monomials might cause a
segmentation fault. This is a side effect.
{{{
K.<rho> = NumberField(x**2 + 1)
R.<x,y> = QQ[]
p = rho*x
q = x
p.monomials()
...
q.monomials()
...
p.monomials()
Segmentation Fault
}}}
Going back to line 5 you can avoid this by
{{{
p.parent()(p).monomials()
...
q.parent()(q).monomials()
...
p.parent()(p).monomials()
...
}}}
This might be used as a workaround.
If no implicite coercion is involved, everything works fine, i.e. use
{{{
R.<x,y> = K[]
}}}
This is most probably related to #6160.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7152>
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
-~----------~----~----~----~------~----~------~--~---