#14371: Race condition in singular doctest
------------------------------------------------+---------------------------
       Reporter:  jdemeyer                      |         Owner:  mvngu       
           Type:  defect                        |        Status:  needs_review
       Priority:  blocker                       |     Milestone:  sage-5.9    
      Component:  doctest coverage              |    Resolution:              
       Keywords:                                |   Work issues:              
Report Upstream:  N/A                           |     Reviewers:              
        Authors:  Jeroen Demeyer, Volker Braun  |     Merged in:              
   Dependencies:                                |      Stopgaps:              
------------------------------------------------+---------------------------
Description changed by jdemeyer:

Old description:

> On hawk (!OpenSolaris), after applying [attachment:14371:traceback.patch]
> to get a useful traceback:
> {{{
> sage -t devel/sage/sage/interfaces/expect.py
> **********************************************************************
> File "devel/sage/sage/interfaces/expect.py", line 1089, in
> sage.interfaces.expect.Expect._crash_msg
> Failed example:
>     singular('2+3')
> Exception raised:
>     Traceback (most recent call last):
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/doctest/forker.py", line 466, in _run
>         self.execute(example, compiled, test.globs)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/doctest/forker.py", line 825, in execute
>         exec compiled in globs
>       File "<doctest sage.interfaces.expect.Expect._crash_msg[4]>", line
> 1, in <module>
>         singular('2+3')
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/singular.py", line 724, in __call__
>         return SingularElement(self, type, x, False)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/singular.py", line 1184, in __init_
> _
>         self._name = parent._create( value, type)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/singular.py", line 685, in _create
>         self.set(type, name, value)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/singular.py", line 626, in set
>         out = self.eval(cmd)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/singular.py", line 580, in eval
>         s = Expect.eval(self, x, **kwds)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/expect.py", line 1197, in eval
>         for L in code.split('\n') if L != ''])
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/sage/interfaces/expect.py", line 818, in _eval_line
>         E.sendline(line)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/pexpect.py", line 677, in sendline
>         n = n + self.send (os.linesep)
>       File
> "/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
> /site-packages/pexpect.py", line 669, in send
>         c = os.write(self.child_fd, str)
>     TypeError: [Errno 22] Invalid argument
>     Error evaluating def sage51=2+3; in Singular
> **********************************************************************
> }}}

New description:

 On hawk (!OpenSolaris), after applying [attachment:14371_traceback.patch]
 to get a useful traceback:
 {{{
 sage -t devel/sage/sage/interfaces/expect.py
 **********************************************************************
 File "devel/sage/sage/interfaces/expect.py", line 1089, in
 sage.interfaces.expect.Expect._crash_msg
 Failed example:
     singular('2+3')
 Exception raised:
     Traceback (most recent call last):
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/doctest/forker.py", line 466, in _run
         self.execute(example, compiled, test.globs)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/doctest/forker.py", line 825, in execute
         exec compiled in globs
       File "<doctest sage.interfaces.expect.Expect._crash_msg[4]>", line
 1, in <module>
         singular('2+3')
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/singular.py", line 724, in __call__
         return SingularElement(self, type, x, False)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/singular.py", line 1184, in __init_
 _
         self._name = parent._create( value, type)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/singular.py", line 685, in _create
         self.set(type, name, value)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/singular.py", line 626, in set
         out = self.eval(cmd)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/singular.py", line 580, in eval
         s = Expect.eval(self, x, **kwds)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/expect.py", line 1197, in eval
         for L in code.split('\n') if L != ''])
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/sage/interfaces/expect.py", line 818, in _eval_line
         E.sendline(line)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/pexpect.py", line 677, in sendline
         n = n + self.send (os.linesep)
       File
 
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-5.9.beta4/local/lib/python2.7
 /site-packages/pexpect.py", line 669, in send
         c = os.write(self.child_fd, str)
     TypeError: [Errno 22] Invalid argument
     Error evaluating def sage51=2+3; in Singular
 **********************************************************************
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14371#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to