X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=fUX65j0 vpB0lijwNGJ/N5rKH+wGm5rhrFB2vPq7BRpnM0cJ6FVz1Zbg38Mr/p6mTrxDzn24 Mg13AqqAjbV0Rb2vYNHhURARuL4ksFIh4t6323cQMiIwKH2GyhmdOoDOVSkMUe+q qvQKCLlKm1jOIYclRfOG5E74r3PjGlZ9D12Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=bidgT0PxTY1R4 1rkiQlz4Ai4Rjw=; b=ZLhh8gxTSHOKLoF3nQ4ItRUrMzww/ZTdNyuJWGKA2RCxO JAs+hel6nhSQ86J6QEp5Yjq/7zzfad91Y/ma1OFlHx5wmZFoKeFxbCrmh6YsJl6y eIQxAaH4PPKKUDchgqwNxVhgnKDFq6Ug9n3j9pPkiyxYL0WDiUwViTSyac7qz8= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=D*yandex.ru, Hx-languages-length:2738, anrdaemon AT yandex DOT ru, sk:anrdaem X-HELO: mail-pf0-f179.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=FYPwey8NUE/Gn/ru0UxzWW3+KI+w9UylWmTbnTCMldk=; b=boIqRRpsnxsXePByhur1wE1h4RlFRYwhgdCYfdOj+pN9e+sQlqgm7lrDEbedcYTfQe 0+LLwj6cf/jLYIf2cLPQo/9opJ2UpmlCmMqoaihfJqIb/hOjNGGRjiDtOwAXNhN2onym vDyowESzMZ38hRpBr4GjbAbWJUOhESfntrKA2ufylMBN1EBe9x/HjJzS0R3WWIrsVcRZ b89TrgMcJyeqREFL8x4DXIPhpzR0kIQNCIlB/eM8nwzcB+dItKe1hBMNfJd9i3v3gpj0 P27x86dgDGSevCZDNz/2VLXsUkiICkZPp8g/hSQJxhino3eYHmbeAuNx4PKtLVPbzhjQ 5khA== X-Gm-Message-State: AODbwcBbmGxYY2HJsYUqZSEmCyWXrxFZgWPhBrMQEjP99QS8flV1ThJ0 VdoBf9WiqeO+9RxMJQPxm0kFcOgI/KG6 X-Received: by 10.84.194.34 with SMTP id g31mr27595885pld.89.1495900514250; Sat, 27 May 2017 08:55:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <16810313565.20170527142723@yandex.ru> References: <16810313565 DOT 20170527142723 AT yandex DOT ru> From: Dan Kegel Date: Sat, 27 May 2017 08:55:13 -0700 Message-ID: Subject: Re: GNU screen trouble To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes On Sat, May 27, 2017 at 4:27 AM, Andrey Repin wrote: > # uname -a; screen --version; screen -admS mc-server-session > CYGWIN_NT-6.1 daemon2 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin > Screen version 4.05.01 (GNU) 25-Feb-17 > > # screen -S mc-server-session -Q windows > I see something similar: $ uname -a CYGWIN_NT-10.0 WIN10-BB-01 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin buildbot AT WIN10-BB-01 ~ $ apt-cyg install screen $ screen --version Screen version 4.04.00 (GNU) 19-Jun-16 $ screen (inside the new screen:) $ screen -Q info (hangs 3 out of 4 tries so far) On Linux, same sequence outputs stuff to stdout without hanging. strace on cygwin shows ... 204 185879 [main] screen 13324 fhandler_base::close: closing '/tmp/uscreens/S-buildbot/16948.pty1.WIN10-BB-01-queryA' handle 0x288 114 185993 [main] screen 13324 chmod: 0 = chmod(/tmp/uscreens/S-buildbot/16948.pty1.WIN10-BB-01-queryA, 0600) 94 186087 [main] screen 13324 getpid: 13324 = getpid() 40 186127 [main] screen 13324 cygwin_listen: 0 = listen(3, 5) 34 186161 [main] screen 13324 getpid: 13324 = getpid() 34 186195 [main] screen 13324 fcntl64: fcntl(3, 6, ...) 36 186231 [main] screen 13324 fhandler_socket::fcntl: owner set to 13324 33 186264 [main] screen 13324 fcntl64: 0 = fcntl(3, 6, 0x340C) 34 186298 [main] screen 13324 seteuid32: uid: 197609 myself->uid: 197609 myself->gid: 197121 34 186332 [main] screen 13324 seteuid32: Nothing happens 33 186365 [main] screen 13324 setegid32: new egid: 197121 current: 197121 40 186405 [main] screen 13324 sigaction_worker: signal 19, newact 0xFFFF8800 (handler 0x100422520), oa 0xFFFF8680 34 186439 [main] screen 13324 sigaction: 0 = sigaction(19, 0xFFFF8800, 0xFFFF87E0) 34 186473 [main] screen 13324 sigaction_worker: signal 1, newact 0xFFFF8800 (handler 0x100422530), oa 0xFFFF8680 34 186507 [main] screen 13324 sigaction: 0 = sigaction(1, 0xFFFF8800, 0xFFFF87E0) 40 186547 [main] screen 13324 write: write(4, 0xFFFF8880, 12584) 371 186918 [main] screen 13324 write: 12584 = write(4, 0xFFFF8880, 12584) 75 186993 [main] screen 13324 close: close(4) 157 187150 [main] screen 13324 fhandler_socket::close: 0 = fhandler_socket::close() 51 187201 [main] screen 13324 close: 0 = close(4) 36 187237 [main] screen 13324 set_signal_mask: setmask 0, newmask 0, mask_bits 0 33 187270 [main] screen 13324 handle_sigsuspend: oldmask 0x0, newmask 0x0 The hang is after that handle_sigsuspend line in the three times I've seen it, right before screen would have printed Remove dead screens with 'screen -wipe'. Seems highly repeatable, at least on my old install. A little quality time with the source and maybe gdb would probably be illuminating. - Dan -- 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