delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/18/02:06:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 18 Oct 2003 02:06:07 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygpath hangings: A fix - bash patch enclosed -- bash maintainer please note!
Message-ID: <20031018060607.GA28198@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <D721826DEE793D49BC49582C121EDD3E3F55C3 AT exchange DOT perwill DOT com> <20031015184328 DOT GD28402 AT redhat DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0310151404100 DOT 823 AT eos> <20031015203012 DOT GA9255 AT redhat DOT com> <20031018055836 DOT GA28155 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20031018055836.GA28155@redhat.com>
User-Agent: Mutt/1.4.1i

On Sat, Oct 18, 2003 at 01:58:36AM -0400, Christopher Faylor wrote:
>On Wed, Oct 15, 2003 at 04:30:12PM -0400, Christopher Faylor wrote:
>>I just managed to duplicate the problem on my system at work.
>>
>>Stay tuned.
>
>I managed to duplicate it at home by booting into W2K, too.  That meant
>I didn't have to feel guilty about working on this at work.  :-)
>
>This should fix the problem.  Bash wasn't closing the read end of a pipe
>in some situations.  I'm not sure why that would cause some programs to
>hang but the following patch fixes the problem.  I think it provides
>more robust code than what was in bash previously, too.
>
>Ronald, if you agree with this patch, could you release a new version of
>bash, ASAP?  If you don't agree with the patch, then please let me
>(aka the cygwin list) know soon since I'm going to be submitting it
>upstream ASAP.

I've put a patched version of bash up at:

ftp://sourceware.org/pub/cygwin/tmp/bash.exe

if anyone wants to try this.  It would be good to confirm or deny
that this fixes the problem for everyone.

Btw, maybe this has already been mentioned, but here is a simple
test script that demonstrates the problem when run from the console:

#!/bin/bash
exec 0<&-
A=$(cygpath -A -P)
echo $A

Save it as "hang" and run it as "bash hang" and it should hang nicely
with an unpatched bash.

cgf

--
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/

- Raw text -


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