cygwin bughunt (Jip-hee!)

David Dindorp ddi@dubex.dk
Fri Feb 18 02:16:00 GMT 2005


Christopher Faylor wrote:
> Actually, we do.  We provide the source code.  It's easy to build.

You are right; I was wrong.  Building Cygwin is easy.
(At least when it comes to newer versions :-p.)
It even "compiles under itself".  *impressed*.

It's been a few weeks, and I've tested with the debug version.

Seems that it's hanging in some pipe related stuff,
see GDB output further down.

Other peculiarities noted:

1. When listing processes with PS, the hung process has the 'WINPID'
   in the cygwin PID column instead of the cyg PID.

2. The problem seems to only occur on one machine,
   which happens to be multi-processor (2*Xeon).

   At least it occurs very frequently on this box.  I've seen a hang
   once on a UP machine.  I tried to find more information about
   the process using Process Explorer, which seemingly triggers
   another strange condition - the CPU time of the process shot to
   100%.  It was looping in ntdll.dll!RtlConvertUiListToApiList+0x2fd.

Here's backtraces from GDB (snipped a bit here and there).

==== core dump 1 ====
(gdb) info threads
  3 process 3620  0x77e88785 in KERNEL32!GetModuleFileNameA ()
  2 process 4236  0x77f839eb in ntdll!ZwReadFile ()
* 1 process 3832  0x77f8376e in ntdll!ZwClose ()
(gdb) bt
#0  0x77f8376e in ntdll!ZwClose ()
#1  0x77e87738 in KERNEL32!CloseHandle ()
#2  0x61073b16 in fhandler_pipe::close() (this=0x616d15f0)
--->           at ../../../../winsup/cygwin/pipe.cc:103
#3  0x6109ac34 in close (fd=5) at winsup/cygwin/cygheap.h:304
#4  0x6108db7f in _sigfe () at winsup/cygwin/cygserver.h:82
=====================

==== core dump 2 ====
(gdb) info threads
  3 process 4496  0x77e88785 in KERNEL32!GetModuleFileNameA ()
  2 process 3796  0x77f839eb in ntdll!ZwReadFile ()
* 1 process 1528  0x77f8376e in ntdll!ZwClose ()
(gdb) bt
#0  0x77f8376e in ntdll!ZwClose ()
#1  0x77e87738 in KERNEL32!CloseHandle ()
#2  0x61073b16 in fhandler_pipe::close() (this=0x616d0fd8)
--->           at ../../../../winsup/cygwin/pipe.cc:103
#3  0x6109ac34 in close (fd=5) at winsup/cygwin/cygheap.h:304
#4  0x6108db7f in _sigfe () at winsup/cygwin/cygserver.h:82
=====================

==== core dump 3 ====
(gdb) info threads
  3 process 2424  0x77e88785 in KERNEL32!GetModuleFileNameA ()
  2 process 4568  0x77f839eb in ntdll!ZwReadFile ()
* 1 process 4540  0x77f8376e in ntdll!ZwClose ()
(gdb) bt
#0  0x77f8376e in ntdll!ZwClose ()
#1  0x77e87738 in KERNEL32!CloseHandle ()
#2  0x61073b16 in fhandler_pipe::close() (this=0x616d15f0)
--->           at ../../../../winsup/cygwin/pipe.cc:103
#3  0x6109ac34 in close (fd=5) at winsup/cygwin/cygheap.h:304
#4  0x6108db7f in _sigfe () at winsup/cygwin/cygserver.h:82
=====================

The test were performed with 1.5.10-3, as newer versions call upon me
all sorts of other problems and thus can't be pushed to the failing
box right now.


> Btw, I urge everyone to try the latest cygwin snapshot!

Will do.  Has the problem been found that results in this error?:
*** MapViewOfFileEx(0x188, in_h 0x188) failed, Win32 error 6


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



More information about the Cygwin mailing list