This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SSH/SCREEN/REATTACH bug


hi

screen hangs when attempting to reattach to a session that wasn't manually detached but instead the ssh connection to the server where screen is running was closed.

i can neither 
screen -list
nor
screen -D -RR

to get back into the session. for both calls screen will wait forever but nothing will happen.
strace screen -list will stop here:
329 136923 [main] screen 137852 fhandler_socket::af_local_send_secret: Sending af_local secret succeeded 
 
 
 
 



strace for "dead" screen session that doesn't come back


   41 57588150 [main] SCREEN 45224 fhandler_socket::af_local_accept: af_local_accept called
   63 57588213 [main] SCREEN 45224 fhandler_socket::af_local_recv_secret: Received af_local secret: 4D1A3031-594D961E-6465BE71-DAE06456
   69 57588282 [main] SCREEN 45224 fhandler_socket::af_local_send_secret: Sending af_local secret succeeded
  113 57588395 [main] SCREEN 45224 fhandler_socket::af_local_recv_cred: Received eid credentials: pid: 36100, uid: 1007, gid: 513
   68 57588463 [main] SCREEN 45224 fhandler_socket::af_local_send_cred: Sending eid credentials succeeded
   63 57588526 [main] SCREEN 45224 fhandler_socket::accept: res 7
   68 57588594 [main] SCREEN 45224 cygwin_accept: 7 = accept (4, 0x22C7A0, 0x22C41C)
   44 57588638 [main] SCREEN 45224 sig_send: sendsig 0x2F8, pid 45224, signal -34, its_me 1
   45 57588683 [main] SCREEN 45224 sig_send: wakeup 0x1B0
   81 57588764 [sig] SCREEN 45224 wait_sig: signalling pack.wakeup 0x1B0
  -13 57588751 [main] SCREEN 45224 sig_send: Waiting for pack.wakeup 0x1B0
  203 57588954 [main] SCREEN 45224 sig_send: returning 0x0 from sending signal -34
   98 57589052 [main] SCREEN 45224 readv: readv (7, 0x22C3D0, 1) blocking, sigcatchers 5
   45 57589097 [main] SCREEN 45224 readv: no need to call ready_for_read
   77 57589174 [main] SCREEN 45224 readv: 0 = readv (7, 0x22C3D0, 1), errno 2
   47 57589221 [main] SCREEN 45224 close: close (7)
  195 57589416 [main] SCREEN 45224 fhandler_socket::close: 0 = fhandler_socket::close()
   45 57589461 [main] SCREEN 45224 close: 0 = close (7)
   42 57589503 [main] SCREEN 45224 sig_send: sendsig 0x2F8, pid 45224, signal -34, its_me 1
   41 57589544 [main] SCREEN 45224 sig_send: wakeup 0x1AC
   44 57589588 [main] SCREEN 45224 sig_send: Waiting for pack.wakeup 0x1AC
  111 57589699 [sig] SCREEN 45224 wait_sig: signalling pack.wakeup 0x1AC
   56 57589755 [main] SCREEN 45224 sig_send: returning 0x0 from sending signal -34
   39 57589794 [main] SCREEN 45224 readv: readv (3, 0x2297F0, 1) nonblocking, sigcatchers 5
   48 57589842 [main] SCREEN 45224 peek_pipe: /dev/tty3, PeekNamedPipe failed, Win32 error 109
   36 57589878 [main] SCREEN 45224 peek_pipe: /dev/tty3, n -1
  168 57590046 [main] SCREEN 45224 fhandler_base::ready_for_read: read_ready 1, avail 1
   53 57590099 [main] SCREEN 45224 fhandler_tty_slave::read: read(22B840, 4096) handle 0x110




screen -version 
Screen version 4.00.03 (FAU) 23-Oct-06 

uname -a 
CYGWIN_NT-5.2-WOW64 lalala 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]