Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxima eval using file is broken #19876

Open
vbraun opened this issue Jan 12, 2016 · 0 comments
Open

maxima eval using file is broken #19876

vbraun opened this issue Jan 12, 2016 · 0 comments

Comments

@vbraun
Copy link
Member

vbraun commented Jan 12, 2016

Long inputs break maxima.eval once the eval-using-file threshold is crossed:

sage: maxima.eval('1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1')
'128'
sage: maxima.eval('1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1')
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-35-115dfacfa5ea> in <module>()
----> 1 maxima.eval('1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1')

/home/vbraun/Code/sage.git/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, locals, allow_use_file, split_lines, **kwds)
   1234                 if (split_lines == "nofile" and allow_use_file and
   1235                         self._eval_using_file_cutoff and len(code) > self._eval_using_file_cutoff):
-> 1236                     return self._eval_line_using_file(code)
   1237                 elif split_lines:
   1238                     return '\n'.join([self._eval_line(L, allow_use_file=allow_use_file, **kwds)

/home/vbraun/Code/sage.git/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc in _eval_line_using_file(self, line, restart_if_needed)
    750                 except RuntimeError as msg:
    751                     raise RuntimeError('%s terminated unexpectedly while reading in a large line'%self)
--> 752             if "Input/output error" in msg[0]: # This occurs on non-linux machines
    753                 raise RuntimeError('%s terminated unexpectedly while reading in a large line'%self)
    754             raise RuntimeError('%s terminated unexpectedly while reading in a large line:\n%s'%(self,msg[0]))

IndexError: tuple index out of range

CC: @jdemeyer @EmmanuelCharpentier

Component: interfaces

Issue created by migration from https://trac.sagemath.org/ticket/19876

@vbraun vbraun added this to the sage-7.0 milestone Jan 12, 2016
@mkoeppe mkoeppe removed this from the sage-7.0 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants