Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Mon, 11 Apr 2005 10:16:33 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Deadlocked cygrunsrv processes with strace message "_cygtls::remove: wait 0x0"
Message-ID: <20050411141633.GD30365@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <013701c53e8a$d4959930$6508a8c0@chimaera> <017301c53e90$e77626e0$6508a8c0@chimaera>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <017301c53e90$e77626e0$6508a8c0@chimaera>
User-Agent: Mutt/1.5.8i
Note-from-DJ: This may be spam

On Mon, Apr 11, 2005 at 01:20:52PM +0100, Max Bowsher wrote:
>Max Bowsher wrote:
>>Something about Apache 2 is causing its controlling cygrunsrv service
>>process to deadlock within the Cygwin DLL when it attempts to exit.
>>Attaching with strace to the hung process shows "_cygtls::remove: wait 
>>0x0".
>>Signals sent to the hung process are not delivered (as shown by strace), 
>>but
>>a kill -9 will succeed.
>>Attaching with gdb does show anything that looks promising.
>>
>>Does anyone have any suggestions that could save me some time, compared to
>>an in-depth study of the Cygwin DLL code in this area?
>
>Ummmmm. Oh. Dear.
>
>Since gdb backtrace wasn't helpful, I decided to try single stepping in gdb 
>onwards from the last strace output.
>
>I found out that _cygtls.remove is being called successfully from 
>dll_entry(DLL_THREAD_DETACH), which returns, and the hang finally occurs 
>inside ZwTerminateThread() !!!
>What now? Do I scream and give up?

That's what I'd suggest.

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/

