From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by sourceware.org (Postfix) with ESMTPS id 8D7C3385ED4D for ; Wed, 12 Aug 2020 20:27:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8D7C3385ED4D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net Received: from [192.168.178.45] ([95.90.245.244]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M3DaN-1k7LSC097t-003e0Y for ; Wed, 12 Aug 2020 22:27:41 +0200 Subject: Re: Race condition hangs on multiple mintty/tcsh? Brad Wetmore To: cygwin@cygwin.com References: <1988bd34-7a17-e70f-bf23-0044f30c8687@towo.net> <1193403444.420395.1596669799506@mail.yahoo.com> <3d594543-c992-a22c-4631-f786cf34f76b@towo.net> <20200811135948.959c10de83b8ccfa35f4281a@nifty.ne.jp> <20200811093758.GF53219@calimero.vinschen.de> <20200811190200.cc385900e784c6cd076f53ba@nifty.ne.jp> <20200811103008.GH53219@calimero.vinschen.de> From: Thomas Wolff X-Tagtoolbar-Keys: D20200812222740363 Message-ID: Date: Wed, 12 Aug 2020 22:27:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:JX/Wvop3FNiG/hLZDl+IwqWiknJENrJ9A3YrEpubes7sAydu6nI 8R6o2X3YcsYGkfTyVIiVQJrphWqHKjtEGgheX7YWW3cmj1lhLdJgFhJt+RKH4zfvjvoKTOs kCL+ImcvDtzw/xVvio8dwbonNJkoW+Iz7kAfmeC0Yur5Isz8PoAkYYJObcklqfsYIqwvJFy UQ4EweOPzg/w5D39uYVqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:rqwAXPL+pTM=:kHxmJe+DrY2m2xe+1PV+k6 t/FrLG5xrEnpxaeB82Kfb9AGZsgpl7Bh4NPJdAz7HlOwTusMMO+VX0eSyI0UK6qCYGMAq+i+S 0PYfj1voowP1l9I2HqlG6ttxNul88u5AtWcIBkf6iw/hS6YnP0MG5qnuchgrdXjv5VFyWRYwL r54eBLg3fbMfZ5tkPl1uKo2neYRzRvVkBJyRMPztYCSNEj0sp/QVx5YTQ4Qa4/civw0Xqebin GwxKkwLot8Orxbe0wZU2MV6SFhcRSY2dAwNfjNnWVm2drHAoRKw8B3+1O/mD3p09FAqm+5BFi J2mKoBaR7Xey5YDZK8Rvw4PO73QNtPJVUblwUeFk5Qb9GDKUCQNwCNynVsX7ELhbf9SSUeH7D ydbdGQtZ2spQ2iDyw4Z2dNZV2y4foa795r4oWlnODU9qmx1NC4JJLgTV6U+2zugBe5sh7IkDp JoIi0xISV0z119Nlw1MCYT4GXgOFsCE6RmvVj1u4eMqt8iNaX7DroO24pnNLGYoySBF5/ZEQE PV5mLDXHuXyNeJQ7vlU4gt3SWkz8U7uW7awhCQkQN2TOE3n2KaFkDsTMdy8zhh/3OBMTZ6C52 4WOWUIc13VII8ZNLRttcVXB+JJJkIVgDMOdMNwZi3GPworAqCxICqgn4sw1KxC4rsU70Dn8rg VKxjXLdDf2hQU5aOYjo37xDWH4s7zrsv/EBiEty+l6FPU7+c/3gh+hzy0WmGvhiO/meTdNulZ rlTZsNfSDWH7vmMOyOayZBw0RBjfs5xSQh3j0Un5RJ60tArzZFQp1IPa59mQ7kSyQHCwUeyuF YF1+wLelWgp06e7upg43ST16C79kxzKzIjiH9CmN7GL7U0ODmYaMMd58eb596zAI57NKwZH X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Aug 2020 20:27:44 -0000 Am 11.08.2020 um 19:37 schrieb Thomas Wolff: > > On 11.08.2020 12:30, Corinna Vinschen wrote: >> On Aug 11 19:02, Takashi Yano via Cygwin wrote: >>> On Tue, 11 Aug 2020 11:37:58 +0200 >>> Corinna Vinschen wrote: >>>> On Aug 11 13:59, Takashi Yano via Cygwin wrote: >>>>> Hi Thomas, >>>>> >>>>> On Thu, 6 Aug 2020 15:31:24 +0200 >>>>> Thomas Wolff wrote: >>>>>> Am 06.08.2020 um 13:46 schrieb Thomas Wolff: >>>>>>> Am 06.08.2020 um 01:23 schrieb Kevin Schnitzius via Cygwin: >>>>>>>> On Wednesday, August 5, 2020, 06:56:48 PM EDT, Thomas Wolff >>>>>>>> wrote: >>>>>>>>> Am 04.08.2020 um 12:02 schrieb Thomas Wolff: >>>>>>>>>> Am 04.08.2020 um 00:13 schrieb Brad Wetmore via Cygwin: >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> I generally kick off multiple (10) mintty sessions, and >>>>>>>>>>> place them >>>>>>>>>>> around the screen. >>>>>>>>>>> [...] >>>>>>> I could reproduce one case of one of three terminals being >>>>>>> unresponsive also with xterm. >>>>>> And it also happens if I drop select() from mintty (and use just >>>>>> non-blocking read()). >>>>>>> Does anybody familiar with pty/select or recent changes have any >>>>>>> idea? >>>>> I looked into this problem. After much struggle, I think >>>>> I have found a workaround for this issue. >>>>> >>>>> I am not sure why this solves the issue at all, however, >>>>> this works for me. >>>>> >>>>> Could you please test a patch attached? >>>> Shall I commit the patch and create a developer snapshot for testing? >>> Thanks so much. That would be more convenient for potential testers. >> Done.  Please try the latest snapshot from https://cygwin.com/snapshots/ > Thanks. I could not reproduce the issue on one system in ~27 cases. > I'd like to retest on another system where I could previously produce > the issue more frequently, but that's currently broken... I gave it another 22 test instances on my other machine (the more sensitive one), no issue reproduced with the patch.