X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 323223857C68 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net Subject: Re: Race condition hangs on multiple mintty/tcsh? Brad Wetmore To: cygwin AT cygwin DOT com References: From: Thomas Wolff X-Tagtoolbar-Keys: D20200806005635287 Message-ID: <1988bd34-7a17-e70f-bf23-0044f30c8687@towo.net> Date: Thu, 6 Aug 2020 00:56:35 +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: X-Provags-ID: V03:K1:lyBRBcdoL/KXc7D4Vr1R5w1IVdmq7wyoZdvqF3HQdAMpTKnMICh lx28ldd6HBiXAbrjGj6Ezt/V98RCXHJeiIQOt3ZG+vEqwBjCSxFVd7mPIne3RELiZb34Cmd s81kPeaLmk0LK6tsnNtskLAc9pUtPWv0G9NzyzY7QwAzlXQSRkyr7SkYU12orUqZzElB5bz nK9wSYmFNkEPNGAM0nqCA== X-UI-Out-Filterresults: notjunk:1;V03:K0:S/Vr/jS697c=:1oZGDU2T9Os/JkoyjATJUR x3S3PkA4NuhbaTS1swRLB8h/MLBrxXovDzAvumgsd4eYshDg17pE5WAG+gMQnHHlNCiCzbaSV JcFuvDZnsq3Z5faGPzIIgh/5Kxcbj/25CTHeKrB0NIRbP0amn6Xgfjpa8/qoCMVNJxVtX69JS ZfiVdwaJAKxmzfakWiB23jDrd6zcfsWQRWAqjclrKJA+0EEcaVjQiEqvC/s31hjOlmB4h1+Mm kj00Raxkx2wQJQeHQF5CCaudi2HBi/UQz5dbX41Ys5cSuJeaJQQh6l7RfudCdE0Lz4Unqv80V jQ2GRntpEHjlJwALE5UuHoSnLkg7+tzBWF7+6OjIu2mRdY3OWzAD1vX1OW4NyHMZBLpOZtn6r GaK5VeyPkePh+Arx9oODC+swcxpDbVDAjZTYehr0FvFWm6OOneIMgtNi1A2we/U/cGyEHx/+K YIGlcG8JlXs2VRWBWVSCX1c8qpgBawZSDcJzj+R95IZsx1yQWvLu/Awo/AI7I/EAGdfdZ3ujI 24F9whuE43O/Mqg4+ZE/wsxiGJp9ISjw0/G9Z2xOogNcCevOQlTb8FFJ8idUyZlid57vzxlby XOFRs5WyA8x9YwEpUwdpQOYUl/uNoFU5wigQFlIJDgH1wcGnWkbQppWykawHKte0CgEAXl98z d94PtVUDavZ6dqcTjc4f2LQVe3ZpKR107ChQHR6FRT/cU+WHlizsZtjT2D75Vk+JII4avGNF0 R4CayvUud6pfQUUleI2Ax89cVbu0zG+KGRmKkR22BKeSHoH5qW4kl8Dz1BX91XkZGLkxkjxi/ Fxzm9DFtAkBlWTsSAuBFTXMtsrXNdUYWdV8h9SOrLFwc4uwkTRo/Vii5mYaZ+sFxBhMtnq3 X-Spam-Status: No, score=-7.4 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=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 AT cygwin DOT 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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. >> >> 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 >> either mintty/tcsh would not start. I put a "sleep 1" in between each >> invocation and that seemed to take care of it. >> >> With the latest cygwin update, about 8 of them just hang even with >> the sleep 1. I put in a "sleep 2", and now everything is coming up >> again. >> >> Not sure if this is a mintty or tcsh issue, but just wondering if >> others are seeing this before I start trying to debug this. > I can reproduce such behaviour with /bin/bash (easy cross-check), and > in fact the shell is running in that case (easy test via `echo > > .log`), so I have a vague and unpleasant suspicion it might in fact be > related to mintty although I have no idea how that would happen. To be > analysed. When in this state, on the pty from which mintty receives child process output, select() does not report a ready for reading condition; could it be related to the recent poll/select patch? I could not reproduce it in cygwin 3.0.7. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple