Zachary Ware added the comment: Still an issue in 2.7.10rc0+. Here's a couple different reproducers that come closer to the heart of the matter:
""" >>> import os [43913 refs] >>> os.close(1) [43913 refs] >>> input() 1 [43915 refs] <crash> """ """ >>> import os [43913 refs] >>> f = file('test', 'wb') [43921 refs] >>> os.close(f.fileno()) [43921 refs] >>> f.flush() [43921 refs] >>> f.write('test') [43921 refs] >>> f.flush() <crash> """ The problem appears to be calling fflush on a pointer to a closed file. In the first reproducer, this happens in myreadline.c, the second in fileobject.c. I was interested enough to track it down; I'm not motivated enough to fix it since it appears to be broken only in 2.7. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19050> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com