From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 12A013858D20 for ; Wed, 5 Apr 2023 19:55:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12A013858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id k3CMpxH9tjvm1k9DjpnmWk; Wed, 05 Apr 2023 19:55:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1680724503; bh=BQVyLxrWEM+9jXP92bL0qpcmFUNuYqiZmm0YNvGk63Q=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=f3EqlgSLgio0dS79kqnb4dqrHYnA0Cp3qhCd437+6cG59lyWM0sghDFNTiiJXsTP5 lLxrtQOCrnUVc2mn0HvJYUNkVNtyU+pDuEQOeaK7X9zSQ5fbPqqVllT+M1DybJCG7W RH0gaEScJ0BIeXh3gTm+8nOjmdNXnTvKvS4+hikyD8j9HQNhkBb9KgpSo+pEZk8/gl 4+XHIg5eFFCmF16/vuUI47o30YVivSXOJ+97q7AC20c6oWuGIh+LJJ2q50TVW5x1W+ y0IWG8rNy2C1ROfAScY8gwL9VvlJrL1XKf4AWkN8van9dVb8cX7JOHv8aj/jHQiyPH hJDGNXASU3c4A== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id k9DipV6ydHFsOk9DjpDc7j; Wed, 05 Apr 2023 19:55:03 +0000 X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=642dd217 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=daUBqIKCqRiNkvBL:21 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=gnIwy9IvaDr7nv8RztwA:9 a=QEXdDO2ut3YA:10 a=9c8rtzwoRDUA:10 a=wp1TVmfXWAOP7OSarnb1:22 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: <2074517c-9459-ecd7-b679-7f21045a7017@Shaw.ca> Date: Wed, 5 Apr 2023 13:55:02 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Reply-To: cygwin@cygwin.com Subject: Re: Mintty terminal crashes after changing the default home via nsswitch.conf and launch in a new profile in Windows 11 Content-Language: en-CA To: cygwin@cygwin.com References: Cc: Yuta SUZUKI From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfNeBREBbINqCt0L3t06rt3vQWUB8zaf6Ut5YrHAc38HkvjHLvnDlOle2/1tMJ4/foUdSvwz6bLRajxJrjYxm52fW497OIgItLuWdZOFLEgkFfFNbP7t8 Iq7V35noR2XQOqhzrqPXjHAsXTbXk/1liQR3drybqPNVhA6tatCmt7SotFBVa1wLO8DCT81MsmqQPQ36m49AjOTZY9VkW9Gkj7NB2IITAPnoQfRLax2tddSv X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-04-04 20:56, Yuta SUZUKI via Cygwin wrote: > Thank you for your reply. > But I can't get the point so much... >> This setting example is only a suggestion, not meant to be used verbatim, and > --- Yes. In my lab, I use another path for the default home. This is > just a simple test configuration. >> means that, for each Windows account at setup or login, under the user's Windows >> home directory, you will create a literal "cygwin" subdirectory, to be mounted > ---- I think that usually cygwin automatically makes the directory > assigned as the default home in nsswitch.conf (and indeed it does). > I tried the same experiment with making C:\Users\test\cygwin manually > before launching cygwin, but the same crash is reproduced. >> When you change this field from the default, it is up to you to understand and support the setting. > ---- Well, I know that I want to assign the home directory > automatically to every user of my lab. > I don't know the internal structure of cygwin and so what I can do is > to only announce > "Do not use cygwin at your very first sign-in to the machine. > Re-sign-in before launching cygwin". > But I think this is a bit ridiculous... Perhaps wait until account initialization is complete before starting Cygwin >> Cygwin startup is probably waiting for an automounter to provide the directory here, > ---- Actually, in my experiment, cygwin does make the directory > C:\Users\test\cygwin > and even I could output cygcheck to C:\Users\test\cygwin\foo.out (or > /cygdrive/c/test/foo.out). > The problem is only in the crash of the window system. > Addendum: > Setting Windows environment variable HOME to be /cygdrive/c/users/test > works without the issue, > but it does affect another application in my lab as documented in > cygwin's users guide. Are you sure that Windows setup, update, AV update, Edge update, and all the other junk Windows runs has completed, and the account has been logged in, and that account setup has completed, before you start installing Cygwin, and before you start running Cygwin? Also be aware that if you are on a domain, to top process in each Cygwin process tree has to access the ADC to load up all the AD related info including all the group memberships and rights for the user. This can takes seconds to minutes, if the ADC is not on a close, fast LAN link. So wait until you see a Cygwin shell prompt before trying anything. Perhaps try with a more lightweight app like cmd, rather than File Explorer, which easily locks up systems. Normally switching to TaskMgr, seeing the issue with, and killing the File Explorer process tree, resets the system, and restarts File Explorer. During testing, switch to TaskMgr and check resource usage and waits to see what is actually causing the issue. It is often an app in Cygwin's BLODA Big List Of Dodgy Apps: https://cygwin.com/faq/faq.html#faq.using.bloda a "dodgy" app, often an AntiVirus, Malware, or other monitor, that is not written well enough to do its job without interfering with other apps. This especially applies to Cygwin as it has to work around Windows limitations at a low level to implement POSIX compatible syscalls, and AV and monitoring applications are not always well written. Do you have any such software operating on these systems, what is it, is it in our BLODA list; what is the system resource usage and what is in wait states when the issue occurs? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry