#9345: Unhandled SIGFPE in rational_reconstruction if the modulus is zero
-----------------------------------------+----------------------------------
   Reporter:  lftabera                   |       Owner:  AlexGhitza  
       Type:  defect                     |      Status:  needs_review
   Priority:  major                      |   Milestone:  sage-4.5.3  
  Component:  algebra                    |    Keywords:              
     Author:  Luis Felipe Tabera Alonso  |    Upstream:  N/A         
   Reviewer:  Minh Van Nguyen            |      Merged:              
Work_issues:                             |  
-----------------------------------------+----------------------------------
Changes (by lftabera):

  * status:  needs_work => needs_review


Comment:

 Well, there was a similar problem in #9357 and I got this answer to the
 question of _sig_onm, _sig_off

 http://groups.google.com/group/sage-
 devel/browse_thread/thread/e8317365bfe9e6e8/2a4148024500dfd2

 Note that if the exception is controlled by _sig, it will raise a
 RuntimeError instead of ZeroDivisionError. Moreover, with the patch I
 provided, all ocurrences of being zero are catched and never reaches the C
 functions.

 Anyway, I have written a second patch that add the _sig_on, _sig_off to
 the problematic functions, so if they have to be added, apply the
 following patches (in order):

 trac_9345.3.patch
 trac-9345-sigs.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9345#comment:7>
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.

Reply via email to