X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C116D3858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1680720315; bh=f8humx9Gbyxu2enF6HYK5NfgjnmbRq1gWr9ujEObf+o=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=YgYd3+58rsKR/3zr+CK2ZfJRJ785TJlm9KELJ+e62zBcaGcDQ5iXxw6RGKWtoESse 6kIkk2nDFiZRP0V0u7hv9gqR3rIKYgG8Q1WtV/4HgMJlgU0Sa4SrSTkfZHD9Pgjm78 3/wBRJqZlICHsmBYPVCPOTxaK3HN8gjv82ZNRAQA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F2D93858D20 Message-ID: <6256aebb-b182-4b8b-39ba-efbe81d056c6@towo.net> Date: Wed, 5 Apr 2023 20:44:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: Mintty terminal crashes after changing the default home via nsswitch.conf and launch in a new profile in Windows 11 To: cygwin AT cygwin DOT com References: In-Reply-To: X-Provags-ID: V03:K1:KHDU843VmJMMw8r92if6VVxZjg22XFRmXl5XJDoKRT1KbyQyAQ6 dHjuwI4rgZYHGlG82jqaXDVF9qiwYwrqhn/aSEptjPUOBwgElJrAi9Vb6VDR3dLFLLGPl9x /6apW60he8aj2b+DGQXn6u2Rf67yPX406TI3mvls5yXElHsbJlsMKhCgSaL5CBBEIGQKA5D IvzdYfy+qXQ0P0GHIf2WA== UI-OutboundReport: notjunk:1;M01:P0:17jzlnal35g=;4vhneGHRZAAYuEdQ83OIWzKKW2U FZSdHxeayq4yIGJYwz7P3v7rb8hY4R0YWEf3JPsEHEgybRi+4Z4GLVrOwI/Qc0g7Fp8HUQBjM 1mNcLDlHasR/9rpKG5BztZVyH+Tou85/RPRUJlsqC8JMaXfuNKWgvhYeRL6uizAKP+959/elA zhvTnMd9155sPbtr0JmQILnZAhskl8tgmG59fXVPY49L9yQLNfN+C8pwkKMh6GLtkc39MyqGZ Rk1TXTYScrVVa4KS1xF9DaUtqYKGBPJNLKQaQi4ypthEKbPJ1w86MiHXXk554RMPFqqxsjao3 womdsi+SN0oC/7l25bePcLm1aKdk1mIIDBh1F2n/9n9E7J+M7c2KuwliC35SUjk/f3HoiI8VD kXVGA5LCltXVnMDF+90s3c6B5vGCnspBfi6Buu7BW3jFr27leP18PCU7ImJ0GBYqCHhmF/k6N 8kyQ4H3ytFVm0gPgpgmgiAxpjacnAkZ1isscYoKkKZn96T8H+qcuImmSjj/uVuut+d+Tcd69u w7K2VIwYW8hkawH6Q3eiNm/HsSRPOI59yd2GuX5ymg5Kv70f8jTrhCHxLPAqNZ8e35YTtGqLo uR6Kfpl1E6ZyOjOTMdHPm9fa8uWl/hR2qotJCjtFoWveOBEHYYUeTu2zP/hKo3W2SXGcqBbtC Y4oRUj8RUw6T7w3gDz16RIYt2k7aV6a5HsHvHOVLrA== X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Wolff via Cygwin Reply-To: Thomas Wolff Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 335IjebG001640 Am 04.04.2023 um 17:13 schrieb Yuta SUZUKI via Cygwin: > Hi, > > I am recently setting up the computer room of my faculty > and then encountered the following issue: > > Short description: > Change the default home directory via > /etc/nsswitch.conf > and make a new Windows user. > Login to the new user (and do not logout) and launch cygwin. > After opening another application's window, e.g. Explorer, > and try to switch the focus between the cygwin window and the other window. > After once or twice of switch, switching is not smooth > and both the cygwin and the other application seem freezing. > (Still we can launch powershell to restart the machine.) > > Procedure to reproduce the issue: > 1. Login as an administrator. > 2. Install cygwin with the default configuration. > 3. In C:\cygwin64\etc\nssswitch.conf, replace > # db_home: /home/%U > to > db_home: /%H/cygwin > and save the file. > 4. Create a new Windows user, say "test", without Microsoft account. > 5. Logout from the administrator user used so far. > 6. Login as the user "test". (Do not logout in the remaining steps.) > 7. Launch cygwin from the desktop icon. > 8. Run cygcheck -s -v -r > cygcheck_before_crash.out (to reproduce the > issue, this step is unnecessary.) > 9. Open a window of the Explorer. > 10. Click the cygwin window. This does not switch the focus to the focus... > 11. Click the cygwin icon in the task bar. Probably it switches the window. > 12. Run cygcheck -s -v -r > cygcheck_after_crash.out (to reproduce the > issue, this step is unnecessary.) > 13. Click the Explorer window. This does not switch the focus to the focus... > 14. Click the "x" mark on the top right of the cygwin window. This > does not close the window... > 16. Close the cygwin from the task bar. Probably it closes the window. > > For me, the behaviour in the step 11, 14, 15 are rather troublesome. > If the situation is worse, then I cannot even use the start menu to > turn off the machine. > In such a case, still I could launch PowerShell with keyboard and run > Restart-Computer -Force > to restart the machine. > > Note that if you logout and re-login after the step 6 > or if you are using Windows 10, then the issue is not reproduced. > > Environment: > Edition Windows 11 Home > Version 22H2 > Installed on ‎3/‎29/‎2023 > OS build 22621.1413 > Experience Windows Feature Experience Pack 1000.22639.1000.0 > > I attach the above two log files. > (Some Japanese is included, sorry: some translations are > "なし" = "not applicable" > and > "ローカル アカウント" = "local account") > > I would appreciate it very much if someone would solve this issue. > > Yours, > Yuta Suzuki First, the symptoms you describe are not a "crash". Is the terminal actually still responsive (even if with delay)? I cannot reproduce such an issue. Please also cross-test with another terminal, e.g. rxvt, or xterm (after running an X server). Thomas -- 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