#10161: AlgebraicNumber comparisons wrong/fail
-----------------------------+----------------------------------------------
Reporter: vbraun | Owner: was
Type: defect | Status: new
Priority: major | Milestone:
Component: number theory | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by spice):
Now with segfaults! Retested on Sage 4.6.2; got some strange
inconsistencies with ._cmp_() on Integer vs. Rational, and a segfault when
trying to compare either to a AlgebraicNumber:
{{{
sage: x = Integer(1)
sage: y = Rational(1,1)
sage: z = AlgebraicNumber(1)
sage: (x==y, x==z, y==z)
(True, True, True)
sage: (x._cmp_(y), y._cmp_(x))
(0, 1)
sage: x._cmp_(z)
------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component
of Sage has a bug in it (typically accessing invalid memory)
and is not properly wrapped with sig_on(), sig_off().
You might want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate (sorry).
------------------------------------------------------------
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10161#comment:1>
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.