delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/09/15:01:55

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
Message-ID: <3FD6222D.6040702@m4x.org>
Date: Tue, 09 Dec 2003 11:27:41 -0800
From: Antoine Labour <antoine DOT labour AT m4x DOT org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Robbert <mrobbert AT Mines DOT EDU>
CC: cygwin AT cygwin DOT com
Subject: Re: Setup hangs in postinstall
References: <3FD617A6 DOT 8050806 AT mines DOT edu>
In-Reply-To: <3FD617A6.8050806@mines.edu>

Michael Robbert wrote:
>> I'm sorry, I don't have a copy of XP to try this with, but it would
>> appear to be a bug in uname (since it gives no output from the 
>> commandline)
>>
>> Does it uname hang or just return empty?  Is there any error codes?  Try:
>>
>> /bin/uname -a ; echo $?
>>
>> Also, could you *attach* (uncompressed) the output of:
>>
>> /bin/cygcheck -svr > cygcheck.out
>>
>> Thanks,
>>
>> J.
>>
> John,
> the uname command by itself does not hang or return empty, it is only in 
> the process of assigning the output of the command(any command) to a 
> variable that it hangs.
> Here is the output of your example:
> 
> bash-2.05b$ /bin/uname -s; echo $?
> CYGWIN_NT-5.1
> 0
> 
> I have attached the file cygcheck.out which contains the out from the 
> command "cygcheck -svr"
> 
> Antoine,
> I don't think that your problem is exactly the same as mine either. You 
> problem, from what I gather in your post, only happens in a loop and 
> possibly on a dual CPU(SMP) machine. I am getting this on a single 
> command on a laptop(not SMP).
> 
> Everyone,
> If anybody wants to point to bash as the problem, let me also point out 
> that I have been able to replicate the problem in zsh, csh, and sh.

Actually, I still do believe it's the same problem. In some other mails 
I specified it happens also on single CPU machines. I think other people 
have been able to reproduce it as well. The fact I expose it in a loop 
is because the hang is random. It also sometimes happen in a non-loop 
environment. I suspect a nasty race condition which depends heavily on 
the system scheduling, so in your case the same problem might happen 
every time.
In any case, I tried my small test case with zsh too, same result : hang 
after a few iterations.

Cheers,
Antoine

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