From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) by sourceware.org (Postfix) with ESMTPS id 5559B3857C68 for ; Wed, 5 Aug 2020 23:23:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5559B3857C68 X-YMail-OSG: R.q5FCsVM1nBT2lN.rks59vVbBPSML_h7o7MPOpEsrauawxThpUYUMVstugZ02K PbIymENnEm891EJ1K57RCC68QQxwopV0DgzLI3vNunuar.OhLgOOnatnez0Xfmu5mmRjQhWU61xt WI57haLHwunFAKYB49wIuWfKqlnZh5PNi1ZscqCmwLqTIru.kQSnFPUuc7AqERH5Ed8ZKDqmLsa_ 2zPS6beoj283eI4qcCelsQeGFJKZfjnrgrTeRfmgNAhk61H1JYaTV8lW1mrEB4OwW3DRdjs4sP6B iAatpp9yeWJKN5Jr2uoEeOqc52dflh38UnV5SRSm7vN6UNdj5H_cFUAMbm7A3TuHeN2q8m2U1CTU nSWhwq41viG.zH6N4EQMTLVTa_YGgvuZBUcTEH5Q9ddTOaVzMpU8ajNaD33x52C.irmLtAm0h1kE ed3UJxoeaAtKACzzKQ50jLFn2Tnne_SoKOSj9K0PbGeTrkdXITKsH4y0KyX0n4D8EnxeGTG668dk kwwWeiDJbATagb3f_kH8FNDCTYaDqrPDwHgcpPPnFCINLknkt997PiiuvhhXjWKq.BzD8b5T4e9u OuOasqAqLKW9mwKtUiqFuszEt.syyCoO3.p37O9FvdHnVUK6P1XiZ0n2Z2Jt2__VUJbD3Jw5H9s6 jSvES0v.uYdEJ26iL7DdOgna2XEKWV.OoJSRJ5UC2OtXxOw8MEJFkdZZZ7q3ESG7wOa837iyQy1w EMUBQO8gO.NsvjJ8ujI5QXs9OvhIUxYiHTokTtYNMv4YTv72cN1_h.DFeFr7UmatWeuHkUT8y8P6 wd3UlFXdhTuxVayz1IFhm3tUDTdAlDwmN1XYDiJ7C2MXicWjtVGiHuWjFn3pfbp_ROsFAL4jntWl 8Y9RiAtrjBaWnw_qRKrd9af3UQS26sv_Kq1Fv8dLBwTINM0hragIT5XpX8YHcdcKjgSSRceS_9fG GYY.RSomc0FMr5mr4QadhE2NJrFvqFD277BFq5KcG6Ix5I8upUATuB0zVQxKxY8KuQSxmSeNz5u. u15PdEmrXIUaPQuk_591FCBTSAvBnZFK69WDzvX65G1pB0rhn_hW9dcaQJRr29RIwPEixoNT15.p n404q4Mtm_H0AFqeveyUpgLDOQPIel1Vm6flbV5i7ecuamdRakcECrgPZKhRbD.a.JNxythlSFDD pCHIvGoYWKgFdeorNL8CSRI16jTBD6dGvGGGdZyzv7FC5jkDLkIN7EwrzmeLT3h1CrgPvRtRah3v uCoHWtN611XZinwtEwWdroFlAHTRPeIIR1L9lbcRryetuB9A- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Wed, 5 Aug 2020 23:23:21 +0000 Date: Wed, 5 Aug 2020 23:23:19 +0000 (UTC) From: Kevin Schnitzius Reply-To: Kevin Schnitzius To: cygwin@cygwin.com Message-ID: <1193403444.420395.1596669799506@mail.yahoo.com> In-Reply-To: <1988bd34-7a17-e70f-bf23-0044f30c8687@towo.net> References: <1988bd34-7a17-e70f-bf23-0044f30c8687@towo.net> Subject: Re: Race condition hangs on multiple mintty/tcsh? Brad Wetmore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.16436 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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, 05 Aug 2020 23:23:23 -0000 On Wednesday, August 5, 2020, 06:56:48 PM EDT, Thomas Wolff = wrote:=C2=A0 >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=20 >>> around the screen. >>> >>> C:/cygwin64/bin/mintty.exe -i /Cygwin-Terminal.ico \ >> --position @3 --position 120,0 --size 80x71 /bin/tcsh & >>> C:/cygwin64/bin/mintty.exe -i /Cygwin-Terminal.ico \ >>> --position @3 --position 715,0 --size 80x45 /bin/tcsh & >>> C:/cygwin64/bin/mintty.exe -i /Cygwin-Terminal.ico \ >>> --position @3 --position 715,660 --size 80x24 /bin/tcsh & >>> >>> Within the last 6 months or so, about 2-3 of them would hang and=20 >>> either mintty/tcsh would not start. I put a "sleep 1" in between each= =20 >>> invocation and that seemed to take care of it. >>> >>> With the latest cygwin update, about 8 of them just hang even with=20 >>> the sleep 1. I put in a "sleep 2", and now everything is coming up=20 >>> again. >>> >>> Not sure if this is a mintty or tcsh issue, but just wondering if=20 >>> others are seeing this before I start trying to debug this. >> I can reproduce such behaviour with /bin/bash (easy cross-check), and=20 >> in fact the shell is running in that case (easy test via `echo >=20 >> .log`), so I have a vague and unpleasant suspicion it might in fact be= =20 >> related to mintty although I have no idea how that would happen. To be= =20 >> analysed. > When in this state, on the pty from which mintty receives child process= =20 > output, select() does not report a ready for reading condition; could it= =20 > be related to the recent poll/select patch? I could not reproduce it in= =20 > cygwin 3.0.7. for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ; do mintty=C2= =A0 -i /Cygwin-Terminal.ico=C2=A0 --position @3 --position 120,$i --size 80= x24 /bin/bash & done This does not fail for me.=C2=A0 Nor does it fail from cmd or powershell us= ing a script. I tried 3.1.4 and 3.1.6 on Windows 10.=C2=A0 I tried up to 100 instances of= of mintty... Kevin