Python: subprocess running rsync causes broken socket in telnetlib
Tue Nov 16 20:58:00 GMT 2010
On Wed, Nov 17, 2010 at 09:39:38AM +1300, David Antliff wrote:
> On Mon, Nov 15, 2010 at 10:00, David Antliff wrote:
> > Can anyone else see the fault if they run the script I posted?
> It would be great to know if this fault exists only at my site, or if
> other sites can also demonstrate this fault.
> It's pretty easy to test - ensure you have Python and rsync installed
> and simply run the script in my original post. If the problem arises,
> you'll get a python socket.error exception, error 113 "Software caused
> connection abort".
> 100% reproducible for me, on every Cygwin installation I've tried it on.
> This fault might suggest a file descriptor leak between processes.
I can reproduce it on my side. That doesn't mean I can debug it
further, though, sorry.
$ python bug.py
('telnet', '220 mx.google.com ESMTP f14sm1064920wbe.20\r\n')
('ssh', 0, 'OpenSSH_5.6p1, OpenSSL 0.9.8o 01 Jun 2010\n')
('telnet', '250-mx.google.com at your service, [220.127.116.11')
('rsync', 0, 'rsync version 3.0.7 protocol version 30\nCopyright (C) 1996')
Traceback (most recent call last):
File "bug.py", line 42, in <module>
File "/usr/lib/python2.6/telnetlib.py", line 370, in read_eager
File "/usr/lib/python2.6/telnetlib.py", line 516, in fill_rawq
buf = self.sock.recv(50)
socket.error: [Errno 113] Software caused connection abort
$ uname -a
CYGWIN_NT-6.1 win7 1.7.7(0.230/5/3) 2010-08-31 09:58
$ cygcheck -c python rsync
Cygwin Package Information
Package Version Status
python 2.6.5-2 OK
rsync 3.0.7-1 OK
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: Digital signature
More information about the Cygwin