I've recompiled screen for Cygwin 1.7. It runs fine until I do the following:
* Open a cmd console and run c:\cygwin-1.7\bin\bash.exe --login . * Start a new screen session (screen). * Detach the screen session (C-a d). * Exit bash. * Try to start bash again. Then I get: 3 [main] bash 212 c:\cygwin-1.7\bin\bash.exe: *** fatal error - Can't create master tty The problem continues until I kill the detached screen process and all of its child processes. This problem doesn't occur with Cygwin 1.5, of course. strace output is below. If you'd like to try to reproduce it, you can download my binary screen package for 1.7 from http://home.comcast.net/~andrex/cygwin-1.7/screen/screen-4.0.3-1.tar.bz2 . I Googled around and found a similar problem report from 1.7.0-3, at http://www.mail-archive.com/cygwin@cygwin.com/msg87495.html . That one seems to have spontaneously gone away. N.B. no cygcheck -svr here, since cygcheck seems to be totally broken for me in 1.7-- see next message. Thanks, Andrew. C:\> strace c:\cygwin-1.7\bin\bash.exe ********************************************** Program name: c:\cygwin-1.7\bin\bash.exe (pid 2676, ppid 1) App version: 1005.25, api: 0.156 DLL version: 1007.0, api: 0.186 DLL build: 2008-08-20 13:01 OS version: Windows NT-5.1 Heap size: 402653184 Date/Time: 2008-08-27 14:40:12 ********************************************** 62 769 [main] bash 2676 set_myself: myself->dwProcessId 2676 54 823 [main] bash 2676 time: 1219862412 = time (0) 699 1522 [main] bash 2676 parse_options: tty 1001 115 1637 [main] bash 2676 parse_options: returning 51 1688 [main] bash 2676 environ_init: GetEnvironmentStrings returned 0x10000 120 1808 [main] bash 2676 environ_init: 0x6F8268: !C:=C:\ 945 2753 [sig] bash 2676 wait_sig: entering ReadFile loop, my_readsig 0x0, my_sendsig 0x0 176 2929 [main] bash 2676 environ_init: 0x6F8278: !EXITCODE=00000000 67 2996 [main] bash 2676 environ_init: 0x6F8290: ALLUSERSPROFILE=C:\Documents and Settings\All Users 64 3060 [main] bash 2676 environ_init: 0x6F82C8: APPDATA=C:\Documents and Settings\aschulma\Application Data 63 3123 [main] bash 2676 environ_init: 0x6F8308: COMMONPROGRAMFILES=C:\Program Files\Common Files 64 3187 [main] bash 2676 environ_init: 0x6F8340: COMPUTERNAME=D77E1BASCHULMA1 62 3249 [main] bash 2676 environ_init: 0x6F8368: COMSPEC=C:\WINDOWS\system32\cmd.exe 67 3316 [main] bash 2676 parse_options: tty 1001 63 3379 [main] bash 2676 parse_options: returning 43 3422 [main] bash 2676 environ_init: 0x6F8390: CYGWIN=tty 306 3728 [main] bash 2676 environ_init: 0x6F83B0: EPA_HOME=D:\EPA 73 3801 [main] bash 2676 environ_init: 0x6F83C8: FP_NO_HOST_CHECK=NO 63 3864 [main] bash 2676 environ_init: 0x6F83E0: HOMEDRIVE=C: 62 3926 [main] bash 2676 environ_init: 0x6F83F8: HOMEPATH=\ 63 3989 [main] bash 2676 environ_init: 0x6F8408: LOGONSERVER=\\D77E1BASCHULMA1 62 4051 [main] bash 2676 environ_init: 0x6F8430: MEETINGCENTERAPP=C:\Program Files\Meeting Center\ 184 4235 [main] bash 2676 environ_init: 0x6F8468: NUMBER_OF_PROCESSORS=1 64 4299 [main] bash 2676 environ_init: 0x6F8488: ORACLE_HOME=C:\Oracle\instantclient_11_1 63 4362 [main] bash 2676 environ_init: 0x6F84B8: OS=Windows_NT 202 4564 [main] bash 2676 getwinenv: can't set native for PATH= since no environ yet 102 4666 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\WINDOWS\system32, keep-rel, no-add-slash) 80 4746 [main] bash 2676 normalize_win32_path: C:\WINDOWS\system32 = normalize_win32_path (C:\WINDOWS\system32) 42 4788 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/WINDOWS/system32 = conv_to_posix_path (C:\WINDOWS\system32) 40 4828 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\WINDOWS, keep-rel, no-add-slash) 36 4864 [main] bash 2676 normalize_win32_path: C:\WINDOWS = normalize_win32_path (C:\WINDOWS) 35 4899 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/WINDOWS = conv_to_posix_path (C:\WINDOWS) 37 4936 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\WINDOWS\System32\Wbem, keep-rel, no-add-slash) 35 4971 [main] bash 2676 normalize_win32_path: C:\WINDOWS\System32\Wbem = normalize_win32_path (C:\WINDOWS\System32\Wbem) 36 5007 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/WINDOWS/System32/Wbem = conv_to_posix_path (C:\WINDOWS\System32\Wbem) 36 5043 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\Novell\ZENworks\, keep-rel, add-slash) 35 5078 [main] bash 2676 normalize_win32_path: C:\Program Files\Novell\ZENworks\ = normalize_win32_path (C:\Program Files\Novell\ZENworks\) 36 5114 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/Program Files/Novell/ZENworks/ = conv_to_posix_path (C:\Program Files\Novell\ZENworks\) 37 5151 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\notes, keep-rel, no-add-slash) 35 5186 [main] bash 2676 normalize_win32_path: C:\notes = normalize_win32_path (C:\notes) 124 5310 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/notes = conv_to_posix_path (C:\notes) 147 5457 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash) 43 5500 [main] bash 2676 normalize_win32_path: C:\cygwin\bin = normalize_win32_path (C:\cygwin\bin) 38 5538 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/cygwin/bin = conv_to_posix_path (C:\cygwin\bin) 36 5574 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\XPT\, keep-rel, add-slash) 35 5609 [main] bash 2676 normalize_win32_path: C:\Program Files\XPT\ = normalize_win32_path (C:\Program Files\XPT\) 36 5645 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/Program Files/XPT/ = conv_to_posix_path (C:\Program Files\XPT\) 36 5681 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\Common Files\GTK\2.0\bin, keep-rel, no-add-slash) 35 5716 [main] bash 2676 normalize_win32_path: C:\Program Files\Common Files\GTK\2.0\bin = normalize_win32_path (C:\Program Files\Common Files\GTK\2.0\bin) 37 5753 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/Program Files/Common Files/GTK/2.0/bin = conv_to_posix_path (C:\Program Files\Common Files\GTK\2.0\bin) 37 5790 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\WINDOWS\system32\nls, keep-rel, no-add-slash) 35 5825 [main] bash 2676 normalize_win32_path: C:\WINDOWS\system32\nls = normalize_win32_path (C:\WINDOWS\system32\nls) 35 5860 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/WINDOWS/system32/nls = conv_to_posix_path (C:\WINDOWS\system32\nls) 36 5896 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\WINDOWS\system32\nls\ENGLISH, keep-rel, no-add-slash) 36 5932 [main] bash 2676 normalize_win32_path: C:\WINDOWS\system32\nls\ENGLISH = normalize_win32_path (C:\WINDOWS\system32\nls\ENGLISH) 36 5968 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/WINDOWS/system32/nls/ENGLISH = conv_to_posix_path (C:\WINDOWS\system32\nls\ENGLISH) 100 6068 [main] bash 2676 win_env::add_cache: posix /win/c/WINDOWS/system32:/win/c/WINDOWS:/win/c/WINDOWS/System32/Wbem:/win/c/Program Files/Novell/ZENworks/:/win/c/notes:/win/c/cygwin/bin:/win/c/Program Files/XPT/:/win/c/Program Files/Common Files/GTK/2.0/bin:/win/c/WINDOWS/system32/nls:/win/c/WINDOWS/system32/nls/ENGLISH 108 6176 [main] bash 2676 win_env::add_cache: native PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Novell\ZENworks\;C:\notes;C:\cygwin\bin;C:\Program Files\XPT\;C:\Program Files\Common Files\GTK\2.0\bin;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH 40 6216 [main] bash 2676 posify: env var converted to PATH=/win/c/WINDOWS/system32:/win/c/WINDOWS:/win/c/WINDOWS/System32/Wbem:/win/c/Program Files/Novell/ZENworks/:/win/c/notes:/win/c/cygwin/bin:/win/c/Program Files/XPT/:/win/c/Program Files/Common Files/GTK/2.0/bin:/win/c/WINDOWS/system32/nls:/win/c/WINDOWS/system32/nls/ENGLISH 96 6312 [main] bash 2676 environ_init: 0x7087E0: PATH=/win/c/WINDOWS/system32:/win/c/WINDOWS:/win/c/WINDOWS/System32/Wbem:/win/c/Program Files/Novell/ZENworks/:/win/c/notes:/win/c/cygwin/bin:/win/c/Program Files/XPT/:/win/c/Program Files/Common Files/GTK/2.0/bin:/win/c/WINDOWS/system32/nls:/win/c/WINDOWS/system32/nls/ENGLISH 80 6392 [main] bash 2676 environ_init: 0x6F84D0: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH 64 6456 [main] bash 2676 environ_init: 0x6F8510: PROCESSOR_ARCHITECTURE=x86 63 6519 [main] bash 2676 environ_init: 0x6F8530: PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel 64 6583 [main] bash 2676 environ_init: 0x6F8578: PROCESSOR_LEVEL=15 62 6645 [main] bash 2676 environ_init: 0x6F8590: PROCESSOR_REVISION=0207 63 6708 [main] bash 2676 environ_init: 0x708900: PROGRAMFILES=C:\Program Files 335 7043 [main] bash 2676 environ_init: 0x6F85B0: PROMPT=$P$G 83 7126 [main] bash 2676 environ_init: 0x708928: RFC_INI=C:\WINDOWS\system32\saprfc.ini 63 7189 [main] bash 2676 environ_init: 0x708958: SAS_HOME=D:\software\SAS 63 7252 [main] bash 2676 environ_init: 0x708978: SAS_USER_CONFIG=D:\software\SAS\sas-windows.cfg 72 7324 [main] bash 2676 environ_init: 0x7089B0: SIDE_INFO=C:\WINDOWS\system32\sideinfo 63 7387 [main] bash 2676 environ_init: 0x7089E0: SYSTEMDRIVE=C: 62 7449 [main] bash 2676 environ_init: 0x7089F8: SYSTEMROOT=C:\WINDOWS 65 7514 [main] bash 2676 getwinenv: can't set native for TEMP= since no environ yet 38 7552 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\DOCUME~1\aschulma\LOCALS~1\Temp, no-keep-rel, no-add-slash) 41 7593 [main] bash 2676 normalize_win32_path: C:\DOCUME~1\aschulma\LOCALS~1\Temp = normalize_win32_path (C:\DOCUME~1\aschulma\LOCALS~1\Temp) 39 7632 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/DOCUME~1/aschulma/LOCALS~1/Temp = conv_to_posix_path (C:\DOCUME~1\aschulma\LOCALS~1\Temp) 208 7840 [main] bash 2676 win_env::add_cache: posix /win/c/DOCUME~1/aschulma/LOCALS~1/Temp 39 7879 [main] bash 2676 win_env::add_cache: native TEMP=C:\DOCUME~1\aschulma\LOCALS~1\Temp 35 7914 [main] bash 2676 posify: env var converted to TEMP=/win/c/DOCUME~1/aschulma/LOCALS~1/Temp 91 8005 [main] bash 2676 environ_init: 0x708AA8: TEMP=/win/c/DOCUME~1/aschulma/LOCALS~1/Temp 65 8070 [main] bash 2676 getwinenv: can't set native for TMP= since no environ yet 35 8105 [main] bash 2676 mount_info::conv_to_posix_path: conv_to_posix_path (C:\DOCUME~1\aschulma\LOCALS~1\Temp, no-keep-rel, no-add-slash) 38 8143 [main] bash 2676 normalize_win32_path: C:\DOCUME~1\aschulma\LOCALS~1\Temp = normalize_win32_path (C:\DOCUME~1\aschulma\LOCALS~1\Temp) 38 8181 [main] bash 2676 mount_info::conv_to_posix_path: /win/c/DOCUME~1/aschulma/LOCALS~1/Temp = conv_to_posix_path (C:\DOCUME~1\aschulma\LOCALS~1\Temp) 92 8273 [main] bash 2676 win_env::add_cache: posix /win/c/DOCUME~1/aschulma/LOCALS~1/Temp 41 8314 [main] bash 2676 win_env::add_cache: native TMP=C:\DOCUME~1\aschulma\LOCALS~1\Temp 35 8349 [main] bash 2676 posify: env var converted to TMP=/win/c/DOCUME~1/aschulma/LOCALS~1/Temp 226 8575 [main] bash 2676 environ_init: 0x708B38: TMP=/win/c/DOCUME~1/aschulma/LOCALS~1/Temp 71 8646 [main] bash 2676 environ_init: 0x708A18: USERDOMAIN=D77E1BASCHULMA1 63 8709 [main] bash 2676 environ_init: 0x708B68: USERNAME=ASchulma 63 8772 [main] bash 2676 environ_init: 0x708B80: USERPROFILE=C:\Documents and Settings\aschulma 63 8835 [main] bash 2676 environ_init: 0x708BB8: WINDIR=C:\WINDOWS 82 8917 [main] bash 2676 pinfo_init: Set nice to 0 36 8953 [main] bash 2676 pinfo_init: pid 2676, pgid 2676 121 9074 [main] bash 2676 dtable::extend: size 32, fds 0x6120842C 1034 10108 [main] bash 2676 pwdgrp::load: \etc\passwd curr_lines 1 271 10379 [main] bash 2676 pwdgrp::load: \etc\passwd load succeeded 907 11286 [main] bash 2676 pwdgrp::load: \etc\group curr_lines 2 151 11437 [main] bash 2676 pwdgrp::load: \etc\group load succeeded 105 11542 [main] bash 2676 cygheap_user::ontherange: what 2, pw 0x708CA0 43 11585 [main] bash 2676 cygheap_user::ontherange: Set HOME (from /etc/passwd) to /home/aschulma 140 11725 [main] bash 2676 normalize_posix_path: src /home/aschulma 39 11764 [main] bash 2676 normalize_posix_path: /home/aschulma = normalize_posix_path (/home/aschulma) 42 11806 [main] bash 2676 mount_info::conv_to_win32_path: conv_to_win32_path (/home/aschulma) 45 11851 [main] bash 2676 set_flags: flags: binary (0x2) 34 11885 [main] bash 2676 mount_info::conv_to_win32_path: src_path /home/aschulma, dst d:\, flags 0x2, rc 0 146 12031 [main] bash 2676 symlink_info::check: not a symlink 266 12297 [main] bash 2676 symlink_info::check: 0 = symlink.check (d:\, 0x2233D0) (0x800002) 68 12365 [main] bash 2676 path_conv::check: this->path(d:\), has_acls(1) 81 12446 [main] bash 2676 win_env::add_cache: posix /home/aschulma 35 12481 [main] bash 2676 win_env::add_cache: native HOME=D:\ 66 12547 [main] bash 2676 normalize_posix_path: src /home/aschulma 35 12582 [main] bash 2676 normalize_posix_path: /home/aschulma = normalize_posix_path (/home/aschulma) 35 12617 [main] bash 2676 mount_info::conv_to_win32_path: conv_to_win32_path (/home/aschulma) 41 12658 [main] bash 2676 set_flags: flags: binary (0x2) 36 12694 [main] bash 2676 mount_info::conv_to_win32_path: src_path /home/aschulma, dst d:\, flags 0x2, rc 0 110 12804 [main] bash 2676 symlink_info::check: not a symlink 59 12863 [main] bash 2676 symlink_info::check: 0 = symlink.check (d:\, 0x223400) (0x800002) 39 12902 [main] bash 2676 path_conv::check: this->path(d:\), has_acls(1) 70 12972 [main] bash 2676 win_env::add_cache: posix /home/aschulma 34 13006 [main] bash 2676 win_env::add_cache: native HOME=D:\ 517 13523 [main] bash 2676 wait_for_sigthread: wait_sig_inited 0x7D8 78 13601 [main] bash 2676 wait_for_sigthread: process/signal handling enabled, state 0x1041 267 13868 [main] bash 2676 tty_list::allocate: console 0x3F0396 associated with tty0 96 13964 [main] bash 2676 build_fh_pc: fh 0x612085AC 45 14009 [main] bash 2676 fhandler_tty_master::init: Creating master for tty0 109 14118 [main] bash 2676 build_fh_pc: fh 0x612185B4 3039 17157 [main] bash 2676 open_shared: name (null), n 0, shared 0x60FE0000 (wanted 0x60FE0000), h 0x7D8 94 17251 [main] bash 2676 _pinfo::set_ctty: old no ctty 37 17288 [main] bash 2676 _pinfo::set_ctty: attaching ctty /dev/console sid 2676, pid 2676, pgid 2676, tty->pgid 0, tty->sid 2676 138 17426 [main] bash 2676 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 35 17461 [main] bash 2676 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 34 17495 [main] bash 2676 fhandler_base::set_flags: filemode set to binary 622 18117 [main] bash 2676 init_cygheap::manage_console_count: fhandler_console::open: console_count 1, amount 1, ctty /dev/console, avoid_freeing_console 0 108 18225 [main] bash 2676 fhandler_console::open: opened conin$ 0xF, conout$ 0x13 48 18273 [main] bash 2676 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60FE001C) (ENABLE FLAGS 3) (lflag 107 oflag 9) 55 18328 [main] bash 2676 fhandler_console::input_tcsetattr: 0 = tcsetattr (,60FE001C) enable flags 0x18, c_lflag 0x0 iflag 0x0 41 18369 [main] bash 2676 init_cygheap::manage_console_count: fhandler_tty_master::init_console: console_count 0, amount -1, ctty /dev/console, avoid_freeing_console 1 46 18415 [main] bash 2676 fhandler_console::output_tcsetattr: 0 = tcsetattr (,22CA70) (ENABLE FLAGS 3) (lflag 0 oflag 0) 55 18470 [main] bash 2676 fhandler_pipe::create_selectable: CreateNamedPipe: name \\.\pipe\cygwin-tty0-from-master, size 131072 129 18599 [main] bash 2676 fhandler_pipe::create_selectable: pipe busy, retrying 39 18638 [main] bash 2676 seterrno_from_win_error: /ext/build/netrel/src/cygwin-1.7.0-29/winsup/cygwin/fhandler_tty.cc:1445 windows error 231 42 18680 [main] bash 2676 geterrno_from_win_error: windows error 231 == errno 16 35 18715 [main] bash 2676 __set_errno: void seterrno_from_win_error(const char*, int, DWORD):314 val 16 45 18760 [main] bash 2676 fhandler_pty_master::setup: tty1629003192 open failed - failed to create 211 18971 [main] bash 2676 c:\cygwin-1.7\bin\bash.exe: *** fatal error - Can't create master tty 307 19278 [main] bash 2676 sigproc_terminate: entering 42 19320 [main] bash 2676 sig_send: sendsig 0x730, pid 2676, signal -42, its_me 1 53 19373 [main] bash 2676 sig_send: Not waiting for sigcomplete. its_me 1 signal -42 34 19407 [main] bash 2676 sig_send: returning 0x0 from sending signal -42 34 19441 [main] bash 2676 proc_terminate: nprocs 0 207 19648 [main] bash 2676 proc_terminate: leaving 50 19698 [main] bash 2676 __to_clock_t: dwHighDateTime 0, dwLowDateTime 312500 36 19734 [main] bash 2676 __to_clock_t: total 00000000 0000001F 453 20187 [main] bash 2676 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156250 61 20248 [main] bash 2676 __to_clock_t: total 00000000 0000000F 349 20597 [sig] bash 2676 wait_sig: saw __SIGEXIT 77 20674 [sig] bash 2676 wait_sig: signal thread exiting 822 21496 [main] bash 2676 pinfo::exit: Calling ExitProcess n 0x1, exitcode 0x100 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/