Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Re: cygwin bughunt (Jip-hee!) Date: Thu, 17 Feb 2005 14:23:42 +0100 Message-ID: <79F81D5F4790D344B05F489CE2AC8AB7146888@dubexdc03.dubex.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "David Dindorp" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j1HDT1Q2028938 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/