#9865: Unable to start singular because the command 'Singular -t --ticks-per-sec
1000' failed
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  mvngu                      
       Type:  defect   |      Status:  new                        
   Priority:  blocker  |   Milestone:  sage-4.6                   
  Component:  doctest  |    Keywords:  pexpect EOF crash exception
     Author:           |    Upstream:  N/A                        
   Reviewer:           |      Merged:                             
Work_issues:           |  
-----------------------+----------------------------------------------------
Changes (by leif):

 * cc: AlexanderDreyer (added)
  * keywords:  => pexpect EOF crash exception


Comment:

 Replying to [comment:8 leif]:
 > lol, I've just built Sage 4.5.3 on the (single-core) Pentium 4 with 768
 MB RAM, and it seems I now get doctest errors due to Singular crashing
 while running {{{ptestlong}}} with two threads...
 >
 > More to come; the test is still running.

 2 threads were perhaps too much for that old machine (CPU, not RAM),
 though ''the build'' went fine with three jobs.

 As reported by me on sage-release, {{{ptestlong}}} gave one timeout and
 two doctest failures due to Singular having "crashed" (plus two
 {{{NameError}}}s as a result of that):
 {{{
 sage -t  -long
 devel/sage/sage/rings/polynomial/multi_polynomial_element.py
 **********************************************************************
 File "/home/leif/Sage/sage-4.5.3/devel/sage-
 main/sage/rings/polynomial/multi_polynomial_element.py", line 1513:
     sage: M = f.lift(I)
 Exception raised:
     Traceback (most recent call last):
       File "/home/leif/Sage/sage-4.5.3/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/leif/Sage/sage-4.5.3/local/bin/sagedoctest.py", line 38,
 in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/leif/Sage/sage-4.5.3/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_49[5]>", line 1, in <module>
         M = f.lift(I)###line 1513:
     sage: M = f.lift(I)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/rings/polynomial/multi_polynomial_element.py", line 1519, in
 lift
         fs = self._singular_()
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/rings/polynomial/polynomial_singular_interface.py", line
 347, in _singular_
         return _singular_func(self, singular, have_ring)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/rings/polynomial/polynomial_singular_interface.py", line
 391, in _singular_func
         self.parent()._singular_(singular).set_ring() #this is expensive
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/rings/polynomial/polynomial_singular_interface.py", line
 195, in _singular_
         return self._singular_init_(singular)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/rings/polynomial/polynomial_singular_interface.py", line
 236, in _singular_init_
         self.__singular = singular.ring("(complex,%d,0,I)"%digits, _vars,
 order=order, check=False)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/singular.py", line 890, in ring
         self.eval(s)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/singular.py", line 546, in eval
         s = Expect.eval(self, x, **kwds)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/expect.py", line 983, in eval
         return '\n'.join([self._eval_line(L, **kwds) for L in
 code.split('\n') if L != ''])
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/expect.py", line 637, in _eval_line
         self._start()
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/singular.py", line 377, in _start
         self.lib('general')   # assumed loaded by misc/constants.py
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/singular.py", line 703, in lib
         self.eval('LIB "%s"'%lib)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/singular.py", line 546, in eval
         s = Expect.eval(self, x, **kwds)
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/expect.py", line 983, in eval
         return '\n'.join([self._eval_line(L, **kwds) for L in
 code.split('\n') if L != ''])
       File "/home/leif/Sage/sage-4.5.3/local/lib/python/site-
 packages/sage/interfaces/expect.py", line 668, in _eval_line
         raise RuntimeError, "%s\n%s crashed executing %s"%(msg,self, line)
     RuntimeError: End Of File (EOF) in read_nonblocking(). Exception style
 platform.
     <pexpect.spawn instance at 0xaf32c0c>
     version: 2.0 ($Revision: 1.151 $)
     command: /home/leif/Sage/sage-4.5.3/local/bin/Singular
     args: ['/home/leif/Sage/sage-4.5.3/local/bin/Singular', '-t',
 '--ticks-per-sec', '1000']
     patterns:

     >
     buffer (last 100 chars):
     before (last 100 chars): mmand(a), continue(c) or quit Singular(q)
 ?fatal flex scanner internal error--end of buffer missed


     after: <class 'pexpect.EOF'>
     match: None
     match_index: None
     exitstatus: None
     flag_eof: 1
     pid: 26203
     child_fd: 4
     timeout: None
     delimiter: <class 'pexpect.EOF'>
     logfile: None
     maxread: 1000
     searchwindowsize: None
     delaybeforesend: 0
     Singular crashed executing LIB "general.lib";
 **********************************************************************
 File "/home/leif/Sage/sage-4.5.3/devel/sage-
 main/sage/rings/polynomial/multi_polynomial_element.py", line 1514:
     sage: M
 Exception raised:
     Traceback (most recent call last):
       File "/home/leif/Sage/sage-4.5.3/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/leif/Sage/sage-4.5.3/local/bin/sagedoctest.py", line 38,
 in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/leif/Sage/sage-4.5.3/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_49[6]>", line 1, in <module>
         M###line 1514:
     sage: M
     NameError: name 'M' is not defined
 **********************************************************************
 File "/home/leif/Sage/sage-4.5.3/devel/sage-
 main/sage/rings/polynomial/multi_polynomial_element.py", line 1516:
     sage: sum( map( mul , zip( M, I.gens() ) ) ) == f
 Exception raised:
     Traceback (most recent call last):
       File "/home/leif/Sage/sage-4.5.3/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/leif/Sage/sage-4.5.3/local/bin/sagedoctest.py", line 38,
 in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/leif/Sage/sage-4.5.3/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_49[7]>", line 1, in <module>
         sum( map( mul , zip( M, I.gens() ) ) ) == f###line 1516:
     sage: sum( map( mul , zip( M, I.gens() ) ) ) == f
     NameError: name 'M' is not defined
 **********************************************************************
 File "/home/leif/Sage/sage-4.5.3/devel/sage-
 main/sage/rings/polynomial/multi_polynomial_element.py", line 1570:
     sage: f.quo_rem(x)
 Expected:
     (x*y + 1.00000000000000, 1.00000000000000)
 Got:
     Singular crashed -- automatically restarting.
     (x*y + 1.00000000000000, 1.00000000000000)
 **********************************************************************
 2 items had failures:
    3 of   8 in __main__.example_49
    1 of   5 in __main__.example_51
 ***Test Failed*** 4 failures.
 For whitespace errors, see the file
 /home/leif/.sage//tmp/.doctest_multi_polynomial_element.py
      [45.9 s]
 }}}

 It's not that clear if the error is caused by Singular, pexpect or Sage's
 Singular interface (or even the operating system, Ubuntu 7.10, kernel
 2.6.22-16-generic).

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