delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/04/10:57:25

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=fsE+BiSpY3/dUCifseIMv6E+NbM1G1r0bjwXPYLLETHqDkLCSMfeo
0n6mTKIcDmWkXS+ueApqZ/ew/fhU1Gfp4B456LMwT3OMp/aeMvaz+PgEJiyVNiop
+/Z/8m0e/KO+jI9pU55BTAO80jtxFpWgXlJUXo9ZqckJBArUzvBxDw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=nHUlX1Y50Ll6iiq4tREOKfws4Tg=; b=uA1YrG2r2Hf4Mhfu6YO0xmln9jYv
Mu3urnBw4i757PFNq+2jsG5RIJAextlccseRSrWv8RFIZzz4scK0l4fxu+DwnWzz
1xAc4D4Zdv5RZ3MCKLJMzDdbP4YOr2xErxKZpnqsIVAH3YkUR3O5DBFqXGAwfL8D
blk74sxcdICSYng=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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=puzzled, HTo:D*jp, unload, H*F:D*cygwin.com
X-HELO: mout.kundenserver.de
Date: Mon, 4 Mar 2019 16:57:05 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Cc: cygwin AT cygwin DOT com
Subject: Re: cygwin snapshots after 23, Feb. ocasionally destroys windows logon session
Message-ID: <20190304155705.GG3785@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>, cygwin AT cygwin DOT com
References: <20190305002849 DOT fdb1c8db14f8f83e5210553f AT nifty DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <20190305002849.fdb1c8db14f8f83e5210553f@nifty.ne.jp>
User-Agent: Mutt/1.11.3 (2019-02-01)

--K/NRh952CO+2tg14
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=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.

You sure?  If you revert that single patch, all is well even after
multiple ssh logon/logoff attempts?

> But I am not sure what is wrong with this code.

No, I don't get it either.

> Is this code really necessary?

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.

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?

I can revert this single patch, or I can revert the above patchset
trying to unload a user profile entirely, whatever makes more sense.

However, what makes most sense?!?


Thanks,
Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--K/NRh952CO+2tg14
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlx9StEACgkQ9TYGna5E
T6DfRA/+NEmBjs/fPNqpv2tdhuQwl+4osClwS22FdegI+8pidSUa8diV3BrKn8CV
508Abjuqx/Jujsk6OIijvCSjYUICzq54mQHK5sBF3G0DDC4DAt7ALdTdDbFwUYNJ
FlFePnI4RLMxbMYBnUcI54YzKUunrG/uZpXKZ9duITZgxEWk0UvTVGTtP3oIdEG1
2zU7VhdgqiXdPx8GpV9U3e1OenFgbYt4fJdv5zVcrl6DhQUA29NZ45kWJsHsx1rn
YgRR20U82HN6fKmqPoL+oW0484pfn5evtP3LsqbGV31iMYBLGI3sc76ma9K1xjRf
tkII2AsSh7ukvPZsGdX3FHKaS6a2SEG+V7rkUPC543jZ1kGyPF75W8l0Z0jPnAHL
/JpUOeINIgaKC8AoGWQ3ZBPU8kVpCP4C62zx/KtiZ+YBzAtXGHpBx6OerW181KcL
iO1Rvc+MrWg6hCEDmgL+1RoGeoaSx75zqjEqpIP8Wvmvks4mKrn6piEFFgv0/ovi
VB/QuhBI+TgBrk6fFGR0pSUz/MT7S7o3YZfG/pnOAtVo9uaJg6HLiePZH+E9QmSq
aYa0AQzyf7q0WmXUG1+MLM8+TmLqxBFYmDmg45n5T8kTKI/NHsLm0v68UCVPaKU7
2IlUoCNC8t+/3gW1jsN5N7yZXqMON4/OTq7ZAnhVbDxch8Ew8nc=
=0z6/
-----END PGP SIGNATURE-----

--K/NRh952CO+2tg14--

- Raw text -


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