#6391: libGAP!  -- create a Cython library interface to gap
---------------------------+------------------------------------------------
   Reporter:  was          |       Owner:  was       
       Type:  enhancement  |      Status:  new       
   Priority:  major        |   Milestone:  sage-4.6.2
  Component:  interfaces   |    Keywords:            
     Author:               |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by dimpase):

 Replying to [comment:23 was]:
 > Replying to [comment:22 dimpase]:

 > > in the class GapElement, _div_ and other member functions can
 potentially fail (as demonstrated in the comment "This log pretty much
 explains what/why/what next:..." above), e.g. due to division by 0. It is
 meant that the corresponding checks are to be implemented in these member
 functions? I guess not, it's rather a matter of properly catching the
 corresponding GAP interrupts, right?
 > >
 >
 > Yes.  I don't know if GAP uses "interrupts" though.  You are basically
 above asking: "Here is a problem nobody has solved yet, which is why
 libgap hasn't moved forward.  What is the solution?"
 >

 From printing contents of the GAP interpreter output_buffer (introduced in
 the patch of GAP's scanner.c), I see that during the fatal
 a._div_(g.libgap('0'))_ it starts getting the contents of the usual GAP
 error message, like Entering break read-eval-print loop (i.e. it does a
 "GAP interrupt"). And then the crash happens in the Python interpreter. So
 I suppose more reverse engineering/understanding of the GAP interpreter is
 needed here, in order to avoid replicating it in Python...

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