[pypy-issue] [issue1098] sys.stdout.close() from interactive session crashes pypy and messes up terminal
tracker at bugs.pypy.org
Sun Mar 25 01:51:22 CET 2012
New submission from hm <hacman0 at gmail.com>:
Those last few $s are the result of hitting return a few times after pypy has quit. The terminal does not seem to want to print newlines anymore.
This happened on a Mac using the standard terminal program, but I have observed the same behavior in using iterm and on linux as well (the crash and
the lack of newlines, although this is from an ssh session initiated on the same mac--I can check from a proper linux box at some point as well).
Python 2.7.2 (2346207d99463f299f09f3e151c9d5fa9158f71b, Feb 20 2012, 04:52:48)
[PyPy 1.8.0] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``ECOOP is happening''
>>>> import sys
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "/opt/local/lib/pypy/lib_pypy/_pypy_interact.py", line 40, in
File "/opt/local/lib/pypy/lib_pypy/pyrepl/simple_interact.py", line 58, in
File "/opt/local/lib/pypy/lib_pypy/pyrepl/readline.py", line 210, in multiline_input
File "/opt/local/lib/pypy/lib_pypy/pyrepl/reader.py", line 594, in readline
"/opt/local/lib/pypy/lib_pypy/pyrepl/reader.py", line 494, in restore
"/opt/local/lib/pypy/lib_pypy/pyrepl/unix_console.py", line 396, in restore
File "/opt/local/lib/pypy/lib_pypy/pyrepl/unix_console.py", line 497, in flushoutput
File "/opt/local/lib/pypy/lib_pypy/pyrepl/unix_console.py", line 515, in __tputs
OSError: [Errno 9] Bad
$ $ $ $
nosy: hacman, pypy-issue
title: sys.stdout.close() from interactive session crashes pypy and messes up terminal
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue