#17686: pexpect interfaces don't close logfile
------------------------------+------------------------
       Reporter:  alexc       |        Owner:
           Type:  defect      |       Status:  new
       Priority:  major       |    Milestone:  sage-6.5
      Component:  interfaces  |   Resolution:
       Keywords:              |    Merged in:
        Authors:              |    Reviewers:
Report Upstream:  N/A         |  Work issues:
         Branch:              |       Commit:
   Dependencies:              |     Stopgaps:
------------------------------+------------------------
Changes (by jdemeyer):

 * component:  number theory => interfaces


Old description:

> I get the following error after a runtime of several minutes. If I change
> parts of my code, the error occurs in different places. Running just
> snippets of the code does not produce the error. I'm running sage 6.4 on
> a fresh installation of Ubuntu 14.04 64bit on a fairly powerful computer.
>
> The only previous mention of this error that I could find is
> http://trac.sagemath.org/ticket/9866.
>
> Can anyone suggest workarounds?
>
> Let me know what additional information I can provide to help.
>
> {{{
> Traceback (most recent call last):
>   File "RHS.py", line 275, in DokchitserDirichlet
>     L.init_coeffs('chi(k)', 1, 'conj(chi(k))', pari_precode=pari_precode)
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/lfunctions/dokchitser.py", line 340, in init_coeffs
>     gp = self.gp()
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/lfunctions/dokchitser.py", line 225, in gp
>     g.read('computel.gp')
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/interfaces/expect.py", line 634, in read
>     self.eval(self._read_in_file_command(filename))
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/interfaces/expect.py", line 1223, in eval
>     for L in code.split('\n') if L != ''])
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/interfaces/gp.py", line 400, in _eval_line
>     wait_for_prompt=wait_for_prompt)
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/interfaces/expect.py", line 817, in _eval_line
>     self._start()
>   File "/home/blatm/sage/sage-6.4.1-x86_64-Linux1404/local/lib/python2.7
> /site-packages/sage/interfaces/expect.py", line 432, in _start
>     self.name(), cmd, self._install_hints()))
> RuntimeError: unable to start pari because the command 'gp --emacs
> --quiet --stacksize 10000000' failed
>
> Exception RuntimeError: RuntimeError('sys.path must be a list of
> directory names',) in <bound method Dokchitser.__del__ of Dokchitser
> L-series of conductor 7 and weight 1> ignored
> }}}

New description:

 This crashes because the `Dokchitser` instances do not close the logfile:
 {{{
 sage: for i in range(2000):
 ....:     D = Dokchitser(conductor=1, gammaV=[0], weight=1, eps=1,
 poles=[1], residues=[-1], init='1')
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17686#comment:4>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to