X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 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 AT cygwin DOT com Subject: Re: Deadlock of the process tree when running make Message-Id: <20220410025410.196aa0a04368147dbbb31d3e@nifty.ne.jp> In-Reply-To: References: <9388316255ada0e0fcb2d849cce5a894 AT ispras DOT ru> <20220409191743 DOT 6da2268a36e8c9b4ab22c722 AT nifty DOT ne DOT jp> <1ecd670b1cdff43e0b0d7e5ee4c9cfc5 AT ispras DOT ru> <20220409204619 DOT dd0e53902d5e108ef462e510 AT nifty DOT ne DOT jp> <907ce1b4416a826cb07990dd601bd687 AT ispras DOT ru> <20220410015753 DOT 753e2a238513eaf2a3da81e9 AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 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 AT cygwin DOT 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: , Cc: Alexey Izbyshev Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple