This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python segfaults when reading from closed stdin
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, trickos
Priority: normal Keywords:

Created on 2006-08-05 20:47 by trickos, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29453 - (view) Author: Patrick Mezard (trickos) Date: 2006-08-05 20:47
""""
Python 2.5b3 (r25b3:51041, Aug  3 2006, 09:35:06) [MSC
v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import sys
>>> sys.stdin.close()
>>> raw_input()
"""

segfaults on Windows XP.

Same thing happen with Python 2.4.2 (Build 248).
msg29454 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-08-06 08:24
Logged In: YES 
user_id=849994

Thanks for the report, fixed raw_input() and input() in rev.
51129, 51130 (2.4).
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43783
2006-08-05 20:47:22trickoscreate