From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58871 invoked by alias); 12 Aug 2019 12:07:10 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 58860 invoked by uid 89); 12 Aug 2019 12:07:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*jp, HDKIM-Filter:v2.10.3, April, april X-HELO: conssluserg-02.nifty.com Received: from conssluserg-02.nifty.com (HELO conssluserg-02.nifty.com) (210.131.2.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Aug 2019 12:07:08 +0000 Received: from Express5800-S70 (ntsitm268057.sitm.nt.ngn.ppp.infoweb.ne.jp [125.1.110.57]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x7CC6xso002260 for ; Mon, 12 Aug 2019 21:06:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x7CC6xso002260 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1565611619; bh=ts/SuWJTDFVc5hYnQJNI+z2u5YOTQf6ajiijCyfFhkE=; h=Date:From:To:Subject:In-Reply-To:References:From; b=xBy037WxFhkxXNisdQSPCKluxociOYAutkSgpZACNimA3Ek8Vk4/HEC66WShiqL2d C+qMaOcIzXrbSJBlrU9YXVS5cMVB16iIl54t7lRBYxRgAjGHSU7C+8Tpkq+VP/i726 ZPI4psli0UENTgPiilR3o+BVthCtJIsMBVsQa52g4sRBr3tz5zcLNwk709U50Rju9r zy9m2SgDcBXpjeGSf6f5o9ZLO//6Ppwm4YH/rBcRId2Pw+pLg6zNzhzBTMaCD27IOt b7q4nxUU03BpreLpxnuCRNTlfh2d6cZlo5Nl/7Cp/yhUqkJ2/5PS7S+m8iJ1Jaz4S0 rAhpSP2THW5NA== Date: Mon, 12 Aug 2019 12:07:00 -0000 From: Takashi Yano To: cygwin-developers@cygwin.com Subject: Re: [PATCH v5 1/1] Cygwin: pty: add pseudo console support. Message-Id: <20190812210708.109e5a8de991875e65d11792@nifty.ne.jp> In-Reply-To: <20190624105337.GC5738@calimero.vinschen.de> References: <20190412102047.669-1-takashi.yano@nifty.ne.jp> <20190414152316.1468-1-takashi.yano@nifty.ne.jp> <20190414152316.1468-2-takashi.yano@nifty.ne.jp> <20190415083832.GC3599@calimero.vinschen.de> <20190416094143.c612b1d9262bd015a8103f10@nifty.ne.jp> <20190416091616.GN3599@calimero.vinschen.de> <20190624105337.GC5738@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00001.txt.bz2 Hi Corinna, On Mon, 24 Jun 2019 12:53:37 +0200 Corinna Vinschen wrote: > Any news on this? Do you consider the latest state from April > stable enough for master? First, I apologize for a very lazy response. To tell the truth, there has not been much progress. Anyway, I will post v6 soon. It is almost stable. In my test, the biggest problem is the failure to attach console after setuid() in sshd if the user belongs to "Users" group only. This causes mis-synchronization in the screen buffer. To reproduce this problem, login to cygwin via ssh and execute ssh again. Then some debug messages are shown as follows. Last login: Mon Aug 12 20:15:54 2019 from ::1 CYGWIN_NT-10.0-WOW Express5800-S70 3.1.0(0.340/5/3) 2019-08-12 09:42 i686 Cygwin [yano@Express5800-S70 ~]$ ssh localhost 1 [main] ssh 1927 fhandler_pty_slave::push_to_pcon_screenbuffer: pty1: AttachConsole(21124) failed. (0x612E3C50) 00000005 52 [main] ssh 1927 fhandler_pty_slave::push_to_pcon_screenbuffer: pty1: AttachConsole(21124) failed. (0x612E3C50) 00000005 yano@localhost's password: That is, if the following commands are executed sequentially: ssh localhost ssh localhost (again) ls exit cmd the result of ls disappears from the screen. This problem does not occur if the user belongs to "Administrators" group. It is reasonable to fail to attach console to cygwin-console-helper.exe because it is running as system service account, however, attaching to other processes executed by myself also fails in the ssh session. I have been stuck with this issue in the last several weeks. Any advice will be appreciated. -- Takashi Yano