#7794: PolynomialRing_integral_domain ignores Ctrl-C and segfaults
-------------------------+--------------------------------------------------
Reporter: SimonKing | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-4.7
Component: algebra | Keywords: Polynomial Ring KeyboardInterrupt
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-------------------------+--------------------------------------------------
Changes (by SimonKing):
* status: new => needs_review
Comment:
I just verified that the problem seems to be fixed in sage-4.6.2.
Firstly, the original example now works sufficiently quickly, so that
there is no need to interrupt the computation:
{{{
sage: F.<a> = FiniteField(3)
sage: P.<T> = PolynomialRing(F)
sage: PP.<z> = PolynomialRing(P)
sage: PP
Univariate Polynomial Ring in z over Univariate Polynomial Ring in T over
Finite Field of size 3
sage: type(PP)
<class
'sage.rings.polynomial.polynomial_ring.PolynomialRing_integral_domain'>
sage: (z^3 + T*z)^(81*3)
z^729 + T^243*z^243
}}}
Secondly, if one tries the same thing with a higher exponent, hitting
Ctrl-c works (or at least it does after several attempts):
{{{
sage: (z^3 + T*z)^(81^3)
^C^C^C---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call
last)
/home/king/<ipython console> in <module>()
/mnt/local/king/SAGE/broken/local/lib/python2.6/site-
packages/sage/rings/polynomial/polynomial_element.so in
sage.rings.polynomial.polynomial_element.Polynomial.__pow__
(sage/rings/polynomial/polynomial_element.c:12738)()
/mnt/local/king/SAGE/broken/local/lib/python2.6/site-
packages/sage/structure/element.so in sage.structure.element.generic_power
(sage/structure/element.c:20326)()
...
<LONG TRACEBACK>
...
/mnt/local/king/SAGE/broken/local/lib/python2.6/site-
packages/sage/interfaces/get_sigs.pyc in my_sigint(x, n)
7
8 def my_sigint(x, n):
----> 9 raise KeyboardInterrupt
10
11 def my_sigfpe(x, n):
KeyboardInterrupt:
}}}
So, I believe this ticket can be closed! If I am not mistaken, I first
need to put it as "needs review"...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7794#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.