#8772: Maxima interface chokes randomly
--------------------------+-------------------------------------------------
   Reporter:  dunfield    |       Owner:  was       
       Type:  defect      |      Status:  new       
   Priority:  critical    |   Milestone:  sage-4.5.3
  Component:  interfaces  |    Keywords:  Maxima    
     Author:              |    Upstream:  N/A       
   Reviewer:              |      Merged:            
Work_issues:              |  
--------------------------+-------------------------------------------------

Comment(by leif):

 I could reproduce Nathan's error with Sage 4.5.3.rc0 on Ubuntu 10.04
 x86_64 (Core2), but only in conjunction with heavy system load:
 {{{
 13943 a - 1
 13944 a - 1
 
13945---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/leif/Sage/sage-4.5.3.rc0/<ipython console> in <module>()

 /home/leif/Sage/sage-4.5.3.rc0/<ipython console> in prob()

 /home/leif/Sage/sage-4.5.3.rc0/local/lib/python2.6/site-
 packages/sage/symbolic/expression.so in
 sage.symbolic.expression.Expression.numerator
 (sage/symbolic/expression.cpp:21226)()

 /home/leif/Sage/sage-4.5.3.rc0/local/lib/python2.6/site-
 packages/sage/symbolic/expression.so in
 sage.symbolic.expression.Expression._maxima_
 (sage/symbolic/expression.cpp:3382)()

 /home/leif/Sage/sage-4.5.3.rc0/local/lib/python2.6/site-
 packages/sage/structure/sage_object.so in
 sage.structure.sage_object.SageObject._interface_
 (sage/structure/sage_object.c:3501)()

 /home/leif/Sage/sage-4.5.3.rc0/local/lib/python2.6/site-
 packages/sage/interfaces/expect.pyc in __call__(self, x, name)
    1030
    1031         if isinstance(x, basestring):
 -> 1032             return cls(self, x, name=name)
    1033         try:
    1034             return self._coerce_from_special_method(x)

 /home/leif/Sage/sage-4.5.3.rc0/local/lib/python2.6/site-
 packages/sage/interfaces/expect.pyc in __init__(self, parent, value,
 is_name, name)
    1449             except (TypeError, KeyboardInterrupt, RuntimeError,
 ValueError), x:
    1450                 self._session_number = -1
 -> 1451                 raise TypeError, x
    1452         self._session_number = parent._session_number
    1453

 TypeError: Error executing code in Maxima
 CODE:
         sage75684 : ((a)+(-1))*((a)^(-1))$
 Maxima ERROR:
          Incorrect syntax: Illegal use of delimiter )
 (%i529800) Incorrect syntax: Premature termination of input at $.
 (%i529801)
  sage:
 }}}
 (I've added {{{print i, }}} to the last line of his example.)

 Doctesting in parallel with 32 threads ({{{ptestlong}}}) btw. gave no
 errors. I'll have to inspect the log of the run with 64 threads, but IIRC
 there was only one "intentional" timeout due to SIGALARM set to 1
 second... (128 threads exceeded my physical memory, i.e. caused massive
 swapping.)

 I couldn't post this earlier either because of trac errors... ;-)

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