public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Cc: Anon User <retry0001-vps@yahoo.com>
Subject: Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
Date: Sat, 01 Feb 2020 15:13:00 -0000	[thread overview]
Message-ID: <20200202001304.80c8ce320446b72ac9ad29d2@nifty.ne.jp> (raw)
In-Reply-To: <595178088.221931.1580542748412@mail.yahoo.com>

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.yano@nifty.ne.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

  reply	other threads:[~2020-02-01 15:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <595178088.221931.1580542748412.ref@mail.yahoo.com>
2020-02-01  7:39 ` Anon User via cygwin
2020-02-01 15:13   ` Takashi Yano [this message]
2020-02-01 17:41   ` Anon User via cygwin
2020-02-01 23:11     ` Takashi Yano
2020-02-01 23:25       ` Anon User via cygwin
2020-02-02  7:01         ` Takashi Yano
2020-02-02  8:31           ` Anon User via cygwin
2020-02-02  8:59             ` Takashi Yano
2020-02-02  9:14               ` Anon User via cygwin
2020-02-02  9:27                 ` Takashi Yano
2020-02-02  9:33                   ` Anon User via cygwin
2020-02-02  9:48                   ` Anon User via cygwin
2020-02-02 18:10                     ` Bengt-Arne Fjellner via cygwin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200202001304.80c8ce320446b72ac9ad29d2@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    --cc=retry0001-vps@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).