X-Spam-Check-By: sourceware.org
Date: Thu, 27 Apr 2006 10:24:17 -0500
From: mwoehlke <mwoehlke-nospam@tibco.com>
Subject: Re: "Ghost" processes on Cygwin
In-reply-to: <20060426232652.GB23395@trixie.casa.cgf.cx>
To: cygwin@cygwin.com
Reply-to: cygwin@cygwin.com
Message-id: <4450E221.9050404@tibco.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
User-Agent: Thunderbird 1.5 (X11/20051201)
References: <444FF04F.20109@tibco.com>  <20060426232652.GB23395@trixie.casa.cgf.cx>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor wrote:
> On Wed, Apr 26, 2006 at 05:12:31PM -0500, mwoehlke wrote:
>> I'm seeing something funny. While trying to build a large program on 
>> Cygwin using cl.exe (i.e. I am building a non-Cygwin app; just using 
>> Cygwin to drive 'make'), every now and then, cl.exe hangs. Before you 
>> tell me I'm on the wrong list :-), here's the funny part. If I do 'ps' 
>> in Cygwin, I can see the 'cl' process, along with its WINPID. However, 
>> it doesn't show up in task manager! Also, there are about five processes 
>> that are clearly Cygwin processes (bash.exe or sh.exe) that do NOT show 
>> up in Cygwin's 'ps'.
>>
>> Is there any logic to this that I'm missing?
> 
> Yes.  Windows doesn't implement the exec* family of linux system calls
> so cygwin has to kludge it.

Ok, thanks for the information. It looks like it is actually bash that 
is hanging (I wonder, is the exec() failing to clean up properly), but 
I'm not sure what to do about it. If I try to attach with gdb, gdb hangs 
(but I can 'kill' it with a fatal - i.e. not-SIGINT - signal). Any 
suggestions on where to go from here to try to debug this? Is there a 
'gdb-on-cygwin' howto somewhere that I'm missing?

(See also http://cygwin.com/ml/cygwin/2006-04/msg00844.html)

-- 
Matthew
Ok, so the quotes aren't entirely original.

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

