eryksun added the comment:
PyOS_StdioReadline does an unchecked fflush(sys_stdout) and fflush(stderr). It
only 'crashes' (the processes is intentionally killed by the CRT) if there's
buffered data to flush. Since it prints the prompt to stderr, Zachary's example
won't crash if sys.ps1 and sys.
Zachary Ware added the comment:
...and that one does crash 3.4, so I'm a bit more interested again. I'll try
to look at this at the sprints.
--
priority: high -> critical
title: crash while writing to a closed file descriptor -> fflush called on
pointer to potentially closed file
vers