Message170279
subprocess.Popen (at least on 2.6.7) reads the pipe incorrectly: It doesn't loop to read all the data until EOF -- it only loops over EINTR until it gets a single successful os.read() call. However, since this is a pipe read (not a real file read), the system doesn't guarantee that the blocking read will read everything up to requested read size or EOF, whichever comes first. So, the single os.read call could return a partial read, and the subsequent un-pickling of the exception would fail/crash.
Sorry, I can't submit a patch as I am merely a Python user, not a Python developer, and it would take me too long to set up and figure out Python build just for this one issue. |
|
Date |
User |
Action |
Args |
2012-09-11 09:06:17 | vitaly | set | recipients:
+ vitaly |
2012-09-11 09:06:17 | vitaly | set | messageid: <1347354377.74.0.358322632323.issue15918@psf.upfronthosting.co.za> |
2012-09-11 09:06:17 | vitaly | link | issue15918 messages |
2012-09-11 09:06:16 | vitaly | create | |
|