#13211: Upgrade GAP to 4.5.6
-----------------------------------------------------------+----------------
       Reporter:  kini                                     |         Owner:  
tbd              
           Type:  enhancement                              |        Status:  
needs_info       
       Priority:  major                                    |     Milestone:  
sage-5.5         
      Component:  packages                                 |    Resolution:     
              
       Keywords:                                           |   Work issues:     
              
Report Upstream:  Completely fixed; Fix reported upstream  |     Reviewers:  
Dmitrii Pasechnik
        Authors:  Volker Braun                             |     Merged in:     
              
   Dependencies:  #13123, #13579                           |      Stopgaps:     
              
-----------------------------------------------------------+----------------

Comment (by jdemeyer):

 There is a potential infinite loop with `_eval_line` in `gap.py`: when it
 crashes, it keeps trying again over and over:
 {{{
     def _eval_line(self, line, allow_use_file=True, wait_for_prompt=True,
 restart_if_needed=True):
         [...]
         try:
             [...]
         except (RuntimeError,TypeError),message:
             if 'EOF' in message[0] or E is None or not E.isalive():
                 print "** %s crashed or quit executing '%s' **"%(self,
 line)
                 print "Restarting %s and trying again"%self
                 self._start()
                 if line != '':
                     return self._eval_line(line,
 allow_use_file=allow_use_file)
                 else:
                     return ''
             else:
                 raise RuntimeError, message
 }}}

 Is this intentional? Probably the number of retries should be limited.

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