delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/11/11:39:52

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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 11 Jun 2004 11:39:04 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: jreif AT speakeasy DOT net
cc: cygwin AT cygwin DOT com
Subject: Re: Bash hangs in WaitForMultipleObjects
In-Reply-To: <W245535631253161086924759@webmail2>
Message-ID: <Pine.GSO.4.58.0406111129280.13780@slinky.cs.nyu.edu>
References: <W245535631253161086924759 AT webmail2>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 11 Jun 2004, jreif wrote:

> I have bash processes that hang sometimes and have been investigating
> with gdb.  I have gathered the output from gdb about an offending
> process and included below.  I am running 1.5.9 of the cygwin dll, I
> have searched through other postings and in google.  Have seen some
> references to hanging in bash but mostly occurring with rsync or ssh.
> This is very reproducable for me.  Any help is appreciated.

Ok, time for a new acronym: <http://cygwin.com/acronyms/#PCYMTWLL>. :-)

> (gdb) attach 7804
> Attaching to process 7804
> ---Type <return> to continue, or q <return> to quit---
> [Switching to thread 7804.0x18fc]
> (gdb) bt
> #0  0x77fa144c in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINNT/system32/ntdll.dll
> #1  0x7c57feb4 in KERNEL32!DebugActiveProcess () from /cygdrive/c/WINNT/system32/KERNEL32.DLL
> #2  0x61003e24 in getprogname () from /usr/bin/cygwin1.dll
> #3  0x61003dda in getprogname () from /usr/bin/cygwin1.dll
> (gdb) thread 3
> [Switching to thread 3 (thread 7804.0x14d8)]#0  0x77f9323e in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINNT/system32/ntdll.dll
> (gdb) bt
> #0  0x77f9323e in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINNT/system32/ntdll.dll
> #1  0x7c59a059 in WaitForMultipleObjectsEx () from /cygdrive/c/WINNT/system32/KERNEL32.DLL
> #2  0x7c599f6c in WaitForMultipleObjects () from /cygdrive/c/WINNT/system32/KERNEL32.DLL
> #3  0x61003e24 in getprogname () from /usr/bin/cygwin1.dll
> #4  0x61003dda in getprogname () from /usr/bin/cygwin1.dll
> (gdb)

Doesn't look too out-of-order to me...  It's normal to have one or two
threads waiting in WaitForMultipleObjects (on signal handling and such).
What are the other threads doing?  (Hint: 'info threads').
	Igor
P.S. If *all* of the threads are in that method, _then_ something's wrong.
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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