X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=4.9 required=5.0 tests=AWL,BARRACUDA_BRBL,BAYES_20,J_CHICKENPOX_46,SPF_PASS X-Spam-Check-By: sourceware.org Content-Type: text/plain; charset="iso-8859-1" Date: Mon, 16 Feb 2009 10:57:14 +0100 From: eval AT gmx DOT com Message-ID: <20090216095714.203590@gmx.net> MIME-Version: 1.0 Subject: SSH/SCREEN/REATTACH bug To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/