#17470: Let exponentiation of polynomial using FLINT nmod type be interrupted
-------------------------------------+-------------------------------------
Reporter: jpflori | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.5
Component: finite rings | Resolution:
Keywords: | Merged in:
Authors: Jean-Pierre Flori | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jpflori/ticket/17470 | 12539c99d347b1747b33e4a2b3f3258ed40789d8
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_work
Comment:
I get
{{{
sage -t --long src/sage/libs/flint/nmod_poly_linkage.pxi
**********************************************************************
File "src/sage/libs/flint/nmod_poly_linkage.pxi", line 498, in
sage.libs.flint.nmod_poly_linkage.celement_pow
Failed example:
alarm(1); x^n
Expected:
Traceback (most recent call last):
...
AlarmInterrupt
Got:
Exception (FLINT memory_manager). Unable to allocate memory.
Traceback (most recent call last):
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 488, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 851, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.libs.flint.nmod_poly_linkage.celement_pow[20]>",
line 1, in <module>
alarm(Integer(1)); x**n
File "sage/rings/polynomial/polynomial_template.pxi", line 625, in
sage.rings.polynomial.polynomial_zmod_flint.Polynomial_template.__pow__
(build/cythonized/sage/rings/polynomial/polynomial_zmod_flint.cpp:10790)
File "sage/libs/flint/nmod_poly_linkage.pxi", line 508, in
sage.rings.polynomial.polynomial_zmod_flint.celement_pow
(build/cythonized/sage/rings/polynomial/polynomial_zmod_flint.cpp:4815)
File "sage/ext/c_lib.pyx", line 85, in
sage.ext.c_lib.sig_raise_exception (build/cythonized/sage/ext/c_lib.c:971)
RuntimeError: Aborted
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17470#comment:11>
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/d/optout.