X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sat, 26 Jul 2008 13:16:13 -0400 From: Jason Tishler Subject: Re: cygwin python: subprocess.Popen().stdout + threads == hang In-reply-to: <1216915906.17422.1265168403@webmail.messagingengine.com> To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20080726171613.GA3296@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <1216915906 DOT 17422 DOT 1265168403 AT webmail DOT messagingengine DOT com> User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Charles, On Thu, Jul 24, 2008 at 12:11:46PM -0400, Charles Wilson wrote: > Ran into a weird issue using python on cygwin. When trying to use the > stdout handle from a subprocess spawned using the subprocess.Popen > class, it hangs when accessed via a thread. This behavior does /not/ > occur on other platforms -- nor when using os.popen from threads on > cygwin. Nor when using subprocess.Popen from cygwin without threads. > > [snip] > > I've attached a test case to demonstrate the issue. I was hoping (a) > somebody has seen this before, and has a simple solution for me, or > (b) the python maintainer (Jason?) could take a look, and maybe raise > a bug report upstream. As my README indicates, Cygwin Python has some pthreads-related issues. Given that you don't observe this behavior on other platforms, it seems like this is a Cygwin specific problem. So, I don't think raising an upstream bug report will help. I would like to help with this problem, but my expectation is it will take many hours or days to debug. I've been in the Cygwin and Python pthreads-related code before and it is not a fun place to be. :,) Sorry, but the reality is I don't have the time to help with a problem of this difficulty. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/