delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/04/11:44:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 4 May 2009 11:43:42 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [cygcheck] produces repeated output - 6 times!
Message-ID: <20090504154342.GB4286@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <af075b00904280347s32e89d76ve23b61db6a1c6a8e AT mail DOT gmail DOT com> <20090504082512 DOT GA21324 AT calimero DOT vinschen DOT de> <297343D29C14AA4D822142893ABEAEF306570A42 AT srv1163ex1 DOT flightsafety DOT com> <49FF0586 DOT 3010006 AT sbcglobal DOT net> <20090504151802 DOT GA4286 AT ednor DOT casa DOT cgf DOT cx> <297343D29C14AA4D822142893ABEAEF306570A98 AT srv1163ex1 DOT flightsafety DOT com>
MIME-Version: 1.0
In-Reply-To: <297343D29C14AA4D822142893ABEAEF306570A98@srv1163ex1.flightsafety.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 Mon, May 04, 2009 at 10:35:46AM -0500, Thrall, Bryan wrote:
>Christopher Faylor wrote on Monday, May 04, 2009 10:18 AM:
>
>> On Mon, May 04, 2009 at 03:11:02PM +0000, Greg Chicares wrote:
>>> On 2009-05-04 14:44Z, Thrall, Bryan wrote:
>>>> Corinna Vinschen wrote on Monday, May 04, 2009 3:25 AM:
>>>>> On Apr 28 11:47, Julio Costa wrote:
>>>>>> Bug in cygcheck? Or bug in user? :)
>>>>> 
>>>>> Bug in user as far as the position of the -v option is concerned.
>>>> 
>>>> I can reproduce it; some more details:
>>>> 
>>>> - 'cygcheck /bin/ash.exe -v' returns 127
>>>> - it doesn't happen if run from cmd.exe
>>>> - '/bin/ash.exe -v' from inside bash works just fine
>>>> 
>>>> Isn't there a feature of Cygwin where it tries 5 or 6 times to
>restart
>>>> Windows apps (such as cygcheck) if they fail in a certain way? That
>>>> could explain the repeated output (i.e. cygcheck is trying to do the
>>>> documented 'cygcheck [PROGRAM] -v' thing but there's a bug), but my
>>>> search fu wasn't able to bring up any results.
>>> 
>>> Search for 'proc_retry' in the User's Guide.
>>> 
>>> Try setting
>>>  CYGWIN=proc_retry:1
>>> to see whether that's what's happening in this case.
>
>Thanks, Greg, for the pointer!
>
>>If it is, then cygcheck would be exiting with a bad status and bash
>>would be causing cygcheck to restart.  You wouldn't see the problem
>>from the windows command line.
>
>Aren't those the exact symptoms I described?

The "exact symptoms"?  No, in fact it was not.  I was clarifying what to
look for but I guess I should have said "Please try this from the
windows command line".

>> cygcheck itself would not be redoing anything because 1) it isn't a
>true
>> cygwin program and 2) it isn't starting a process when it displays dll
>> information.
>
>Unfortunately, unless I'm doing something wrong, it isn't due to
>proc_retry:
>
>thrall AT pc1163-8413-xp ~
>$ echo $CYGWIN
>
>thrall AT pc1163-8413-xp ~
>$ cygcheck /bin/ash.exe -v
>C:\cygwin_1.7\bin\ash.exe
>  C:\cygwin_1.7\bin\cygwin1.dll
>    C:\WINDOWS\system32\ADVAPI32.DLL
>      C:\WINDOWS\system32\ntdll.dll
>      C:\WINDOWS\system32\KERNEL32.dll
>      C:\WINDOWS\system32\RPCRT4.dll
>
><5 more copies of the DLL info>
>
>thrall AT pc1163-8413-xp ~
>$ export CYGWIN=proc_retry:1
>thrall AT pc1163-8413-xp ~
>$ cygcheck /bin/ash.exe -v
>C:\cygwin_1.7\bin\ash.exe
>  C:\cygwin_1.7\bin\cygwin1.dll
>    C:\WINDOWS\system32\ADVAPI32.DLL
>      C:\WINDOWS\system32\ntdll.dll
>      C:\WINDOWS\system32\KERNEL32.dll
>      C:\WINDOWS\system32\RPCRT4.dll
>
><5 more copies of the DLL info>
>
>Oh well, at least I learned something :)

You have to set the CYGWIN environment variable before any Cygwin program is
started.

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