[issue19050] crash while writing to a closed file descriptor

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: On sudden inspiration, here's an even simpler reproducer: """ >>> import os [43913 refs] >>> os.close(2) """ -- ___ Python tracker ___ _

[issue19050] crash while writing to a closed file descriptor

2015-04-11 Thread Zachary Ware
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] """ """ >>> import os [43913 refs] >>> f = file('test', 'wb'

[issue19050] crash while writing to a closed file descriptor

2015-02-15 Thread STINNER Victor
STINNER Victor added the comment: > I'm sorry, I can't try this myself as I no longer run 2.7. You should install Python 2.7 if you want to work on Python 2.7 only issue. It's not so hard to install Python, especially on Windows (this issue looks to be specific to Windows). -- __

[issue19050] crash while writing to a closed file descriptor

2015-02-15 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19050] crash while writing to a closed file descriptor

2015-02-14 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still an issue with later versions of 2.7? I'm sorry, I can't try this myself as I no longer run 2.7. -- nosy: +BreamoreBoy, steve.dower, zach.ware ___ Python tracker

[issue19050] crash while writing to a closed file descriptor

2013-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19050] crash while writing to a closed file descriptor

2013-09-21 Thread Tim Peters
Tim Peters added the comment: Here with 2.7.5 on Windows (Vista): C:\Python27>python.exe Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import io, sys >>> fd = io.open(sys.stdout.filen

[issue19050] crash while writing to a closed file descriptor

2013-09-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19050] crash while writing to a closed file descriptor

2013-09-21 Thread Tim Golden
Tim Golden added the comment: I can confirm that 2.7.2 hard-crashes as described on Windows. I'm not sure if I have the wherewithal to build 2.7 on this laptop to see if it's fixed in tip. 3.3 simply raises an IOError. -- ___ Python tracker

[issue19050] crash while writing to a closed file descriptor

2013-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't get a crash under Linux. Perhaps this is a Windows-specific thing. -- components: +Interpreter Core, Windows -Library (Lib) nosy: +brian.curtin, pitrou, tim.golden, tim.peters ___ Python tracker

[issue19050] crash while writing to a closed file descriptor

2013-09-19 Thread Daniel Rohlfing
Daniel Rohlfing added the comment: the correct snippet is: > fd = io.open(sys.stdout.fileno(), 'wb') > fd.close() > sys.stdout.write("now writing on stdout will cause a crash") -- ___ Python tracker __

[issue19050] crash while writing to a closed file descriptor

2013-09-19 Thread Daniel Rohlfing
New submission from Daniel Rohlfing: This snippet let my interpreter crash immediately: > import sys, io > io.open(sys.stdout.fileno(), 'wb') > fd.close() > sys.stdout.write("now writing on stdout will cause a crash") That's happened on Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500