delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/28/14:46:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-Authenticated: #14308112
Date: Sun, 28 Aug 2005 21:47:23 +0300
From: Pavel Tsekov <ptsekov AT gmx DOT net>
X-X-Sender: ptsekov AT mordor
To: cygwin AT cygwin DOT com
Subject: Re: zsh: command not found => hangs
In-Reply-To: <20050828180845.GA24400@trixie.casa.cgf.cx>
Message-ID: <Pine.CYG.4.58.0508282115490.1776@mordor>
References: <Pine DOT LNX DOT 4 DOT 60 DOT 0508241620460 DOT 19032 AT gremlin DOT fruitbat DOT org> <20050825001137 DOT GI7338 AT bouh DOT ens-lyon DOT fr> <Pine DOT LNX DOT 4 DOT 60 DOT 0508251406580 DOT 19032 AT gremlin DOT fruitbat DOT org> <20050825220454 DOT GR7662 AT bouh DOT ens-lyon DOT fr> <Pine DOT LNX DOT 4 DOT 60 DOT 0508251537490 DOT 19032 AT gremlin DOT fruitbat DOT org> <20050826005349 DOT GA4087 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT LNX DOT 4 DOT 60 DOT 0508261033310 DOT 19032 AT gremlin DOT fruitbat DOT org> <20050826191429 DOT GA2034 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT LNX DOT 4 DOT 60 DOT 0508261329430 DOT 19032 AT gremlin DOT fruitbat DOT org> <Pine DOT CYG DOT 4 DOT 58 DOT 0508281417030 DOT 624 AT mordor> <20050828180845 DOT GA24400 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
X-Y-GMX-Trusted: 0
X-IsSubscribed: yes

Hello,

On Sun, 28 Aug 2005, Christopher Faylor wrote:

> On Sun, Aug 28, 2005 at 02:28:13PM +0300, Pavel Tsekov wrote:
> >I did trace this problem an it looks like a race in Cygwin but I may be
> >wrong. Here I am providing two backtraces from a debug session - the first
> >one shows what happens normally and the second one shows the hang:
>
> I appreciate that you fired up gdb to look into the problem but Cygwin
> is a multi-threaded application.  You need to look at all of the threads
> if you figure out a potential race.

I know it is multi-threaded. I've been trying to determine the right
places where breakpoints should be set. And of course the problem is hard
to reproduce when you interrupt the normal execution by setting
breakpoints. Any ideas on how to proceed would be appreciated. Of course
if you can reproduce it and debug it on your own I guess my help won't be
necessary.

I posted because I thought this information would be useful to someone.

> >P.S. While looking at this I noticed that Cygwin's wait family of
> >functions won't return 0 if WNOHANG is passed and no children are found
> >that match the wait criteria  - JFYI.
>
> AFAICT, Cygwin returns 0 in a WNOHANG criteria, just like linux.
>
> If you have evidence to the contrary, a simple test case would be
> helpful.

Of course you are right. I am too tired maybe. There were actually no
processes to wait for :(

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