delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/08/06/10:34:34

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 42CED3844046
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: <BYAPR07MB59428411CD00101EF02400B4B64D0 AT BYAPR07MB5942 DOT namprd07 DOT prod DOT outlook DOT com>
<ff57a2c8-6753-02d6-7a85-9657d70bc897 AT towo DOT net>
<1988bd34-7a17-e70f-bf23-0044f30c8687 AT towo DOT net>
<1193403444 DOT 420395 DOT 1596669799506 AT mail DOT yahoo DOT com>
<cc296c5f-c958-21bf-3a14-9584180de591 AT towo DOT net>
<3d594543-c992-a22c-4631-f786cf34f76b AT towo DOT net>
<20200806142614 DOT GH1107715 AT calimero DOT vinschen DOT de>
From: Thomas Wolff <towo AT towo DOT net>
X-Tagtoolbar-Keys: D20200806163336780
Message-ID: <ba97e41f-6e7e-fec4-9426-7a1b7a2037ea@towo.net>
Date: Thu, 6 Aug 2020 16:33:36 +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: <20200806142614.GH1107715@calimero.vinschen.de>
X-Provags-ID: V03:K1:fr4alfx/qRs3kR5CFeSiS6io+TdWMlXyNQkozngCzVFtfKXWw2k
PIPn9JmzrBia1vYjr8UGcs2MzJZ3iaD+E9575yIN4yopo/4U9kNHwBIy8xD2H9mOklDEeot
JeWlU2OU+ZBUPtRkmYniE6G641QvyibSq/4rWWg75mzAi7erolCr7a9P2s39mBC+E4g7qqN
AB/XY5KMmtn9UnCKfVifA==
X-UI-Out-Filterresults: not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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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 076EYF0U004955

Am 06.08.2020 um 16:26 schrieb Corinna Vinschen:
> On Aug  6 15:31, 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
>>>> <towo AT towo DOT net> 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.
>>>>>>>
>>>>>>> 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.
>>>> 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  -i /Cygwin-Terminal.ico  --position @3 --position 120,$i
>>>> --size 80x24 /bin/bash & done
>>>>
>>>> This does not fail for me.  Nor does it fail from cmd or powershell
>>>> using a script.
>>>>
>>>> I tried 3.1.4 and 3.1.6 on Windows 10.  I tried up to 100 instances
>>>> of of mintty...
>>> Thanks for testing. It is in fact hard to reproduce, maybe also
>>> depending on system load (speculating).
>>> 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?
>> ?
> Something with the pseudo console?  Can you test w/o pseudo console code, just to check?
Hmm, CYGWIN=disable_pcon does not seem to disable ConPTY support for me 
any more...
>
> Other than that we probably need some bisecting to find the cause.
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019