Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: 31 Oct 2001 13:23:18 -0500 Message-ID: <20011031182318.15582.qmail@lizard.curl.com> From: Jonathan Kamens To: cygwin-developers AT cygwin DOT com Subject: "make -j2" hang is not fixed in current repository I suspect you don't want to hear this ;-(, but I just saw one of our automated "make -j2" builds hang in the same fashion it always has in the past, with a cygwin1.dll built from the current repository. Here are the stacks of all the hung make processes. This is the lowermost one: Thread 4 (thread 116.0x113): #0 0x77f762e9 in ?? () #1 0x77f04ede in ?? () Thread 3 (thread 116.0x10d): #0 0x77f682cb in ?? () #1 0x77f1cd76 in ?? () #2 0x6105c115 in wait_subproc () at /u/jik/cygwin-cvs/src/winsup/cygwin/sigproc.cc:1243 #3 0x610052aa in thread_stub (arg=0x610a2a40) at /u/jik/cygwin-cvs/src/winsup/cygwin/debug.cc:98 #4 0x77f04ede in ?? () Thread 2 (thread 116.0x126): #0 0x77f682cb in ?? () #1 0x77f1cd76 in ?? () #2 0x6105bdb9 in wait_sig () at /u/jik/cygwin-cvs/src/winsup/cygwin/sigproc.cc:1128 #3 0x610052aa in thread_stub (arg=0x610a2a40) at /u/jik/cygwin-cvs/src/winsup/cygwin/debug.cc:98 #4 0x77f04ede in ?? () Thread 1 (thread 116.0x6b): #0 0x77f67a5b in ?? () #1 0x61053064 in peek_pipe (s=0x242f114, ignra=0, guard_mutex=0x1b4) at /u/jik/cygwin-cvs/src/winsup/cygwin/select.cc:453 #2 0x61053416 in fhandler_pipe::ready_for_read (this=0x61545228, fd=6, howlong=4294967295, ignra=0) at /u/jik/cygwin-cvs/src/winsup/cygwin/select.cc:512 #3 0x61061e1b in _read (fd=6, ptr=0x242f223, len=1) at /u/jik/cygwin-cvs/src/winsup/cygwin/syscalls.cc:315 #4 0x6108bbb6 in read (fd=6, buf=0x242f223, cnt=1) at /u/jik/cygwin-cvs/src/newlib/libc/syscalls/sysread.c:15 #5 0x61011234 in sigdelayed () at /u/jik/cygwin-cvs/src/winsup/cygwin/exceptions.cc:1229 #6 0x402704 in _size_of_stack_reserve__ () #7 0x41ad27 in _size_of_stack_reserve__ () #8 0x41a1a1 in _size_of_stack_reserve__ () #9 0x418aba in _size_of_stack_reserve__ () #10 0x418710 in _size_of_stack_reserve__ () #11 0x410bdc in _size_of_stack_reserve__ () #12 0x610044fd in dll_crt0_1 () at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:769 #13 0x610047d1 in _dll_crt0 () at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:850 #14 0x61004810 in dll_crt0 (uptr=0x0) at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:862 #15 0x4254f7 in _size_of_stack_reserve__ () #16 0x40103d in _size_of_stack_reserve__ () #17 0x77f1b9ea in ?? () #0 0x77f762e9 in ?? () This is its parent, which has "I" in the first column of its ps output (the others don't): Thread 4 (thread 205.0xaf): #0 0x77f762e9 in ?? () #1 0x77f04ede in ?? () Thread 3 (thread 205.0x107): #0 0x77f682cb in ?? () #1 0x77f1cd76 in ?? () #2 0x6105c115 in wait_subproc () at /u/jik/cygwin-cvs/src/winsup/cygwin/sigproc.cc:1243 #3 0x610052aa in thread_stub (arg=0x610a2a40) at /u/jik/cygwin-cvs/src/winsup/cygwin/debug.cc:98 #4 0x77f04ede in ?? () Thread 2 (thread 205.0xe8): #0 0x77f682cb in ?? () #1 0x77f1cd76 in ?? () #2 0x6105bdb9 in wait_sig () at /u/jik/cygwin-cvs/src/winsup/cygwin/sigproc.cc:1128 #3 0x610052aa in thread_stub (arg=0x610a2a40) at /u/jik/cygwin-cvs/src/winsup/cygwin/debug.cc:98 #4 0x77f04ede in ?? () Thread 1 (thread 205.0xfe): #0 0x77f67f07 in ?? () #1 0x61012b6b in fhandler_base::raw_read (this=0x61545668, ptr=0x242ef23, ulen=1) at /u/jik/cygwin-cvs/src/winsup/cygwin/fhandler.cc:231 #2 0x6101347c in fhandler_base::read (this=0x61545668, in_ptr=0x242ef23, in_len=513) at /u/jik/cygwin-cvs/src/winsup/cygwin/fhandler.cc:484 #3 0x610440a7 in fhandler_pipe::read (this=0x61545668, in_ptr=0x0, in_len=513) at /u/jik/cygwin-cvs/src/winsup/cygwin/pipe.cc:54 #4 0x61061f0e in _read (fd=6, ptr=0x242ef23, len=1) at /u/jik/cygwin-cvs/src/winsup/cygwin/syscalls.cc:334 #5 0x6108bbb6 in read (fd=6, buf=0x242ef23, cnt=1) at /u/jik/cygwin-cvs/src/newlib/libc/syscalls/sysread.c:15 #6 0x61011234 in sigdelayed () at /u/jik/cygwin-cvs/src/winsup/cygwin/exceptions.cc:1229 #7 0x402704 in _size_of_stack_reserve__ () #8 0x41ad27 in _size_of_stack_reserve__ () #9 0x41a1a1 in _size_of_stack_reserve__ () #10 0x418aba in _size_of_stack_reserve__ () #11 0x41a5ce in _size_of_stack_reserve__ () #12 0x4197fa in _size_of_stack_reserve__ () #13 0x418aba in _size_of_stack_reserve__ () #14 0x41a5ce in _size_of_stack_reserve__ () #15 0x4197fa in _size_of_stack_reserve__ () #16 0x418aba in _size_of_stack_reserve__ () #17 0x41a5ce in _size_of_stack_reserve__ () #18 0x4197fa in _size_of_stack_reserve__ () #19 0x418aba in _size_of_stack_reserve__ () #20 0x418710 in _size_of_stack_reserve__ () #21 0x411352 in _size_of_stack_reserve__ () #22 0x610044fd in dll_crt0_1 () at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:769 #23 0x610047d1 in _dll_crt0 () at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:850 #24 0x61004810 in dll_crt0 (uptr=0x0) at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:862 #25 0x4254f7 in _size_of_stack_reserve__ () #26 0x40103d in _size_of_stack_reserve__ () #27 0x77f1b9ea in ?? () #0 0x77f762e9 in ?? () And this is its parent, the top-most make process: Thread 4 (thread 230.0xd1): #0 0x77f762e9 in ?? () #1 0x77f04ede in ?? () Thread 3 (thread 230.0x12b): #0 0x77f682cb in ?? () #1 0x77f1cd76 in ?? () #2 0x6105c115 in wait_subproc () at /u/jik/cygwin-cvs/src/winsup/cygwin/sigproc.cc:1243 #3 0x610052aa in thread_stub (arg=0x610a2a40) at /u/jik/cygwin-cvs/src/winsup/cygwin/debug.cc:98 #4 0x77f04ede in ?? () Thread 2 (thread 230.0xe4): #0 0x77f682cb in ?? () #1 0x77f1cd76 in ?? () #2 0x6105bdb9 in wait_sig () at /u/jik/cygwin-cvs/src/winsup/cygwin/sigproc.cc:1128 #3 0x610052aa in thread_stub (arg=0x610a2a40) at /u/jik/cygwin-cvs/src/winsup/cygwin/debug.cc:98 #4 0x77f04ede in ?? () Thread 1 (thread 230.0x114): #0 0x77f67a5b in ?? () #1 0x61053064 in peek_pipe (s=0x242e834, ignra=0, guard_mutex=0x200) at /u/jik/cygwin-cvs/src/winsup/cygwin/select.cc:453 #2 0x61053416 in fhandler_pipe::ready_for_read (this=0x61543480, fd=6, howlong=4294967295, ignra=0) at /u/jik/cygwin-cvs/src/winsup/cygwin/select.cc:512 #3 0x61061e1b in _read (fd=6, ptr=0x242e943, len=1) at /u/jik/cygwin-cvs/src/winsup/cygwin/syscalls.cc:315 #4 0x6108bbb6 in read (fd=6, buf=0x242e943, cnt=1) at /u/jik/cygwin-cvs/src/newlib/libc/syscalls/sysread.c:15 #5 0x40d034 in _size_of_stack_reserve__ () #6 0x402704 in _size_of_stack_reserve__ () #7 0x41ad27 in _size_of_stack_reserve__ () #8 0x41a1a1 in _size_of_stack_reserve__ () #9 0x418aba in _size_of_stack_reserve__ () #10 0x41a5ce in _size_of_stack_reserve__ () #11 0x4197fa in _size_of_stack_reserve__ () #12 0x418aba in _size_of_stack_reserve__ () #13 0x41a5ce in _size_of_stack_reserve__ () #14 0x4197fa in _size_of_stack_reserve__ () #15 0x418aba in _size_of_stack_reserve__ () #16 0x41a5ce in _size_of_stack_reserve__ () #17 0x4197fa in _size_of_stack_reserve__ () #18 0x418aba in _size_of_stack_reserve__ () #19 0x41a5ce in _size_of_stack_reserve__ () #20 0x4197fa in _size_of_stack_reserve__ () #21 0x418aba in _size_of_stack_reserve__ () #22 0x41a5ce in _size_of_stack_reserve__ () #23 0x4197fa in _size_of_stack_reserve__ () #24 0x418aba in _size_of_stack_reserve__ () #25 0x41a5ce in _size_of_stack_reserve__ () #26 0x4197fa in _size_of_stack_reserve__ () #27 0x418aba in _size_of_stack_reserve__ () #28 0x41a5ce in _size_of_stack_reserve__ () #29 0x4197fa in _size_of_stack_reserve__ () #30 0x418aba in _size_of_stack_reserve__ () #31 0x41a5ce in _size_of_stack_reserve__ () #32 0x4197fa in _size_of_stack_reserve__ () #33 0x418aba in _size_of_stack_reserve__ () #34 0x41a5ce in _size_of_stack_reserve__ () #35 0x4197fa in _size_of_stack_reserve__ () #36 0x418aba in _size_of_stack_reserve__ () #37 0x418710 in _size_of_stack_reserve__ () #38 0x411352 in _size_of_stack_reserve__ () #39 0x610044fd in dll_crt0_1 () at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:769 #40 0x610047d1 in _dll_crt0 () at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:850 #41 0x61004810 in dll_crt0 (uptr=0x0) at /u/jik/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:862 #42 0x4254f7 in _size_of_stack_reserve__ () #43 0x40103d in _size_of_stack_reserve__ () #44 0x77f1b9ea in ?? () #0 0x77f762e9 in ?? () Note that I never got far enough in my testing to confirm that the bug was fixed right when cgf first said he'd checked in a fix; this is the first time I've really done extensive testing. This makes me suspect that perhaps the bug *was* fixed then, especially since cgf managed to duplicate the problem before the fix and couldn't duplicate it afterwards, but somehow got "unfixed" in the meantime. What information can I extract from these hung processes that will help determine what's going on? Thanks, jik