#9345: Unhandled SIGFPE in rational_reconstruction if the modulus is zero
-----------------------------------------------+----------------------------
Reporter: lftabera | Owner: AlexGhitza
Type: defect | Status: positive_review
Priority: major | Milestone: sage-4.6.1
Component: algebra | Keywords:
Author: Luis Felipe Tabera Alonso | Upstream: N/A
Reviewer: Minh Van Nguyen, Jeroen Demeyer | Merged:
Work_issues: |
-----------------------------------------------+----------------------------
Changes (by jdemeyer):
* status: needs_review => positive_review
Old description:
> Sage crashes if try to perform a rational_reconstruction with zero
> modulus and compiled fast algorithm
>
> {{{
> sage: rational_reconstruction(1,0)
>
> ------------------------------------------------------------
> Unhandled SIGFPE: An unhandled floating point exception occured in Sage.
> This probably occured because a *compiled* component
> of Sage has a bug in it (typically accessing invalid memory)
> or 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).
> ------------------------------------------------------------
> }}}
>
> '''Apply:'''
>
> 1.
> [http://trac.sagemath.org/sage_trac/attachment/ticket/9345/trac_9345.3.patch
> trac_9345.3.patch]
>
> 2.
> [http://trac.sagemath.org/sage_trac/attachment/ticket/9345/trac-9345
> -sigs-jd-2.patch trac-9345-sigs-jd-2.patch]
New description:
Sage crashes if try to perform a rational_reconstruction with zero modulus
and compiled fast algorithm
{{{
sage: rational_reconstruction(1,0)
------------------------------------------------------------
Unhandled SIGFPE: An unhandled floating point exception occured in Sage.
This probably occured because a *compiled* component
of Sage has a bug in it (typically accessing invalid memory)
or 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).
------------------------------------------------------------
}}}
'''Apply:''' [attachment:trac_9345.3.patch]
--
Comment:
I will move the signals part to #10061, therefore positive review for
[attachment:trac_9345.3.patch]
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9345#comment:12>
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.