This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash hangs in WaitForMultipleObjects


Below are more traces of the bash processes hanging on my machine.
These bash process are running scripts to execute a java command line
utility, we have instrumented the bash process to make sure it is not hanging
inside of the java call and are certain they are not.  There are 2 bash
processes executed per call, both the parent and child traces are given for 1
call.  Additional info about the machine:

2 way Xeon server running Windows 2K SP4
2 GB of memory 
Hyperthreading turned off


***************Parent process***************
(gdb)attach 5920
Attaching to process 6460
---Type <return> to continue, or q <return> to quit---
[Switching to thread 6460.0x6d4]
(gdb) bt
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINNT/system32/ntd
ll.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) info threads
* 6 thread 6460.0x6d4  0x77fa144c in ntdll!DbgUiConnectToDbg () from /cygdrive/c
/WINNT/system32/ntdll.dll
0x77f8c55d in ntdll!ZwReadFile  5 thread 6460.0x1710   () from /cygdrive/c/WINNT
/system32/ntdll.dll
0x77f9323e in ntdll!ZwWaitForMultipleObjects  4 thread 6460.0x1824   () from /cy
gdrive/c/WINNT/system32/ntdll.dll

    3 thread 6460.0x1934  0x77f9323e in ntdll!ZwWaitForMultipleObjects () from /
cygdrive/c/WINNT/system32/ntdll.dll
0x77f8c55d in ntdll!ZwReadFile  2 thread 6460.0x1414   () from /cygdrive/c/WINNT
/system32/ntdll.dll
0x77f9323e in ntdll!ZwWaitForMultipleObjects  1 thread 6460.0x1668   () from /cy
gdrive/c/WINNT/system32/ntdll.dll
(gdb) thread 1
[Switching to thread 1 (thread 6460.0x1668)]#0  0x77f9323e in ntdll!ZwWaitForMul
tipleObjects () from /cygdrive/c/WINNT/system32/ntdll.dll
(gdb) bt
#0  0x77f9323e in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINNT/syste
m32/ntdll.dll
#1  0x7c59a059 in WaitForMultipleObjectsEx () from /cygdrive/c/WINNT/system32/KE
RNEL32.DLL
#2  0x7c599f6c in WaitForMultipleObjects () from /cygdrive/c/WINNT/system32/KERN
EL32.DLL
#3  0x610acdf6 in regsub () from /usr/bin/cygwin1.dll
#4  0x610acc07 in regsub () from /usr/bin/cygwin1.dll
#5  0x610882af in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#6  0x0041ef71 in ?? ()
#7  0x00425a79 in ?? ()
#8  0x0042815e in ?? ()
#9  0x00428755 in ?? ()
#10 0x00423d70 in ?? ()
#11 0x00423e31 in ?? ()
#12 0x00423e89 in ?? ()
#13 0x00423ad0 in ?? ()
#14 0x0042367b in ?? ()
#15 0x00423719 in ?? ()
#16 0x00429954 in ?? ()
#17 0x00429269 in ?? ()
#18 0x004133c7 in ?? ()
#19 0x004107bf in ?? ()
#20 0x00411a54 in ?? ()
#21 0x00410a1d in ?? ()
#22 0x004101e4 in ?? ()
#23 0x00411a1d in ?? ()
#24 0x00410a1d in ?? ()
#25 0x004101e4 in ?? ()
#26 0x00412b80 in ?? ()
#27 0x00412ae9 in ?? ()
#28 0x004109c9 in ?? ()
#29 0x00411a54 in ?? ()
#30 0x00410a1d in ?? ()
#31 0x004101e4 in ?? ()
#32 0x00411a1d in ?? ()
#33 0x00410a1d in ?? ()
#34 0x004101e4 in ?? ()
#35 0x00411a1d in ?? ()
#36 0x00410a1d in ?? ()
#37 0x004101e4 in ?? ()
#38 0x00411a1d in ?? ()
#39 0x00410a1d in ?? ()
#40 0x004101e4 in ?? ()
#41 0x004109e0 in ?? ()
#42 0x00411a54 in ?? ()
#43 0x00410a1d in ?? ()
#44 0x004101e4 in ?? ()
#45 0x004109e0 in ?? ()
#46 0x004101e4 in ?? ()
#47 0x004039f9 in ?? ()
#48 0x00401783 in ?? ()
#49 0x61005ed4 in getprogname () from /usr/bin/cygwin1.dll
#50 0x610060eb in dll_crt0@0 () from /usr/bin/cygwin1.dll


