From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by sourceware.org (Postfix) with ESMTPS id 126803858D28 for ; Thu, 7 Apr 2022 21:53:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 126803858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=ispras.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ispras.ru Received: from mail.ispras.ru (unknown [83.149.199.84]) by mail.ispras.ru (Postfix) with ESMTPSA id CE1774076251 for ; Thu, 7 Apr 2022 21:53:31 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 08 Apr 2022 00:53:31 +0300 From: Alexey Izbyshev To: cygwin@cygwin.com Subject: Deadlock of the process tree when running make User-Agent: Roundcube Webmail/1.4.4 Message-ID: <9388316255ada0e0fcb2d849cce5a894@ispras.ru> X-Sender: izbyshev@ispras.ru Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DOS_RCVD_IP_TWICE_B, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2022 21:53:39 -0000 Hi, I'm using 32-bit Cygwin 3.3.4 on 64-bit Windows 10 21H2. When running parallel make (for testing my project), very rarely I get the whole process tree hanging at some seemingly random point. An example of such a tree: make-+-make-+-bash---find | |-bash---find | |-bash---find | |-bash---find | |-bash---find | `-bash---javac `-make-+-bash---bash---bash---readlink `-bash---bash---bash-+-grep `-grep (In the above tree, javac is the zombie parent of a native javac, and the latter doesn't exist at this point). I got such hang two times while running make in a loop for several days. ProcessHacker shows that all leaf processes are single-threaded and are stuck on WaitForSingleObject(). I've skimmed git log of cygwin-3_3-branch after cygwin-3_3_4-release, but couldn't find anything that seems definitely related. Has anybody seen something like this? Is there any way I can get useful data for diagnosing this hang from the process tree that I currently have hanging (I'm going to keep it for now)? Otherwise, what would be the best strategy? Thanks, Alexey