delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/02/01/10:14:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=PExyYCRKzPdHSJ97hw17ZfolfAriRNZfDUXc8xzZvc4
D43dLw9O9yMSjXuy9s587w0cqI8m/L7QyctfyantcSP6cvF2jPUsXQCANKKgUmhG
WsfA8KeviCeNkY/qnN4o5VzD4mK06ND9yUoMCGIAfNSIRIEQn8vjnTW33tWi9Bpk
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=ymhDYHczU9aZSadtkGkbgpkfWmw=; b=yY991daNlilxy+0bx
MCifIq99tXCMLydHaYEwfcjqebTL1c+bUf68J2/eicxVAd1TZkjCNtYTb4UxTTPS
bedyjSx4qbv1jZpc6CQy2LW/D3VVyRJb6g8wsuea9O4iUj2dbhe/VDvKRAhBTGd4
vc6+h+MNivtaNxpJUSSTQarlnU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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: Sun, 2 Feb 2020 00:13:04 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Cc: Anon User <retry0001-vps AT yahoo DOT com>
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 DOT 221931 DOT 1580542748412 DOT ref AT mail DOT yahoo DOT com> <595178088 DOT 221931 DOT 1580542748412 AT mail DOT yahoo DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

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 <stdio.h>
#include <unistd.h>
#include <pty.h>

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 <takashi DOT yano AT nifty DOT ne DOT jp>

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019