Mail Archives: cygwin/2010/11/16/15:58:16
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
Date: | Tue, 16 Nov 2010 21:57:50 +0100
|
From: | David Sastre <d DOT sastre DOT medina AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: Python: subprocess running rsync causes broken socket in telnetlib
|
Message-ID: | <20101116205750.GA11902@jethro.local.lan>
|
References: | <AANLkTimFje-2WQ00q99zFS4LP9t8ACKmoBFKAZtM+AA5 AT mail DOT gmail DOT com> <4CDE1C0B DOT 8010805 AT cwilson DOT fastmail DOT fm> <AANLkTinH-H_886p4SvyNAH9VqZdLbvz35FXDSN3T6eeo AT mail DOT gmail DOT com> <AANLkTinzk05xxGgWqs0eQxzHux1iPCHLjLbpA0_ZQsMA AT mail DOT gmail DOT com>
|
MIME-Version: | 1.0
|
In-Reply-To: | <AANLkTinzk05xxGgWqs0eQxzHux1iPCHLjLbpA0_ZQsMA@mail.gmail.com>
|
User-Agent: | Mutt/1.5.20 (2009-06-14)
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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?
>=20
> It would be great to know if this fault exists only at my site, or if
> other sites can also demonstrate this fault.
>=20
> 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".
>=20
> 100% reproducible for me, on every Cygwin installation I've tried it on.
>=20
> 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=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
('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, [87.217.145.192')
('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>
print("telnet", t.read_eager())
File "/usr/lib/python2.6/telnetlib.py", line 370, in read_eager
self.fill_rawq()
File "/usr/lib/python2.6/telnetlib.py", line 516, in fill_rawq
buf =3D 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
i686 Cygwin
$ cygcheck -c python rsync
Cygwin Package Information
Package Version Status
python 2.6.5-2 OK
rsync 3.0.7-1 OK
Regards.
--=20
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
--XsQoSWH+UP9D9v3l
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkzi8E4ACgkQYX05bESLMetQMwCgsR4pe/s6WRjuNhZ0mx9cRlqR
eEsAn3B5x91Oq9LsWz3uou0z4WgGNUKw
=8Ewx
-----END PGP SIGNATURE-----
--XsQoSWH+UP9D9v3l--
- Raw text -