From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107361 invoked by alias); 1 Feb 2020 15:13:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 107354 invoked by uid 89); 1 Feb 2020 15:13:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=takashiyanoniftynejp, H*x:Sylpheed, H*UA:Sylpheed, yano X-HELO: conssluserg-03.nifty.com Received: from conssluserg-03.nifty.com (HELO conssluserg-03.nifty.com) (210.131.2.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Feb 2020 15:13:32 +0000 Received: from Express5800-S70 (ntsitm196171.sitm.nt.ngn.ppp.infoweb.ne.jp [125.0.207.171]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 011FD1Va025057; Sun, 2 Feb 2020 00:13:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 011FD1Va025057 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1580569981; bh=qTaiCiu2RYFySREeBLGimdj1ybX5dwqoKhzQEXll+9c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JSD+sfmp0gMHkpIsPuJnREpvPyb5xfC4CXVavjyM9uTEh+NZ9Z8QcZRiUr9ASI3zs Xp8e0NV8kZeb3tuGjZy+P63bfOeQeKgD0tL7zLF8MzTIh1E5byeZe2CvVUuAMv1wOV YFchna69VhwMqkoPuZb2IGri1mF1ODw9PQvJO7j9lAWpVncFartfaoQrzHMvgDzfRP FNms7CJPZpxgyP375DF/2dHcp4+LR9XpXWlrTHRDhDowtDjfwEzjgKvxd6l/xwNeq4 FXn8cFPZOVIj7Gak72+kpKyxPS+Rhy2VkHG7PVEsodLkmR5aXL9knLhtqmAqgcfdQj bW/dzkEstoa9g== Date: Sat, 01 Feb 2020 15:13:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Cc: Anon User Subject: Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue Message-Id: <20200202001304.80c8ce320446b72ac9ad29d2@nifty.ne.jp> In-Reply-To: <595178088.221931.1580542748412@mail.yahoo.com> References: <595178088.221931.1580542748412.ref@mail.yahoo.com> <595178088.221931.1580542748412@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00005.txt.bz2 On Sat, 1 Feb 2020 07:39:08 +0000 (UTC) "Anon User via cygwin" wrote: > I first reported this problem to the Mintty project at GitHub.  With their help, I was able to debug the issue to the call to forkpty.  I installed tmux and found it also hangs the exact same way.  My guess is any process which makes this fork call will hang in a similar way. Rather than copy/paste the thread, I'd rather just refer you to there : https://github.com/mintty/mintty/issues/960 > > I will also direct link to the strace log I made which includes my comment showing where the hang happens: > https://github.com/mintty/mintty/files/4136651/mintty.strace.log (Line 718 is the hanging point.) > > Also Windows 10's analyze wait chain function in TaskManager shows the process waiting for Network I/O, but we see no evidence of network activity. https://i.imgur.com/Uiw9laH.png > > I haven't seen any other windows applications hang thusly, so I'm at a loss for what I've done to my windows system to have caused this. Otherwise, I'd expect others to share my pain.  Any ideas? What happens if you run the following test code? #include #include #include int main() { int pm, ps; printf("Start.\n"); openpty(&pm, &ps, NULL, NULL, NULL); printf("PTY opened.\n"); close(pm); close(ps); printf("PTY closed.\n"); return 0; } -- Takashi Yano -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple