From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33676 invoked by alias); 17 Aug 2019 08:36:36 -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 33667 invoked by uid 89); 17 Aug 2019 08:36:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-106.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_SBL autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1784, H*Ad:U*cygwin-developers, screen X-HELO: mout-xforward.kundenserver.de Received: from mout-xforward.kundenserver.de (HELO mout-xforward.kundenserver.de) (82.165.159.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 17 Aug 2019 08:36:34 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M7sQ6-1htwOE0sgE-004xUE; Sat, 17 Aug 2019 10:36:28 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id E26D2A80768; Sat, 17 Aug 2019 10:36:26 +0200 (CEST) Date: Sat, 17 Aug 2019 08:36:00 -0000 From: Corinna Vinschen To: Takashi Yano Cc: cygwin-developers@cygwin.com Subject: Re: [PATCH v7 1/1] Cygwin: pty: add pseudo console support. Message-ID: <20190817083626.GA11632@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: Takashi Yano , cygwin-developers@cygwin.com References: <20190815160908.259-1-takashi.yano@nifty.ne.jp> <20190815160908.259-2-takashi.yano@nifty.ne.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="krZS3EFpRWg3Z7I7" Content-Disposition: inline In-Reply-To: <20190815160908.259-2-takashi.yano@nifty.ne.jp> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-08/txt/msg00017.txt.bz2 --krZS3EFpRWg3Z7I7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1896 Hi Takashi, On Aug 16 01:09, Takashi Yano wrote: > - Support pseudo console in PTY. Pseudo console is a new feature > in Windows 10 1809, which provides console APIs on virtual > terminal. With this patch, native console applications can work > in PTY such as mintty, ssh, gnu screen or tmux. > --- > winsup/cygwin/dtable.cc | 50 ++ > winsup/cygwin/fhandler.h | 42 +- > winsup/cygwin/fhandler_console.cc | 32 + > winsup/cygwin/fhandler_tty.cc | 843 +++++++++++++++++++++++++- > winsup/cygwin/fork.cc | 24 + > winsup/cygwin/select.cc | 22 +- > winsup/cygwin/spawn.cc | 55 ++ > winsup/cygwin/strace.cc | 24 + > winsup/cygwin/tty.cc | 8 + > winsup/cygwin/tty.h | 24 +- > winsup/utils/cygwin-console-helper.cc | 14 +- > 11 files changed, 1093 insertions(+), 45 deletions(-) It looks like there's some timing problem in terms of stderr output. I just made up the example for the Cygwin ML discussion about the mcmodel. When I start the code built with -mcmodel=3Dsmall I expected the output: Cygwin runtime failure: /home/corinna/dll/main.exe: Invalid relocation. Offset 0xfffffffd80348989 at address 0x40000103b doesn't fit into 32 bits However, no output was generated at first run, and not at second: --- $ ./main $ ./main $=20 --- Then I started ssh, and suddenly the messages appeared. They even appeared at the right spot: --- $ ./main Cygwin runtime failure: /home/corinna/dll/main.exe: Invalid relocation. Offset 0xfffffffd80348989 at address 0x40000103b doesn't fit into 32 bits $ ./main Cygwin runtime failure: /home/corinna/dll/main.exe: Invalid relocation. Offset 0xfffffffd80348989 at address 0x40000103b doesn't fit into 32 bits $ ssh [...] ---- Very puzzelling. Corinna --=20 Corinna Vinschen Cygwin Maintainer --krZS3EFpRWg3Z7I7 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1XvIoACgkQ9TYGna5E T6DT5g/8DjGEvznb8W6V43w/t0CLMdPrshgNKX+7znWGO+KvBLXZmzozU7oBIO8C iZ55vCza6LR2as9fOm24CO4mNX4ksYv0EdVaJJXwhAcs9qylh6B6RhdAUJ8AyUDq J3a1xLLKxlYJbijWdG+NvSDyEDbMTQosEtpVGNFNNfILGPJIxEq8F40WpnpvEi1b cERfKkAYKYYPpo0IFSwQUhh8oJnhLXMiXaRXVgUi88Z475Cxg7pJ7y+g8NY/P+R0 m9aA0HM2FfyyBM07PbrpnxL3HxkeNIDOp4Jz9ZdRwKgY8JYyjSp4/mpwEabbgA02 /p8Di2u3L5eUdDX8tWTNzRe57kzehkooMvMU+OAib5EOVckMzpLVcFez12VYC5p6 6SEeYvd4SzUlhh++qLEYuB8EN5N/d8lbWf2aqyFyIqMXOGGbP6wByiZMQCJpe+LW 13Jsarr02eFHTtVBHvb3mi1933RKqjWq+kq7fhF6pPhdBuy/4kLGsGC2Qlo+Nm2v iBSjo+jSoroIdI1qdr/9B+MsS84qIHkjc5ruZygbCEzorHd/RGrRew8mIdpILta3 4pyrWlDem9It3dW/QpLtv6sd2F6qpkJLIJVZaAWUpUewTbaezBFvlBgAE2RLo9gx X+sW42+ZL7xOGJYRPcF7m/AfLzmUdF1BFw6JoTr00XB5S3Js5FM= =9jKP -----END PGP SIGNATURE----- --krZS3EFpRWg3Z7I7--