delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/13/00:04:09

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 <cygwin AT cwilson DOT fastmail DOT fm>
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: <AANLkTimFje-2WQ00q99zFS4LP9t8ACKmoBFKAZtM+AA5 AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTimFje-2WQ00q99zFS4LP9t8ACKmoBFKAZtM+AA5@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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 "<string>", 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019