From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117997 invoked by alias); 4 Mar 2019 16:06:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 117989 invoked by uid 89); 4 Mar 2019 16:06:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=row, H*F:D*cygwin.com, H*MI:sk:2019030 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Mar 2019 16:06:36 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MBll6-1golIY3JCG-00C7js; Mon, 04 Mar 2019 17:06:30 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0FE78A80926; Mon, 4 Mar 2019 17:06:30 +0100 (CET) Date: Mon, 04 Mar 2019 16:06:00 -0000 From: Corinna Vinschen To: Takashi Yano Cc: cygwin@cygwin.com Subject: Re: cygwin snapshots after 23, Feb. ocasionally destroys windows logon session Message-ID: <20190304160630.GH3785@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Takashi Yano , cygwin@cygwin.com References: <20190305002849.fdb1c8db14f8f83e5210553f@nifty.ne.jp> <20190304155705.GG3785@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KIzF6Cje4W/osXrF" Content-Disposition: inline In-Reply-To: <20190304155705.GG3785@calimero.vinschen.de> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-03/txt/msg00037.txt.bz2 --KIzF6Cje4W/osXrF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1862 On Mar 4 16:57, Corinna Vinschen wrote: > On Mar 5 00:28, Takashi Yano wrote: > > Hi Corinna, > >=20 > > I encountered a problem with cygwin snapshots after 23, Feb. > > If I login to cygwin via ssh and logout from ssh session, > > explorer sometimes gets into erroneous state. Most of > > operations cannot be done on explorer. > >=20 > > This does not happen in all environments, however, > > at least two of my machines are affected. > >=20 > > * Windows 7 64bit machine with 32bit cygwin installed. > > * Windows 10 64bit machine with 32bit cygwin installed. FTR, I just reproduced it after the fifth logon/logoff in a row on W10 64 bit w/ 64 bit Cygwin. Corinna > >=20 > > To reproduce this, logon windows with a user and start > > cygwin. Then, repeat login and logout via cygwin ssh/sshd > > a few ten times with the user who logon to windows. > >=20 > > I looked into this problem, and found the culprit. > >=20 > > The following modification seems to cause this problem. >=20 > You sure? If you revert that single patch, all is well even after > multiple ssh logon/logoff attempts? >=20 > > But I am not sure what is wrong with this code. >=20 > No, I don't get it either. >=20 > > Is this code really necessary? >=20 > It's probably not necessary, at least we hadn't had anything like that > before. As you can see from commits 71b8777a7140, 8eee25241e86, > dd3730ed9c1c and bcb33dc4f055, the idea is to unload a user profile if > it's not used anymore. >=20 > I'm puzzled that calling UnloadUserProfile should actually unload a user > profile if it's still in use by the interactive session. That sounds > like a bug in Windows to me, but what do I know? >=20 > I can revert this single patch, or I can revert the above patchset > trying to unload a user profile entirely, whatever makes more sense. >=20 > However, what makes most sense?!? --KIzF6Cje4W/osXrF Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlx9TQUACgkQ9TYGna5E T6AZRA//Xlhg/FLm9pgWDbJbt+c83geJ0xHVovColiKGtlHTuDlU9lqIRPSBrQ5X I2qpsbBQnOXUaeD0zntc7EE6Gvqr6gt4zDi548jI8PGQzeTpK3GvQbNwmFph2tYW kGKmk5JsITZo5yF5Phe9kfQhULrmdhn6yHfTGm7/7GV/iQYoJI1sCJiA/qq43kkX rdnlvitUlMaKsd0vRfLDNkwkc440I00qBDR1Ad3C8HFNM8qkvbug5OMF35Py47kY FJtZaRtcCwL91xbTTFm13yzy91raaehJo+nuPh/doS662DQ8M20wat9Im3msDZ1U Qs6dlZzU9ithccNs00MrT0yI1AD8jTLe2DWNkL84xj4WksgQGEl/t/LWymAgZDBt 1gmdeBNUqUsy4ENhI2nnalYm0NlIbbNlZ+znhzFuuh2OPRZNS2aZaUg3ueTOeV5D mSkl0rqJg7c/i4/yVIyhbgCA6dAHW3xRTzkEJFpnlp0rLxIfyoXw/zMuEjvmme7n 2ZIfSHO9CLFVukvm21rBhjODMYdeRiLq44LHIlxyABzsYJoesTVLY0QeTF9ifoMc nqQfUwec0xRsyltjqawXBiP7U+zULXopFwJQpQmzJfbkuOmG5JCyKMTT9j8Y41TV /us1VriGFnXMAhIXxaXiQulzw9z0NM/oGNGYPwY+eMFdduOg8/M= =0vaG -----END PGP SIGNATURE----- --KIzF6Cje4W/osXrF--