#7794: PolynomialRing_integral_domain ignores Ctrl-C and segfaults
--------------------------+-------------------------------------------------
Reporter: SimonKing | Owner: AlexGhitza
Type: defect | Status: positive_review
Priority: critical | Milestone: sage-4.7.1
Component: algebra | Keywords: Polynomial Ring KeyboardInterrupt
Work_issues: | Upstream: N/A
Reviewer: Simon King | Author: Jeroen Demeyer
Merged: | Dependencies:
--------------------------+-------------------------------------------------
Comment(by jdemeyer):
I have tracked the {{{Exception KeyboardInterrupt... ignored}}} problem
down to the following Cython-generated code in
{{{sage/rings/polynomial/polynomial_zmod_flint.c}}}:
{{{
static void
__pyx_tp_dealloc_4sage_5rings_10polynomial_21polynomial_zmod_flint_Polynomial_template(PyObject
*o) {
{
PyObject *etype, *eval, *etb;
PyErr_Fetch(&etype, &eval, &etb);
++Py_REFCNT(o);
__pyx_pf_4sage_5rings_10polynomial_21polynomial_zmod_flint_19Polynomial_template_3__dealloc__(o);
if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
--Py_REFCNT(o);
PyErr_Restore(etype, eval, etb);
}
__pyx_ptype_4sage_5rings_10polynomial_18polynomial_element_Polynomial->tp_dealloc(o);
}
}}}
The problem is the line
{{{
if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
}}}
Since this code is generated by Cython, perhaps it is not possible to
solve this problem without patching Cython.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7794#comment:24>
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.