From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id 304483858C51 for ; Sat, 9 Apr 2022 17:54:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 304483858C51 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from Express5800-S70 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 239Hs6iY011228; Sun, 10 Apr 2022 02:54:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 239Hs6iY011228 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1649526846; bh=5F3VlRcRnbRIAG3C0t5oyxWdplYyuaOTEQoP90eHrxQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bG+YKjEaFXXeY0pAGxhUkffy9+S6XerxB1krgPxUPiRIxdfkQtd93GTKwATOITni4 iabkkpn5NFoDyBpW7nEMkEB9W/6ApmkWWF6nk460Jl4qdgl/zq+KQIB9tueUBFlS8B XlxyFpRwxxV4mby7/6Udcn2DMXRuw24W+2fpPgwChtceSoO8TUrpd4F7upQbICCLtH Z+O0SSmiJ/k/Yoi0WBStwQGr1nt+raIOxgkj1EwDz5lnsNQ/HJdkIFNDZUxMhbFOWQ sbuan1UvY35o8g40nSFlAWTnQuh7GGmTHQMfi8dqx3A4fK3a+DAeZujKFIIJhtETHs Z3k3VeluK3cow== X-Nifty-SrcIP: [119.150.44.95] Date: Sun, 10 Apr 2022 02:54:10 +0900 From: Takashi Yano To: cygwin@cygwin.com Cc: Alexey Izbyshev Subject: Re: Deadlock of the process tree when running make Message-Id: <20220410025410.196aa0a04368147dbbb31d3e@nifty.ne.jp> In-Reply-To: References: <9388316255ada0e0fcb2d849cce5a894@ispras.ru> <20220409191743.6da2268a36e8c9b4ab22c722@nifty.ne.jp> <1ecd670b1cdff43e0b0d7e5ee4c9cfc5@ispras.ru> <20220409204619.dd0e53902d5e108ef462e510@nifty.ne.jp> <907ce1b4416a826cb07990dd601bd687@ispras.ru> <20220410015753.753e2a238513eaf2a3da81e9@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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: Sat, 09 Apr 2022 17:54:54 -0000 On Sat, 09 Apr 2022 20:23:06 +0300 Alexey Izbyshev wrote: > On 2022-04-09 19:57, Takashi Yano wrote: > > Thank you very much for the information. Can you check if > > the thread pty_master_fwd_thread() in root mintty is still > > alive? > > I don't have mintty because "make" is run via an SSH session. I suppose > I should look into sshd in this case? I've checked an sshd process that > is the parent of this session, and yes, one of its threads is blocked at > https://cygwin.com/git?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/fhandler_tty.cc;h=7bef6958c106c5e78cc90e014081022fd3a205bc;hb=cygwin-3_3_4-release#l2710. Thanks for checking. This seems to be normal. Then, I cannot understand why the ClosePseudoConsole() call is blocked... The document by Microsoft mentions the blocking conditions of ClosePseudoConsole(): https://docs.microsoft.com/en-us/windows/console/closepseudoconsole however, the thread above is draining the channel. -- Takashi Yano