***********Child process***************
(gdb) attach 5968
Attaching to process 5968
[Switching to thread 5968.0x14d0]
(gdb) bt
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINNT/system32/ntd
ll.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) info threads
* 3 thread 5968.0x14d0  0x77fa144c in ntdll!DbgUiConnectToDbg () from /cygdrive/
c/WINNT/system32/ntdll.dll
0x77f8c55d in ntdll!ZwReadFile  2 thread 5968.0x1530   () from /cygdrive/c/WINNT
/system32/ntdll.dll
0x77f84d9e in ntdll!ZwClose  1 thread 5968.0x15f4   () from /cygdrive/c/WINNT/sy
stem32/ntdll.dll
(gdb) thread 1
[Switching to thread 1 (thread 5968.0x15f4)]#0  0x77f84d9e in ntdll!ZwClose () f
rom /cygdrive/c/WINNT/system32/ntdll.dll
(gdb) bt
#0  0x77f84d9e in ntdll!ZwClose () from /cygdrive/c/WINNT/system32/ntdll.dll
#1  0x7c577e9c in KERNEL32!CloseHandle () from /cygdrive/c/WINNT/system32/KERNEL
32.DLL
#2  0x6106e006 in cygwin_split_path () from /usr/bin/cygwin1.dll
#3  0x61095334 in getppid () from /usr/bin/cygwin1.dll
#4  0x610882af in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#5  0x0042815e in ?? ()
#6  0x00428755 in ?? ()
#7  0x00423d70 in ?? ()
#8  0x00423e31 in ?? ()
#9  0x00423e89 in ?? ()
#10 0x00423ad0 in ?? ()
#11 0x0042367b in ?? ()
#12 0x00423719 in ?? ()
#13 0x00429954 in ?? ()
#14 0x00429269 in ?? ()
#15 0x004133c7 in ?? ()
#16 0x004107bf in ?? ()
#17 0x00411a54 in ?? ()
#18 0x00410a1d in ?? ()
#19 0x004101e4 in ?? ()
#20 0x00411a1d in ?? ()
#21 0x00410a1d in ?? ()
#22 0x004101e4 in ?? ()
#23 0x00412b80 in ?? ()
#24 0x00412ae9 in ?? ()
#25 0x004109c9 in ?? ()
#26 0x00411a54 in ?? ()
#27 0x00410a1d in ?? ()
#28 0x004101e4 in ?? ()
#29 0x00411a1d in ?? ()
#30 0x00410a1d in ?? ()
#31 0x004101e4 in ?? ()
#32 0x00411a1d in ?? ()
#33 0x00410a1d in ?? ()
#34 0x004101e4 in ?? ()
#35 0x00411a1d in ?? ()
#36 0x00410a1d in ?? ()
#37 0x004101e4 in ?? ()
#38 0x004109e0 in ?? ()
#39 0x00411a54 in ?? ()
#40 0x00410a1d in ?? ()
#41 0x004101e4 in ?? ()
#42 0x004109e0 in ?? ()
#43 0x004101e4 in ?? ()
#44 0x004039f9 in ?? ()
#45 0x00401783 in ?? ()
#46 0x61005ed4 in getprogname () from /usr/bin/cygwin1.dll
#47 0x610060eb in dll_crt0@0 () from /usr/bin/cygwin1.dll

> -----Original Message-----
> From: Patrick J. LoPresti [mailto:patl@users.sourceforge.net]
> Sent: Friday, June 11, 2004 12:14 PM
> To: jreif@speakeasy.net
> Subject: Re: Bash hangs in WaitForMultipleObjects
> 
> Cygwin uses a lot of threads (one to handle signals, a few to handle
> "select", and so on).  It is common for most of them to be blocked in
> WaitForMultipleObjects.
> 
> Use gdb to get a backtrace from the other threads; it might be
> informative.  Start by typing "threads"...
> 
>  - Pat
> 



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]