public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
       [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
  2020-02-01 17:41   ` Anon User via cygwin
  0 siblings, 2 replies; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-01  7:39 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 987 bytes --]

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?

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 34089 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Sat Feb 01 07:36:18 2020

Windows 10 Home Ver 10.0 Build 18362 

Path:	~\bin
	D:\cygwin\sbin
	D:\cygwin\usr\sbin
	D:\cygwin\usr\local\bin
	D:\cygwin\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
	C:\Program Files\Intel\WiFi\bin
	C:\Program Files\Common Files\Intel\WirelessCommon
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\WINDOWS\System32\WindowsPowerShell\v1.0
	C:\Program Files (x86)\AOMEI Backupper
	C:\Users\leon\AppData\Local\Microsoft\WindowsApps

Output from D:\cygwin\bin\id.exe
UID: 197609(leon)
GID: 197121(None)
197121(None)
114(Local account and member of Administrators group)
544(Administrators)
545(Users)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
113(Local account)
4095(CurrentSession)
66048(LOCAL)
262154(NTLM Authentication)
405504(High Mandatory Level)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'leon'
PWD = '/cygdrive/r'
HOME = '/home/leon'

USERDOMAIN = 'WOTAN'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
LANG = 'en_US.UTF-8'
TZ = 'America/New_York'
OPENSSL_CONF = 'C:\OpenSSL-Win32\bin\openssl.cfg'
HOSTNAME = 'wotan'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/home/leon'
EDITOR = 'nano'
USERNAME = 'leon'
LOGONSERVER = '\\WOTAN'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\leon\AppData\Local'
COMPUTERNAME = 'WOTAN'
TEMP.ORIG = 'C:\Users\leon\AppData\Local\Temp'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\leon'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = 'WOTAN'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 158 Stepping 10, GenuineIntel'
TMP = '/tmp'
OneDrive = 'C:\Users\leon\OneDrive'
PROCESSOR_REVISION = '9e0a'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '12'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
VISUAL = 'nano'
APPDATA = 'C:\Users\leon\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
SVN_SSH = 'ssh -l noel'
WINDIR = 'C:\WINDOWS'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
MINTTY_SHORTCUT = '/cygdrive/c/Users/leon/AppData/Roaming/Microsoft/Internet Explorer/Quick Launch/User Pinned/TaskBar/Cygwin Bash.lnk'
PRINTER = 'CutePDF Writer'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
ProgramFiles(x86) = 'C:\Program Files (x86)'
__COMPAT_LAYER = 'RunAsAdmin'
PS1 = '\[\033[1;32m\]\w \$ \[\033[00m\]'
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\leon'
ORIGINAL_PATH = '/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/AOMEI Backupper:/cygdrive/c/Users/leon/AppData/Local/Microsoft/WindowsApps'
EXECIGNORE = '*.dll'
VBOX_MSI_INSTALL_PATH = 'C:\Program Files\Oracle\VirtualBox\'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Console\D:_cygwin_bin_nano.exe
  (default) = 0x0000000a
  ScreenBufferSize = 0x003200d3
  WindowSize = 0x003200d3
  FontFamily = 0x00000036
  FontWeight = 0x00000190
  FaceName = 'Liberation Mono'
  CursorType = 0x00000000
  InterceptCopyPaste = 0x00000000
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
  1720b01b097bf4fc = '\??\D:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
  1720b01b097bf4fc = '\??\D:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'D:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64 (ORPHANED)
  System: Key: 1720b01b097bf4fc Path: D:\cygwin
  User:   Key: e022582115c10879 Path: C:\cygwin64 (ORPHANED)
  User:   Key: 1720b01b097bf4fc Path: D:\cygwin

c:  hd  NTFS    123120Mb  32% CP CS UN PA FC    QU  OS
d:  hd  NTFS    476810Mb  28% CP CS UN PA FC    QU  Data
r:  hd  NTFS      1023Mb   3% CP CS UN PA FC    QU  RamDisk

D:\cygwin        /          system  binary,auto
D:\cygwin\bin    /usr/bin   system  binary,auto
D:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: D:\cygwin\bin\awk
 -> D:\cygwin\bin\gawk.exe
Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: C:\Windows\system32\certutil.exe
Found: C:\WINDOWS\system32\certutil.exe
Not Found: clinfo
Found: C:\Windows\system32\comp.exe
Found: C:\WINDOWS\system32\comp.exe
Found: C:\Windows\system32\convert.exe
Found: C:\WINDOWS\system32\convert.exe
Found: D:\cygwin\bin\cp.exe
Found: D:\cygwin\bin\cpp.exe
Found: D:\cygwin\bin\crontab.exe
Found: D:\cygwin\bin\curl.exe
Found: C:\Windows\system32\curl.exe
Warning: D:\cygwin\bin\curl.exe hides C:\Windows\system32\curl.exe
Found: C:\WINDOWS\system32\curl.exe
Warning: D:\cygwin\bin\curl.exe hides C:\WINDOWS\system32\curl.exe
Found: D:\cygwin\bin\expand.exe
Found: C:\Windows\system32\expand.exe
Warning: D:\cygwin\bin\expand.exe hides C:\Windows\system32\expand.exe
Found: C:\WINDOWS\system32\expand.exe
Warning: D:\cygwin\bin\expand.exe hides C:\WINDOWS\system32\expand.exe
Found: D:\cygwin\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: D:\cygwin\bin\find.exe hides C:\Windows\system32\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: D:\cygwin\bin\find.exe hides C:\WINDOWS\system32\find.exe
Found: C:\Windows\system32\ftp.exe
Found: C:\WINDOWS\system32\ftp.exe
Found: D:\cygwin\bin\gcc.exe
Not Found: gdb
Found: D:\cygwin\bin\grep.exe
Found: D:\cygwin\bin\hostname.exe
Found: C:\Windows\system32\hostname.exe
Warning: D:\cygwin\bin\hostname.exe hides C:\Windows\system32\hostname.exe
Found: C:\WINDOWS\system32\hostname.exe
Warning: D:\cygwin\bin\hostname.exe hides C:\WINDOWS\system32\hostname.exe
Found: D:\cygwin\bin\kill.exe
Found: C:\Windows\system32\klist.exe
Found: C:\WINDOWS\system32\klist.exe
Found: D:\cygwin\bin\ld.exe
Found: D:\cygwin\bin\ls.exe
Found: D:\cygwin\bin\make.exe
Found: D:\cygwin\bin\mv.exe
Found: C:\Windows\system32\nslookup.exe
Found: C:\WINDOWS\system32\nslookup.exe
Not Found: patch
Not Found: perl
Found: C:\Windows\system32\replace.exe
Found: C:\WINDOWS\system32\replace.exe
Found: D:\cygwin\bin\rm.exe
Found: D:\cygwin\bin\sed.exe
Found: D:\cygwin\bin\sh.exe
Found: C:\Windows\system32\shutdown.exe
Found: C:\WINDOWS\system32\shutdown.exe
Found: D:\cygwin\bin\sort.exe
Found: C:\Windows\system32\sort.exe
Warning: D:\cygwin\bin\sort.exe hides C:\Windows\system32\sort.exe
Found: C:\WINDOWS\system32\sort.exe
Warning: D:\cygwin\bin\sort.exe hides C:\WINDOWS\system32\sort.exe
Found: D:\cygwin\bin\ssh.exe
Found: D:\cygwin\bin\tar.exe
Found: C:\Windows\system32\tar.exe
Warning: D:\cygwin\bin\tar.exe hides C:\Windows\system32\tar.exe
Found: C:\WINDOWS\system32\tar.exe
Warning: D:\cygwin\bin\tar.exe hides C:\WINDOWS\system32\tar.exe
Found: D:\cygwin\bin\test.exe
Found: D:\cygwin\bin\timeout.exe
Found: C:\Windows\system32\timeout.exe
Warning: D:\cygwin\bin\timeout.exe hides C:\Windows\system32\timeout.exe
Found: C:\WINDOWS\system32\timeout.exe
Warning: D:\cygwin\bin\timeout.exe hides C:\WINDOWS\system32\timeout.exe
Found: D:\cygwin\bin\vi.exe
Not Found: vim
Found: D:\cygwin\bin\whoami.exe
Found: C:\Windows\system32\whoami.exe
Warning: D:\cygwin\bin\whoami.exe hides C:\Windows\system32\whoami.exe
Found: C:\WINDOWS\system32\whoami.exe
Warning: D:\cygwin\bin\whoami.exe hides C:\WINDOWS\system32\whoami.exe

  168k 2018/10/02 D:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygapr-1-0.dll" v0.0 ts=2018-10-02 16:36
  142k 2017/10/23 D:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygaprutil-1-0.dll" v0.0 ts=2017-10-24 00:13
   39k 2016/09/19 D:\cygwin\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   65k 2019/05/02 D:\cygwin\bin\cygassuan-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygassuan-0.dll" v0.0 ts=2019-05-02 12:33
   29k 2018/12/09 D:\cygwin\bin\cygatomic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygatomic-1.dll" v0.0 ts=2018-12-08 22:53
   19k 2018/12/20 D:\cygwin\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2018-12-20 09:48
  246k 2019/03/05 D:\cygwin\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2019-03-05 20:06
  129k 2019/05/13 D:\cygwin\bin\cygbrotlicommon-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlicommon-1.dll" v0.0 ts=2019-05-13 02:33
   48k 2019/05/13 D:\cygwin\bin\cygbrotlidec-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlidec-1.dll" v0.0 ts=2019-05-13 02:33
   66k 2019/07/21 D:\cygwin\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2019-07-22 00:05
   10k 2015/02/20 D:\cygwin\bin\cygcharset-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcharset-1.dll" v0.0 ts=2015-02-20 17:07
   13k 2019/01/02 D:\cygwin\bin\cygcom_err-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcom_err-2.dll" v0.0 ts=2019-01-02 02:39
   39k 2017/09/03 D:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2017-09-03 08:18
  194k 2019/04/03 D:\cygwin\bin\cygcrypt-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-2.dll" v0.0 ts=2019-04-03 22:05
 2363k 2019/09/11 D:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2019-09-11 18:40
 2416k 2019/09/13 D:\cygwin\bin\cygcrypto-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.1.dll" v0.0 ts=2019-09-13 18:36
  554k 2019/09/18 D:\cygwin\bin\cygcurl-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygcurl-4.dll" v0.0 ts=2019-09-18 02:12
 1552k 2017/09/28 D:\cygwin\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2017-09-28 20:05
  119k 2017/09/28 D:\cygwin\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2017-09-28 20:06
  569k 2017/09/28 D:\cygwin\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2017-09-28 20:06
  154k 2013/10/20 D:\cygwin\bin\cygedit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygedit-0.dll" v0.0 ts=2013-10-20 21:56
  229k 2016/01/08 D:\cygwin\bin\cygevent-2-0-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygevent-2-0-5.dll" v0.0 ts=2016-01-08 07:24
  136k 2016/01/08 D:\cygwin\bin\cygevent_core-2-0-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygevent_core-2-0-5.dll" v0.0 ts=2016-01-08 07:24
  106k 2016/01/08 D:\cygwin\bin\cygevent_extra-2-0-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygevent_extra-2-0-5.dll" v0.0 ts=2016-01-08 07:24
   21k 2016/01/08 D:\cygwin\bin\cygevent_openssl-2-0-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygevent_openssl-2-0-5.dll" v0.0 ts=2016-01-08 07:24
   10k 2016/01/08 D:\cygwin\bin\cygevent_pthreads-2-0-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygevent_pthreads-2-0-5.dll" v0.0 ts=2016-01-08 07:24
  181k 2018/09/27 D:\cygwin\bin\cygexpat-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygexpat-1.dll" v0.0 ts=2018-09-27 18:30
   73k 2016/08/26 D:\cygwin\bin\cygexslt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygexslt-0.dll" v0.0 ts=2016-08-26 22:10
  347k 2019/03/05 D:\cygwin\bin\cygfdisk-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygfdisk-1.dll" v0.0 ts=2019-03-05 20:06
   27k 2015/11/17 D:\cygwin\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   56k 2019/07/28 D:\cygwin\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2019-07-28 17:33
  137k 2019/03/29 D:\cygwin\bin\cyggc-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggc-1.dll" v0.0 ts=2019-03-29 22:16
   70k 2018/12/09 D:\cygwin\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2018-12-08 19:56
 1099k 2018/03/19 D:\cygwin\bin\cyggcrypt-20.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcrypt-20.dll" v0.0 ts=2018-03-19 20:09
   46k 2019/07/10 D:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-4.dll" v0.0 ts=2019-07-10 15:06
  583k 2020/01/28 D:\cygwin\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2020-01-28 19:20
   21k 2020/01/28 D:\cygwin\bin\cyggmpxx-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmpxx-4.dll" v0.0 ts=2020-01-28 19:20
 1472k 2019/07/29 D:\cygwin\bin\cyggnutls-30.dll - os=4.0 img=0.0 sys=5.2
                  "cyggnutls-30.dll" v0.0 ts=2019-07-29 03:55
  148k 2018/12/09 D:\cygwin\bin\cyggomp-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggomp-1.dll" v0.0 ts=2018-12-08 20:21
   95k 2018/03/19 D:\cygwin\bin\cyggpg-error-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggpg-error-0.dll" v0.0 ts=2018-03-19 19:27
  274k 2018/03/16 D:\cygwin\bin\cyggssapi_krb5-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyggssapi_krb5-2.dll" v0.0 ts=2018-03-16 03:38
 1333k 2018/08/07 D:\cygwin\bin\cygguile-2.0-22.dll - os=4.0 img=0.0 sys=5.2
                  "cygguile-2.0-22.dll" v0.0 ts=2018-08-07 08:10
   33k 2017/02/13 D:\cygwin\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2017-02-11 22:39
  168k 2019/02/19 D:\cygwin\bin\cyghogweed-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyghogweed-4.dll" v0.0 ts=2019-02-19 06:59
 1009k 2015/02/20 D:\cygwin\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
  197k 2017/05/02 D:\cygwin\bin\cygidn-11.dll - os=4.0 img=0.0 sys=5.2
                  "cygidn-11.dll" v0.0 ts=2017-05-02 01:18
  114k 2019/07/29 D:\cygwin\bin\cygidn2-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygidn2-0.dll" v0.0 ts=2019-07-29 03:22
   42k 2016/10/23 D:\cygwin\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2016-10-23 07:17
  294k 2013/09/09 D:\cygwin\bin\cygiodbc-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiodbc-2.dll" v0.0 ts=2013-09-09 16:36
   66k 2013/09/09 D:\cygwin\bin\cygiodbcinst-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiodbcinst-2.dll" v0.0 ts=2013-09-09 16:35
 1304k 2017/11/04 D:\cygwin\bin\cygisl-15.dll - os=4.0 img=0.0 sys=5.2
                  "cygisl-15.dll" v0.0 ts=2017-11-04 20:36
  192k 2018/03/16 D:\cygwin\bin\cygk5crypto-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygk5crypto-3.dll" v0.0 ts=2018-03-16 03:37
  754k 2018/03/16 D:\cygwin\bin\cygkrb5-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5-3.dll" v0.0 ts=2018-03-16 03:37
   37k 2018/03/16 D:\cygwin\bin\cygkrb5support-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5support-0.dll" v0.0 ts=2018-03-16 03:36
  202k 2017/06/29 D:\cygwin\bin\cygksba-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygksba-8.dll" v0.0 ts=2017-06-29 19:29
   46k 2019/08/01 D:\cygwin\bin\cyglber-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyglber-2-4-2.dll" v0.0 ts=2019-08-01 07:41
  253k 2019/08/01 D:\cygwin\bin\cygldap-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygldap-2-4-2.dll" v0.0 ts=2019-08-01 07:42
  270k 2019/08/01 D:\cygwin\bin\cygldap_r-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygldap_r-2-4-2.dll" v0.0 ts=2019-08-01 07:46
   35k 2019/07/28 D:\cygwin\bin\cygltdl-7.dll - os=4.0 img=0.0 sys=5.2
                  "cygltdl-7.dll" v0.0 ts=2019-07-28 17:44
   73k 2017/06/19 D:\cygwin\bin\cyglz4-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyglz4-1.dll" v0.0 ts=2017-06-19 15:40
  144k 2019/07/21 D:\cygwin\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2019-07-22 00:15
  125k 2018/03/18 D:\cygwin\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2018-03-18 15:17
  168k 2018/01/23 D:\cygwin\bin\cygman-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   22k 2018/01/23 D:\cygwin\bin\cygmandb-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   28k 2019/07/28 D:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2019-07-28 17:32
   42k 2013/08/12 D:\cygwin\bin\cygmetalink-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmetalink-3.dll" v0.0 ts=2013-08-13 00:02
   92k 2018/03/17 D:\cygwin\bin\cygmpc-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpc-3.dll" v0.0 ts=2018-03-17 17:05
  432k 2019/02/02 D:\cygwin\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2019-02-02 18:25
 3492k 2018/02/06 D:\cygwin\bin\cygmysqlclient-18.dll - os=4.0 img=18.0 sys=5.2
                  "cygmysqlclient-18.dll" v0.0 ts=2018-02-06 05:23
  301k 2019/07/28 D:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2019-07-28 17:30
  205k 2019/02/19 D:\cygwin\bin\cygnettle-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygnettle-6.dll" v0.0 ts=2019-02-19 06:59
  144k 2019/03/27 D:\cygwin\bin\cygnghttp2-14.dll - os=4.0 img=0.0 sys=5.2
                  "cygnghttp2-14.dll" v0.0 ts=2019-03-27 04:05
   15k 2018/08/03 D:\cygwin\bin\cygnpth-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygnpth-0.dll" v0.0 ts=2018-08-03 15:26
 1013k 2019/02/20 D:\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2019-02-20 07:21
   14k 2019/07/28 D:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2019-07-28 17:32
  467k 2019/04/05 D:\cygwin\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2019-04-05 01:59
   41k 2019/09/12 D:\cygwin\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2019-09-12 19:52
   52k 2019/02/20 D:\cygwin\bin\cygpkgconf-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygpkgconf-3.dll" v0.0 ts=2019-02-20 02:06
  185k 2019/07/21 D:\cygwin\bin\cygpng16-16.dll - os=4.0 img=0.0 sys=5.2
                  "cygpng16-16.dll" v0.0 ts=2019-07-22 00:15
   41k 2016/07/13 D:\cygwin\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2016-07-13 06:16
  266k 2019/11/29 D:\cygwin\bin\cygpq-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygpq-5.dll" v0.0 ts=2019-11-29 07:25
   65k 2019/07/21 D:\cygwin\bin\cygpsl-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygpsl-5.dll" v0.0 ts=2019-07-21 19:18
  315k 2018/12/09 D:\cygwin\bin\cygquadmath-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygquadmath-0.dll" v0.0 ts=2018-12-08 22:57
  219k 2017/02/13 D:\cygwin\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2017-02-11 22:39
   99k 2020/01/09 D:\cygwin\bin\cygsasl2-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygsasl2-3.dll" v0.0 ts=2020-01-09 02:13
   85k 2016/12/10 D:\cygwin\bin\cygserf-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygserf-1-0.dll" v0.0 ts=2016-12-10 21:55
   11k 2015/07/17 D:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
  150k 2019/03/05 D:\cygwin\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2019-03-05 20:06
  988k 2019/10/08 D:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsqlite3-0.dll" v0.0 ts=2019-10-08 14:45
  449k 2019/05/02 D:\cygwin\bin\cygssh-4.dll - os=4.0 img=4.7 sys=5.2
                  "cygssh-4.dll" v0.0 ts=2019-05-02 16:11
  408k 2019/09/11 D:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2019-09-11 18:40
  495k 2019/09/13 D:\cygwin\bin\cygssl-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.1.dll" v0.0 ts=2019-09-13 18:36
 1400k 2018/12/09 D:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2018-12-08 21:15
  534k 2020/01/09 D:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_client-1-0.dll" v0.0 ts=2020-01-09 23:22
  102k 2020/01/09 D:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_delta-1-0.dll" v0.0 ts=2020-01-09 23:11
   88k 2020/01/09 D:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_diff-1-0.dll" v0.0 ts=2020-01-09 23:11
   40k 2020/01/09 D:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_fs-1-0.dll" v0.0 ts=2020-01-09 23:14
  163k 2020/01/09 D:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2020-01-09 23:12
  291k 2020/01/09 D:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2020-01-09 23:13
   12k 2020/01/09 D:\cygwin\bin\cygsvn_fs_util-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_fs_util-1-0.dll" v0.0 ts=2020-01-09 23:11
  285k 2020/01/09 D:\cygwin\bin\cygsvn_fs_x-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_fs_x-1-0.dll" v0.0 ts=2020-01-09 23:13
   46k 2020/01/09 D:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_ra-1-0.dll" v0.0 ts=2020-01-09 23:20
   33k 2020/01/09 D:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2020-01-09 23:15
  179k 2020/01/09 D:\cygwin\bin\cygsvn_ra_serf-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_ra_serf-1-0.dll" v0.0 ts=2020-01-09 23:12
  112k 2020/01/09 D:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2020-01-09 23:12
  226k 2020/01/09 D:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_repos-1-0.dll" v0.0 ts=2020-01-09 23:14
  741k 2020/01/09 D:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_subr-1-0.dll" v0.0 ts=2020-01-09 23:11
  705k 2020/01/09 D:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsvn_wc-1-0.dll" v0.0 ts=2020-01-09 23:13
   68k 2019/07/29 D:\cygwin\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2019-07-29 03:12
   57k 2019/07/28 D:\cygwin\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2019-07-28 17:31
 1612k 2018/08/16 D:\cygwin\bin\cygunistring-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygunistring-2.dll" v0.0 ts=2018-08-16 20:33
  124k 2017/06/19 D:\cygwin\bin\cygusb-1.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygusb-1.0.dll" v0.0 ts=2017-06-19 14:32
   27k 2019/03/05 D:\cygwin\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2019-03-05 20:06
 1222k 2019/03/26 D:\cygwin\bin\cygxml2-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygxml2-2.dll" v0.0 ts=2019-03-26 01:39
  394k 2017/05/03 D:\cygwin\bin\cygxmlsec1-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygxmlsec1-1.dll" v0.0 ts=2017-05-03 19:40
  238k 2017/05/03 D:\cygwin\bin\cygxmlsec1-openssl-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygxmlsec1-openssl-1.dll" v0.0 ts=2017-05-03 19:40
  209k 2016/08/26 D:\cygwin\bin\cygxslt-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygxslt-1.dll" v0.0 ts=2016-08-26 22:10
   83k 2017/03/03 D:\cygwin\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2017-03-03 21:42
 3508k 2019/12/21 D:\cygwin\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2019-12-21 15:25
    Cygwin DLL version info:
        DLL version: 3.1.2
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 340
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : cron                
Display name        : Cron daemon
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -n
stdin path          : /dev/null
stdout path         : /var/log/cron.log
stderr path         : /var/log/cron.log
Environment         : CYGWIN=" " TMP="/tmp" TEMP="/tmp" 
Process Type        : Own Process
Startup             : Automatic
Account             : .\leon

Service             : cygsshd             
Display name        : CYGWIN cygsshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/cygsshd.log
stderr path         : /var/log/cygsshd.log
Process Type        : Own Process
Startup             : Manual
Dependencies        : tcpip
Account             : LocalSystem


Cygwin Package Information
Last downloaded files to: D:\cygwin
Last downloaded files from: http://mirrors.sonic.net/cygwin/

Package                  Version            Status
_autorebase              001007-1           OK
alternatives             1.3.30c-10         OK
base-cygwin              3.8-1              OK
base-files               4.3-2              OK
bash                     4.4.12-3           OK
bc                       1.06.95-2          OK
binutils                 2.29-1             OK
bzip2                    1.0.8-1            OK
ca-certificates          2.32-1             OK
coreutils                8.26-2             OK
cron                     4.1-65             OK
Empty package crypt
crypt                    2.1-1              OK
crypto-policies          20190218-1         OK
csih                     0.9.11-1           OK
curl                     7.66.0-1           OK
cygrunsrv                1.62-1             OK
cygutils                 1.4.16-2           OK
cygwin                   3.1.2-1            OK
cygwin-devel             3.1.2-1            OK
dash                     0.5.9.1-1          OK
diffutils                3.5-2              OK
dos2unix                 7.4.1-1            OK
editrights               1.03-1             OK
file                     5.32-1             OK
findutils                4.6.0-1            OK
gawk                     5.0.1-1            OK
gcc-core                 7.4.0-1            OK
getent                   2.18.90-4          OK
Empty package gmp
gmp                      6.2.0-1            OK
gnupg2                   2.2.19-1           OK
grep                     3.0-2              OK
groff                    1.22.4-1           OK
gzip                     1.8-1              OK
hostname                 3.13-1             OK
info                     6.7-1              OK
ipc-utils                1.0-2              OK
less                     551-1              OK
libapr1                  1.6.5-1            OK
libaprutil1              1.6.1-1            OK
libargp                  20110921-3         OK
libassuan0               2.5.3-1            OK
libatomic1               7.4.0-1            OK
libattr1                 2.4.48-2           OK
libblkid1                2.33.1-1           OK
libbrotlicommon1         1.0.7-1            OK
libbrotlidec1            1.0.7-1            OK
libbz2_1                 1.0.8-1            OK
libcharset1              1.14-3             OK
libcom_err2              1.44.5-1           OK
libcrypt0                2.1-1              OK
libcrypt2                4.4.4-1            OK
libcurl4                 7.66.0-1           OK
libdb5.3                 5.3.28-2           OK
libedit0                 20130712-1         OK
libevent2.0_5            2.0.22-1           OK
libexpat1                2.2.6-1            OK
libfdisk1                2.33.1-1           OK
libffi6                  3.2.1-2            OK
libgc1                   8.0.4-1            OK
libgcc1                  7.4.0-1            OK
libgcrypt-devel          1.8.2-1            OK
libgcrypt20              1.8.2-1            OK
libgdbm4                 1.13-1             OK
libgmp-devel             6.2.0-1            OK
libgmp10                 6.2.0-1            OK
libgmpxx4                6.2.0-1            OK
libgnutls30              3.6.9-1            OK
libgomp1                 7.4.0-1            OK
libgpg-error-devel       1.28-1             OK
libgpg-error0            1.28-1             OK
libgssapi_krb5_2         1.15.2-2           OK
libguile2.0_22           2.0.14-3           OK
libhogweed4              3.4.1-1            OK
libiconv                 1.14-3             OK
libiconv-devel           1.14-3             OK
libiconv2                1.14-3             OK
libidn11                 1.33-1             OK
libidn2_0                2.2.0-1            OK
libintl8                 0.19.8.1-2         OK
libiodbc2                3.52.8-2           OK
libisl15                 0.16.1-1           OK
libk5crypto3             1.15.2-2           OK
libkrb5_3                1.15.2-2           OK
libkrb5support0          1.15.2-2           OK
libksba8                 1.3.5-1            OK
libltdl7                 2.4.6-7            OK
liblz4_1                 1.7.5-1            OK
liblzma-devel            5.2.4-1            OK
liblzma5                 5.2.4-1            OK
libmetalink3             0.1.2-1            OK
libmpc3                  1.1.0-1            OK
libmpfr6                 4.0.2-1            OK
libmysqlclient18         10.1.30-1          OK
libncursesw10            6.1-1.20190727     OK
libnettle6               3.4.1-1            OK
libnghttp2_14            1.37.0-1           OK
libnpth0                 1.6-1              OK
libopenldap2_4_2         2.4.48-1           OK
libp11-kit0              0.23.15-1          OK
libpcre1                 8.43-1             OK
libpipeline1             1.5.1-1            OK
libpkgconf3              1.6.0-1            OK
libpng16                 1.6.37-1           OK
libpopt-common           1.16-2             OK
libpopt0                 1.16-2             OK
libpq5                   12.1-1             OK
libpsl5                  0.21.0-1           OK
libquadmath0             7.4.0-1            OK
libreadline7             7.0.3-3            OK
libsasl2_3               2.1.27-1           OK
libserf1_0               1.3.9-1            OK
libsigsegv2              2.10-2             OK
libsmartcols1            2.33.1-1           OK
libsqlite3_0             3.30.0-1           OK
libssh-common            0.8.7-1            OK
libssh4                  0.8.7-1            OK
libssl-devel             1.1.1d-1           OK
libssl1.0                1.0.2t-1           OK
libssl1.1                1.1.1d-1           OK
libstdc++6               7.4.0-1            OK
libtasn1_6               4.14-1             OK
libtool                  2.4.6-7            OK
libunistring2            0.9.10-1           OK
libusb1.0                1.0.21-1           OK
libuuid1                 2.33.1-1           OK
libxml2                  2.9.9-2            OK
libxml2-devel            2.9.9-2            OK
libxmlsec1-devel         1.2.24-1           OK
libxmlsec1-openssl-devel 1.2.24-1           OK
libxmlsec1-openssl1      1.2.24-1           OK
libxmlsec1_1             1.2.24-1           OK
libxslt                  1.1.29-1           OK
libxslt-devel            1.1.29-1           OK
login                    1.13-1             OK
make                     4.2.1-2            OK
man-db                   2.7.6.1-1          OK
mariadb-common           3.0.9-1            OK
mintty                   3.1.0-1            OK
mysql-common             10.3.14-1          OK
nano                     4.3-1              OK
ncurses                  6.1-1.20190727     OK
openssh                  8.1p1-1            OK
openssl                  1.1.1d-1           OK
optipng                  0.7.7-1            OK
p11-kit                  0.23.15-1          OK
p11-kit-trust            0.23.15-1          OK
p7zip                    15.14.1-1          OK
pinentry                 1.0.0-2            OK
pkg-config               1.6.0-1            OK
pkgconf                  1.6.0-1            OK
publicsuffix-list-dafsa  20190717-1         OK
rebase                   4.4.4-1            OK
rsync                    3.1.2-1            OK
run                      1.3.4-2            OK
sed                      4.4-1              OK
smartmontools            7.1-1              OK
subversion               1.13.0-1           OK
tar                      1.29-1             OK
terminfo                 6.1-1.20190727     OK
terminfo-extra           6.1-1.20190727     OK
tmux                     2.6-1              OK
tzcode                   2019c-1            OK
tzdata                   2019c-1            OK
util-linux               2.33.1-1           OK
vim-minimal              8.1.1772-1         OK
w32api-headers           7.0.0-1            OK
w32api-runtime           7.0.0-1            OK
wget                     1.19.1-2           OK
which                    2.20-2             OK
whois                    5.4.0-1            OK
windows-default-manifest 6.4-1              OK
xz                       5.2.4-1            OK
zlib-devel               1.2.11-1           OK
zlib0                    1.2.11-1           OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  2020-02-01  7:39 ` Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue Anon User via cygwin
@ 2020-02-01 15:13   ` Takashi Yano
  2020-02-01 17:41   ` Anon User via cygwin
  1 sibling, 0 replies; 13+ messages in thread
From: Takashi Yano @ 2020-02-01 15:13 UTC (permalink / raw)
  To: cygwin; +Cc: Anon User

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  2020-02-01  7:39 ` Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue Anon User via cygwin
  2020-02-01 15:13   ` Takashi Yano
@ 2020-02-01 17:41   ` Anon User via cygwin
  2020-02-01 23:11     ` Takashi Yano
  1 sibling, 1 reply; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-01 17:41 UTC (permalink / raw)
  To: cygwin

What happens is it hangs on that openpty() call.  It displays Start immediately.  But then around a minute later it shows the rest.

$ ./a.exe
Start.
** hangs here about 1 minute **
PTY opened.
PTY closed.

I took the liberty of adding time() calls just before and after the openpty() call:

$ ./a.exe
Start.
1580578712
PTY opened.
1580578772
PTY closed.

It turns out to be exactly 1 minute -- like there's a 60 second timeout waiting for something...

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  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
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Yano @ 2020-02-01 23:11 UTC (permalink / raw)
  To: cygwin; +Cc: Anon User

On Sat, 1 Feb 2020 17:40:52 +0000 (UTC)
"Anon User via cygwin" wrote:
> $ ./a.exe
> Start.
> ** hangs here about 1 minute **
> PTY opened.
> PTY closed.

Thanks for testing.

Could you please let us know the result of
md5sum /bin/cygwin-console-helper.exe

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  2020-02-01 23:11     ` Takashi Yano
@ 2020-02-01 23:25       ` Anon User via cygwin
  2020-02-02  7:01         ` Takashi Yano
  0 siblings, 1 reply; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-01 23:25 UTC (permalink / raw)
  To: cygwin

$ md5sum /bin/cygwin-console-helper.exe
221bdfff7c8ccd1227bacb025bba665b */bin/cygwin-console-helper.exe


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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  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
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Yano @ 2020-02-02  7:01 UTC (permalink / raw)
  To: cygwin; +Cc: Anon User

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

On Sat, 1 Feb 2020 23:25:08 +0000 (UTC)
"Anon User via cygwin" wrote:
> $ md5sum /bin/cygwin-console-helper.exe
> 221bdfff7c8ccd1227bacb025bba665b */bin/cygwin-console-helper.exe

This is the right md5sum value.
Then, how about the attached test case?

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

[-- Attachment #2: pcon_test_1min.c --]
[-- Type: text/x-csrc, Size: 1729 bytes --]

#define _WIN32_WINNT 0x0a00
#include <windows.h>
#include <stdio.h>

typedef void *HPCON;
#ifndef PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE
#define PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE 0x00020016L
#endif
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif

DWORD WINAPI PipeWriter(LPVOID pipe);
DWORD WINAPI PipeReader(LPVOID pipe);

int main()
{
	HMODULE h;
	FARPROC f;
	COORD size;
	HPCON hpCon;
	HANDLE inR, inW, outR, outW;
	HRESULT (WINAPI *CreatePseudoConsole)(COORD, HANDLE, HANDLE, DWORD, HPCON*);
	VOID (WINAPI *ClosePseudoConsole)(HPCON);

	h = GetModuleHandle("kernel32.dll");
	if (h == INVALID_HANDLE_VALUE) {
		fprintf(stderr, "GetModuleHandle() failed.\n");
		return 1;
	}
	f = GetProcAddress(h, "CreatePseudoConsole");
	if (f == NULL) {
		fprintf(stderr, "GetProcAddress() failed.\n");
		return 1;
	}
	CreatePseudoConsole = (HRESULT (WINAPI *)(COORD, HANDLE, HANDLE, DWORD, HPCON*))f;
	f = GetProcAddress(h, "ClosePseudoConsole");
	if (f == NULL) {
		fprintf(stderr, "GetProcAddress() failed.\n");
		return 1;
	}
	ClosePseudoConsole = (VOID (WINAPI *)(HPCON))f;
	CloseHandle(h);

	if (!CreatePipe(&inR, &inW, NULL, 0)) {
		fprintf(stderr, "CreatePipe() failed.\n");
		return 1;
	}
	if (!CreatePipe(&outR, &outW, NULL, 0)) {
		fprintf(stderr, "CreatePipe() failed.\n");
		return 1;
	}

	size.X = 80;
	size.Y = 24;

	printf("Started.\n");
	if (S_OK != CreatePseudoConsole(size, inR, outW, 0, &hpCon)) {
		fprintf(stderr, "CreatePseudoConsole() failed.\n");
		return 1;
	}
	printf("CreatePseudoConsole() end.\n");

	CloseHandle(inR);
	CloseHandle(outW);
	ClosePseudoConsole(hpCon);
	CloseHandle(inW);
	CloseHandle(outR);
	printf("ClosePseudoConsole() end.\n");

	return 0;
}


[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  2020-02-02  7:01         ` Takashi Yano
@ 2020-02-02  8:31           ` Anon User via cygwin
  2020-02-02  8:59             ` Takashi Yano
  0 siblings, 1 reply; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-02  8:31 UTC (permalink / raw)
  To: cygwin

Same behavior as mintty, tmux, the previous test case, with TaskManager's analyze wait chain saying it's waiting on Network I/O.

 $ ./a.exeStarted.
** 1 min wait here **
CreatePseudoConsole() end.ClosePseudoConsole() end.



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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  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
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Yano @ 2020-02-02  8:59 UTC (permalink / raw)
  To: cygwin; +Cc: Anon User

On Sun, 2 Feb 2020 08:31:51 +0000 (UTC)
"Anon User via cygwin" wrote:
> Same behavior as mintty, tmux, the previous test case, with TaskManager's analyze wait chain saying it's waiting on Network I/O.
> 
>  $ ./a.exeStarted.
> ** 1 min wait here **
> CreatePseudoConsole() end.ClosePseudoConsole() end.

From this result, it seems that this is not a cygwin problem.
But your system has a problem regarding CreatePseudoConsole() call.

I guess Microsoft's OpenSSH server also behaves the same.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  2020-02-02  8:59             ` Takashi Yano
@ 2020-02-02  9:14               ` Anon User via cygwin
  2020-02-02  9:27                 ` Takashi Yano
  0 siblings, 1 reply; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-02  9:14 UTC (permalink / raw)
  To: cygwin

 Not sure how to confirm that.  I install the built-in OpenSSH client/server app.  Then I start the OpenSSH server service.  Then I ssh to 127.0.0.1 and login fine.  There is no waiting on the service starting up nor on the ssh client connecting to the daemon and getting a shell (Windows 'DOS' shell though, not bash). I have not seen this hanging outside cygwin yet.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  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
  0 siblings, 2 replies; 13+ messages in thread
From: Takashi Yano @ 2020-02-02  9:27 UTC (permalink / raw)
  To: cygwin; +Cc: Anon User

On Sun, 2 Feb 2020 09:14:25 +0000 (UTC)
"Anon User via cygwin" wrote:
>  Not sure how to confirm that.  I install the built-in OpenSSH client/server app.  Then I start the OpenSSH server service.  Then I ssh to 127.0.0.1 and login fine.  There is no waiting on the service starting up nor on the ssh client connecting to the daemon and getting a shell (Windows 'DOS' shell though, not bash). I have not seen this hanging outside cygwin yet.

Hmm. Then, could you please compile the previous test case
using x86_64-w64-mingw32-gcc (mingw compiler) and run the
program in pure command prompt (witout cygwin)?

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  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
  1 sibling, 0 replies; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-02  9:33 UTC (permalink / raw)
  To: cygwin, Takashi Yano

 Sure. I'm willing to try it. Where do I get that compiler from?

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  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
  1 sibling, 1 reply; 13+ messages in thread
From: Anon User via cygwin @ 2020-02-02  9:48 UTC (permalink / raw)
  To: cygwin

OK I found it.  You're right. The same outcome occurs.  So I guess it's not cygwin specific.  Sorry to have wasted your time.  I guess my Windows install is messed up somehow. I wish I could get the feedback I need to figure out what I did to have caused this.  I have tried countless searches online for the analyze wait chain result.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
  2020-02-02  9:48                   ` Anon User via cygwin
@ 2020-02-02 18:10                     ` Bengt-Arne Fjellner via cygwin
  0 siblings, 0 replies; 13+ messages in thread
From: Bengt-Arne Fjellner via cygwin @ 2020-02-02 18:10 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 799 bytes --]

On 2020-02-02 10:48, Anon User via cygwin wrote:
> OK I found it.  You're right. The same outcome occurs.  So I guess it's not cygwin specific.  Sorry to have wasted your time.  I guess my Windows install is messed up somehow. I wish I could get the feedback I need to figure out what I did to have caused this.  I have tried countless searches online for the analyze wait chain result.
> 

Wild guess:

If you have inaccesssible network drives, many calls give a 30S timeout.
try googling "windows show hidden drives" or see what you get with:
"net use"

\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-02-02 18:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <595178088.221931.1580542748412.ref@mail.yahoo.com>
2020-02-01  7:39 ` Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue Anon User via cygwin
2020-02-01 15:13   ` Takashi Yano
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

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