From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42255 invoked by alias); 27 May 2017 15:55:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 42228 invoked by uid 89); 27 May 2017 15:55:13 -0000 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@yandex.ru, sk:anrdaem X-HELO: mail-pf0-f179.google.com Received: from mail-pf0-f179.google.com (HELO mail-pf0-f179.google.com) (209.85.192.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 27 May 2017 15:55:12 +0000 Received: by mail-pf0-f179.google.com with SMTP id e193so29993174pfh.0 for ; Sat, 27 May 2017 08:55:15 -0700 (PDT) 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 Received: by 10.100.159.203 with HTTP; Sat, 27 May 2017 08:55:13 -0700 (PDT) In-Reply-To: <16810313565.20170527142723@yandex.ru> References: <16810313565.20170527142723@yandex.ru> From: Dan Kegel Date: Sat, 27 May 2017 18:00:00 -0000 Message-ID: Subject: Re: GNU screen trouble To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00451.txt.bz2 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@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