Cygwin-1.7.0-3 problem (wet paint version)

Trevor Forbes t4bs@internode.on.net
Sun Apr 20 12:10:00 GMT 2008


I access my windows XP PC either via rdesktop or ssh on a Linux Gentoo 
PC. (Note I use using XPUnlimited to get multiple rdesktops)  Using 
Cygwin-1.7.0-3  I found I can run Cygwin application via ssh or rdesktop 
but not both at the same time.

In the rdesktop session I get the following error if I have a ssh 
session already running

Trimmed strace from rdesktop running "strace env":

 8729 1353365 [main] env 2140 init_cygheap::manage_console_count: 
fhandler_console::open: console_count 1, amount 1, ctty /dev/console, 
avoid_freeing_console 0
19739 1373104 [main] env 2140 fhandler_console::open: opened conin$ 0xF, 
conout$ 0x13
10200 1383304 [main] env 2140 fhandler_console::output_tcsetattr: 0 = 
tcsetattr (,60FE001C) (ENABLE FLAGS 3) (lflag 107 oflag 9)
10248 1393552 [main] env 2140 fhandler_console::input_tcsetattr: 0 = 
tcsetattr (,60FE001C) enable flags 0x18, c_lflag 0x0 iflag 0x0
 8875 1402427 [main] env 2140 init_cygheap::manage_console_count: 
fhandler_tty_master::init_console: console_count 0, amount -1, ctty 
/dev/console, av oid_freeing_console 1
17300 1419727 [main] env 2140 fhandler_console::output_tcsetattr: 0 = 
tcsetattr (,22CA70) (ENABLE FLAGS 3) (lflag 0 oflag 0)
 8949 1428676 [main] env 2140 fhandler_pipe::create_selectable: 
CreateNamedPipe: name \\.\pipe\cygwin-tty0-from-master, size 131072
 9257 1437933 [main] env 2140 fhandler_pipe::create_selectable: pipe 
busy, retrying
 8438 1446371 [main] env 2140 seterrno_from_win_error: 
/ext/build/netrel/src/cygwin-1.7.0-3/winsup/cygwin/fhandler_tty.cc:1449 
windows error 231
 8551 1454922 [main] env 2140 geterrno_from_win_error: windows error 231 
== errno 16
 9108 1464030 [main] env 2140 __set_errno: void 
seterrno_from_win_error(const char*, int, DWORD):313 val 16
 9068 1473098 [main] env 2140 fhandler_pty_master::setup: tty1628914200 
open failed - failed to create
1482243 [main] env 2140 E:\cygwin\bin\env.exe: *** fatal error - Can't 
create master tty
 9145 1482243 [main] env 2140 E:\cygwin\bin\env.exe: *** fatal error - 
Can't create master tty

trimmed output of plist on rdesktop (I had 2 ssh sessions running):

cygwin-0x314-0x1                                  1                1
cygwin-tty0-from-master                           1                1
cygwin-tty0-to-master                             1                1
Win32Pipes.0000077c.00000003                      1                1
Win32Pipes.000009b4.00000001                      1                1
Win32Pipes.00000734.00000005                      1                1
Win32Pipes.000002f0.00000001                      1                1
cygwin-0xBC0-0x1                                  1                1
cygwin-tty1-from-master                           1                1
cygwin-tty1-to-master                             1                1
Win32Pipes.000002f0.00000003                      1                1
Win32Pipes.00000e1c.00000001                      1                1

$ ps -ef
     UID     PID    PPID TTY     STIME COMMAND
SYSTEM    1504       1   ?  11:00:29 /usr/bin/cygrunsrv
SYSTEM    1636       1   ?  11:00:30 /usr/bin/cygrunsrv
SYSTEM    1552    1504   ?  11:00:29 /usr/sbin/cygserver
SYSTEM    1768    1636   ?  11:00:30 /usr/sbin/sshd
SYSTEM     788    1768   ?  11:08:43 /usr/sbin/sshd
trevor2    2496     788   0  11:08:51 /usr/bin/bash
SYSTEM    3008    1768   ?  11:22:31 /usr/sbin/sshd
trevor2    2972    3008   1  11:22:40 /usr/bin/bash
trevor2    1052    2972   1  14:13:14 /usr/bin/ps

I haven't looked at the code but it appears the rdesktop cygwin session 
is trying to create a named pipe that is already in use by ssh.


Regards Trevor



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



More information about the Cygwin mailing list