#10018: Unhandled SIGSEGV after bnfcertify()
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |       Owner:  jdemeyer                                
                            
       Type:  defect    |      Status:  new                                     
                            
   Priority:  critical  |   Milestone:  sage-4.6                                
                            
  Component:  c_lib     |    Keywords:  segfault segmentation fault allocatemem 
interrupt _sig_on _sig_retry
     Author:            |    Upstream:  N/A                                     
                            
   Reviewer:            |      Merged:                                          
                            
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by jdemeyer):

 Replying to [comment:10 leif]:
 > Ok. I thought of just adding number 5 ({{{talker}}}?) here, mapping it
 to {{{ValueError}}}, which comes nearest (could also be {{{TypeError}}}
 (domain) or {{{RangeError}}} etc.).

 I think it is good that now all errors thrown by PARI are of the type
 {{{PariError}}}.  If you want to raise a different exception, I think it
 should be done by higher-level code, like:

 {{{
 try:
     # do something with PARI
 except PariError, err:
     if err.errnum() == talker:
         raise ValueError
     raise err
 }}}

 (this currently only works with Cython because {{{talker}}} is defined in
 a PARI C header).

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

Reply via email to