Message90391
It's possible to lose data piped through standard output and/or error
streams when large ammounts of data are transfered.
Reproduction:
1) Process A spawns process B with all standard I/O pipes and transfers
large ammount of data to it (100kB in my sample).
2) Process B exits very early (doesn't process all stdin data) and puts
large amount of data into its stderr or stdout streams.
3) IOError/OSError exception if errno variable set to errno.EPIPE is
raised on process A side.
Bug:
When the exception is catched Popen object's stdout and stderr members
may not contain data put into stderr/stdout streams by process B.
Note:
Described behaviour can be observed in Python 2.6.1 on FreeBSD 7.2 as
well as on Windows XP (Pro x64, SP2, up to date).
Real life example of such early end of process B:
openssl smime -verify -CApath /some/dir with large, unsigned email.
I attach simple reproduction code (execute sender.py script). |
|
Date |
User |
Action |
Args |
2009-07-10 12:36:05 | dwalczak | set | recipients:
+ dwalczak |
2009-07-10 12:36:05 | dwalczak | set | messageid: <1247229365.37.0.486388451669.issue6457@psf.upfronthosting.co.za> |
2009-07-10 12:36:04 | dwalczak | link | issue6457 messages |
2009-07-10 12:36:03 | dwalczak | create | |
|