delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/04/18:34:40

X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v749.3)
In-Reply-To: <AAFFC5C3-F0C1-481A-AA9B-4CC53824E50F@rehley.net>
References: <98A22DD7-2111-489A-9843-E0176048A2BB AT rehley DOT net> <20060313000602 DOT GA19770 AT trixie DOT casa DOT cgf DOT cx> <442B14EE DOT 5AEFA518 AT dessent DOT net> <20060403232514 DOT GA21368 AT trixie DOT casa DOT cgf DOT cx> <AAFFC5C3-F0C1-481A-AA9B-4CC53824E50F AT rehley DOT net>
Message-Id: <0148B542-61D4-4EA0-B705-3BE77477411A@rehley.net>
From: Peter Rehley <peter AT rehley DOT net>
Subject: Re: 20060301 snapshot and later. sh hangs with very long command line
Date: Tue, 4 Apr 2006 15:34:32 -0700
To: Cygwin List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On Apr 4, 2006, at 11:56 AM, Peter Rehley wrote:

>
> On Apr 3, 2006, at 4:25 PM, Christopher Faylor wrote:
>
>> On Wed, Mar 29, 2006 at 03:14:54PM -0800, Brian Dessent wrote:
>>> Christopher Faylor wrote:
>>>>> I was building binutils using the cygwin 20060308 snapshot, and  
>>>>> when it
>>>>> did the check for "finding the maximum length of command line"  
>>>>> a sh
>>>>> shell goes to 99% cpu usage and doesn't return until I end the  
>>>>> process
>>>>> using task manager.
>>>>>
>>>>> I isolated the portion of the script that was hanging and was  
>>>>> able to
>>>>> repeat the problem.  The script hangs when it checks for a  
>>>>> command line
>>>>> of length 16384.  This happens every time I run the script, and  
>>>>> it is
>>>>> reproducible for me on at least windows 2000 and windows XP.  I've
>>>>> attached a test script.
>>>>>
>>>>> The problem doesn't happen with the 20060227 snapshot, but  
>>>>> appeared in
>>>>> 20060301 and later versions.  It is present in the 20060309  
>>>>> snapshot.
>>>>
>>>> Thanks for the test case.  This should be fixed in the next  
>>>> snapshot.
>>>
>>> This looks like it has regressed.  I am using CVS HEAD as of  
>>> yesterday
>>> and have run into the "finding the maximum length of command line
>>> arguments" hang in configure scripts.  Peter's testcase fails  
>>> too.  As
>>> a workaround I've set cygexec on my mounts which seems to workaround
>>> the issue (and allows larger commandlines anyway.)
>>
>> Out of curiousity, does this go away if you mount your /bin  
>> directory with
>> the -X option?  If so, the latest snapshot should fix it.
> In the test case I used this seems to fix the problem, but when it  
> is running the real script, it still hangs.  I'll try the snapshot  
> to see if the behavior is the same.
>
The 20060403 snapshot fixes the issue.

Peter

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