X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Message-ID: <4CDE1C0B.8010805@cwilson.fastmail.fm> Date: Sat, 13 Nov 2010 00:03:07 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Python: subprocess running rsync causes broken socket in telnetlib References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 11/11/2010 10:19 PM, David Antliff wrote: > Then the script uses subprocess to do something else (the line is > actually longer than this but I've simplified it to the most basic > version that exhibits the problem): > > process = subprocess.Popen("rsync", stdout=subprocess.PIPE) > > On Cygwin 1.7.7, this does something nasty to the completely unrelated > yet existing telnetlib socket so that any further attempts to read or > write from this socket raise an exception: > > File "/usr/lib/python2.6/telnetlib.py", line 280, in write > self.sock.sendall(buffer) > File "", line 1, in sendall > socket.error: [Errno 32] Broken pipe Try capturing stderr, and see what's there. I suspect you may be getting an error message like this: 52967 [main] python 9340 C:\cygwin-1.7\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin-1.7\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x360000 != 0x3A0000 Perhaps running rebaseall (or some analog to perlrebase for python?) -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple