delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/07/19/01:09:29

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Fri, 19 Jul 2002 01:09:25 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: cygwin hang problem
Message-ID: <20020719050925.GA24259@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <3D32FC00 DOT 5090108 AT hekimian DOT com>
Mime-Version: 1.0
In-Reply-To: <3D32FC00.5090108@hekimian.com>
User-Agent: Mutt/1.3.23.1i

On Mon, Jul 15, 2002 at 12:44:48PM -0400, Joe Buehler wrote:
>I am using Cygwin to run a build system.  I have spent a couple weeks
>and fixed a couple Cygwin problems,

I hope to see the patches for these soon.

but am in the midst of
>one that is very difficult to pin down.
>
>The problem is that processes will sometimes just hang in a Win32
>API call for no apparent reason.  Here is an example stack trace
>of an invocation of "rm" that is hung (I have added the names for
>the system dll stuff at top of stack):
>
>(gdb) bt
>#0  0x77f67a1b in _system_dlls__ ()_NtFsControlFile AT 40
>#1  0x77f686de in _system_dlls__ ()_RtlpValidateCurrentDirectory AT 4
>#2  0x77f65df6 in _system_dlls__ ()_RtlGetFullPathName_Ustr AT 24
>#3  0x77f658fe in _system_dlls__ ()_RtlDosPathNameToNtPathName_U AT 16
>#4  0x77dc2f05 in _system_dlls__ ()_GetFileSecurityW AT 20
>#5  0x77dc3018 in _system_dlls__ ()_GetFileSecurityA AT 20

Hmm.  Interesting debug output.  I don't recall ever seeing the
actual NT or win32 function names in gdb before.  How did you manage
this?  Another unpublished patch?

>It is not apparent to me why GetFileSecurity() would hang.  According
>to the "handle" utility available from sysinternals on the net,
>nothing has the file temp.ar.327 open except the "rm" process itself.
>
>I have also seen similar hangs in calls to GetFileSecurity().
>
>Any ideas what might be going on here?
>
>The hang is on a dual-processor NT 4 machine running service pack 5.

Service pack 5 of what W2K?

>The same test ran fine a half-dozen times over the weekend
>on a single-processor XP machine.

It sounds like you may be looking in the wrong thread for the hang.
info threads will show all of the threads and "thread n" will switch
to thread n.

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019