#17329: Handle overflow in PARI -> CDF conversion
------------------------------------+------------------------
Reporter: was | Owner:
Type: defect | Status: new
Priority: critical | Milestone: sage-6.4
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+------------------------
Changes (by jdemeyer):
* component: number theory => basic arithmetic
Old description:
> {{{
> /scratch/wstein/sage-6.4.rc1$ ./sage
> ┌────────────────────────────────────────────────────────────────────┐
> │ Sage Version 6.4.rc1, Release Date: 2014-11-01 │
> │ Type "notebook()" for the browser-based notebook interface. │
> │ Type "help()" for help. │
> └────────────────────────────────────────────────────────────────────┘
> ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
> sage: zeta(CDF(-151.386325246 + 992.34771962*I))
> sig_error() without sig_on()
> ------------------------------------------------------------------------
> /scratch/wstein/sage-6.4.rc1/local/lib/libcsage.so(print_backtrace+0x31)[0x7f7cef1656de]
> /scratch/wstein/sage-6.4.rc1/local/lib/libcsage.so(sigdie+0x1e)[0x7f7cef1658d3]
> /scratch/wstein/sage-6.4.rc1/local/lib/libcsage.so(sage_signal_handler+0x192)[0x7f7cef1650d0]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7f7cfb6a7340]
> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39)[0x7f7cfb307bb9]
> /lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f7cfb30afc8]
> /scratch/wstein/sage-6.4.rc1/local/lib/python2.7/site-
> packages/sage/libs/pari/handle_error.so(+0x2046)[0x7f7ce780e046]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpari-
> gmp.so.4(pari_err+0x2e1)[0x7f7cee771161]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpari-
> gmp.so.4(rtodbl+0xb3)[0x7f7cee407553]
> /scratch/wstein/sage-6.4.rc1/local/lib/python2.7/site-
> packages/sage/rings/complex_double.so(+0x1e3ae)[0x7f7ce9c4e3ae]
> /scratch/wstein/sage-6.4.rc1/local/lib/python2.7/site-
> packages/sage/rings/complex_double.so(+0x1912e)[0x7f7ce9c4912e]
> /scratch/wstein/sage-6.4.rc1/local/lib/python2.7/site-
> packages/sage/symbolic/function.so(+0x1a3c6)[0x7f7ccf51a3c6]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7f7cfb907553]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x1d51)[0x7f7cfb9ba761]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f7cfb9bebd2]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x56cb)[0x7f7cfb9be0db]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5585)[0x7f7cfb9bdf95]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5585)[0x7f7cfb9bdf95]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5585)[0x7f7cfb9bdf95]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5585)[0x7f7cfb9bdf95]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5585)[0x7f7cfb9bdf95]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5585)[0x7f7cfb9bdf95]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7f7cfb9bea9d]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f7cfb9bebd2]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0x92)[0x7f7cfb9e81e2]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xd9)[0x7f7cfb9e9729]
> /scratch/wstein/sage-6.4.rc1/local/lib/libpython2.7.so.1.0(Py_Main+0xc7f)[0x7f7cfb9ff61f]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f7cfb2f2ec5]
> python[0x4006fe]
> ------------------------------------------------------------------------
> Attaching gdb to process id 29509.
>
> Saved trace to
> /projects/4cff8798-41d0-4d9b-b516-ba106ba89c57/.sage/crash_logs/sage_crash_Nk1tB0.log
> ------------------------------------------------------------------------
> Unhandled SIGABRT: An abort() occurred in Sage.
> This probably occurred because a *compiled* component of Sage has a bug
> in it and is not properly wrapped with sig_on(), sig_off().
> Sage will now terminate.
> ------------------------------------------------------------------------
> ./sage: line 134: 29509 Aborted (core dumped)
> "$SAGE_ROOT/src/bin/sage" "$@"
> }}}
>
> Observed on both intel and opteron in both sage-6.3 and sage-6.4.rc1.
New description:
{{{
sage: CDF(pari(1e1000))
sig_error() without sig_on()
------------------------------------------------------------------------
Unhandled SIGABRT: An abort() occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Sage will now terminate.
------------------------------------------------------------------------
./sage: line 134: 7790 Aborted "$SAGE_ROOT/src/bin/sage"
"$@"
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/17329#comment:3>
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.