delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/18/18:52:33

Mime-Version: 1.0 (Apple Message framework v746.2)
In-Reply-To: <34588B2E-B3B4-4B12-A1C2-7D0AD150E475@rehley.net>
References: <34588B2E-B3B4-4B12-A1C2-7D0AD150E475 AT rehley DOT net>
Message-Id: <2C9F00D4-5B00-40DD-9195-E4BF71F6F143@rehley.net>
From: Peter Rehley <peter AT rehley DOT net>
Subject: Re: Hang with 1.5.18, 1.5.19 snapshot 20051029 (now with 20051117)
Date: Fri, 18 Nov 2005 15:52:21 -0800
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

Hi

I did some more testing and looking through source code, and it seems  
that the process that is hanging hasn't initialized yet.  When I do  
the cygwin kill command it returns with "No such process" and based  
on what I see in the code (pinfo.cc, pinfo::init) that can happen if  
the process is still waiting to be initialized.  Tthat's one case,  
the other case is when the process really doesn't exist.  But the  
process does exist, and it shows up in ps command and windows process  
viewer.

It's a guess that the hung process is waiting to be initialized, but  
I did try resuming the process using a program called "process  
explorer", and the hung process continued, finished, and the main  
test_configure also continued.

This implies that wait_sig (sigproc.cc) isn't called sometimes.

Of course this is pure speculation.  I'll keep trying to see if I can  
provide information that is more useful.

Peter

On Oct 31, 2005, at 4:09 PM, Peter Rehley wrote:

> Hi,
>
> I have a problem where a configure script is hanging.  I first saw  
> the behavior in 1.5.18, and it's still there in the latest  
> snapshot. The only machines that we are seeing it hang on are  
> windows 2000 machines, sp4, with duel pentinum 933 mhz processors,  
> and using ssh to login to the machine.  I haven't been able to  
> reproduce the problem on single processor machines or when ssh is  
> not used.
>
> Under 1.5.18, the hang occurred about 1 in ten times in the  
> test_configure script (provided in the bash_test.tar.bz2 file.   
> Under the latest snapshot it's about 1 in 900.
>
> When the hang happens it appears that a process is completed, but  
> still can be found in the process directory.  The cmdline file says  
> <defunct>, but the process still shows up in the process list (ps - 
> ef).  If I try to clean up by killing the process, the kill command  
> says that the process doesn't exist.  The only way that I can make  
> the hung process go away is by using the task manager to kill the  
> process.
>
> The simplest test I've gotten down to is:
>
> ### Simple Test
> #! /bin/sh
> # Guess values for system-dependent variables and create Makefiles.
> # Generated by GNU Autoconf 2.59 for expr-configure 1.5.11-1.
> #
> # Report bugs to <cygwin at cygwin dot com>.
> #
> # Copyright (C) 2003 Free Software Foundation, Inc.
> # This configure script is free software; the Free Software Foundation
> # gives unlimited permission to copy, distribute and modify it.
> ## --------------------- ##
> ## M4sh Initialization.  ##
> ## --------------------- ##
>
> set -xv
>
> count=0
> while [ ! -f stop ] ; do
>   as_var=LC_MONETARY
>   if (test -z "`(eval $as_var=C; export $as_var; echo ho) 2>&1`");  
> then
>     echo "hi"
>     eval $as_var=C; export $as_var
>   fi
>   count=`expr $count + 1`
>   echo $count
> done
> ### End simple test
>
> Someplace in the eval line the hang occurs.  Unfortunately I  
> haven't had success when using strace.
>
> If I've missed anything or there are questions about the above,  
> please let me know.
> Peter
>
> <cygcheck.out>
>
> <bash_test.tar.bz2>
>
>
>
>
>
>
>
> --
> 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/


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