X-Recipient: archive-cygwin@delorie.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:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=lrZl3Oy7b3SKR6kYhfS9C8stYZNskSWC+zynHDvTeDVHi5Nrn4TS1
	N58CpklXRfFGQkBLy+r93t1bQxOnNgI8dD3RwQcmFz59t5r/1gkt+YbHX4ATnwj7
	U2xS+K90fBZhY/2KPG9I594hGqkVL1aOsMFy29n7PaJYrlZ1kHrpzM=
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:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=jY4Wd09MLCDuRhaDO99P5rCMnGI=; b=gC87yhmjt8hFBIEkqER5M7emXDxQ
	MSifHf1FRt4ryl0czpyxRUgde0C4Qbr3nl9918U3hXI8bIiYkLtcbHzTK92rQsYA
	kDiVb+xEosyRchOKHFeNm8FLPBIGDVkF353qR/ktAl4sodc9U+T8DFhbNynAxAC6
	XQsxtCBkZTA7zT8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,PDF_ATTACHED autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 22 Oct 2015 15:48:17 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Bad Address with /cygdrive paths
Message-ID: <20151022134817.GB5319@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <CAD-6W7bG+onWNhS31gRJ0YK589nLPpsnRo2RCth4JtOVPR6DHw@mail.gmail.com> <20151021110950.GP5319@calimero.vinschen.de> <CAD-6W7YXBhdrEJmB2g8t-28sANvJWnb2w=t0Dsearw2JGGmnjg@mail.gmail.com> <20151021160631.GB19868@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="7d9k4kQHj3EPdFyS"
Content-Disposition: inline
In-Reply-To: <20151021160631.GB19868@calimero.vinschen.de>
User-Agent: Mutt/1.5.23 (2014-03-12)

--7d9k4kQHj3EPdFyS
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 21 18:06, Corinna Vinschen wrote:
> On Oct 21 08:24, Barry Roberts wrote:
> > Attached is the strace output.
>=20
> Thanks.
>=20
> The culprit are apparently some weird User and Group SIDs.
>=20
> 34   22501 [main] ls 3428 build_fh_pc: fh 0x180329B20, dev 000000C3
>    26   22527 [main] ls 3428 stat_worker: (\??\M:\install, 0x600039B40, 0=
x180329B20), file_attributes 16
>   539   23066 [main] ls 3428 cygpsid::debug_print: get_sids_info: owner S=
ID =3D S-1-81-0-0
>    39   23105 [main] ls 3428 cygpsid::debug_print: get_sids_info: group S=
ID =3D S-1-0
>   227   23332 [main] ls 3428 pwdgrp::fetch_account_from_windows: LookupAc=
countSid(S-1-81-0-0), Win32 error 1332
>    36   23368 [main] ls 3428 pwdgrp::fetch_account_from_windows: line: <U=
nknown+User:*:4294967295:4294967295:U-Unknown\User,S-1-81-0-0:/:/sbin/nolog=
in>
>   198   23566 [main] ls 3428 pwdgrp::fetch_account_from_windows: LookupAc=
countSid(S-1-0), Win32 error 1332
>    34   23600 [main] ls 3428 pwdgrp::fetch_account_from_windows: line: <U=
nknown+Group:S-1-0:4294967295:>
> --- Process 3428, exception c0000005 at 00007FFA1856A774
>=20
> Granted, it's not nice of Cygwin to SEGV here, but I do wonder where
> the SIDs S-1-81-0-0 and S-1-0 are coming from.  They are both invalid
> as far as I can see.
>=20
> Hmm.  The problem is to reproduce this to find out where this happens.
> The exception address is inside a Windows DLL :-P

I could reproduce this and applied a patch which allows to proceed.

However.

The problem was that the SID S-1-0 has a subauthority count of 0, which
is really weird.  S-1-0-0 would be the NULL SID, but while S-1-0 is a
valid SID (the so-called NULL SID authority), it's no valid account and
as such can't be converted to a valid account.

And the user SID isn't much better.  S-1-81 is no well known SID
authority at all.  It's handled by Cygwin without much problems,
but of course that SID can't be converted to an account either.

Do you have any explanation where these broken SIDs are coming from?


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--7d9k4kQHj3EPdFyS
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWKOkhAAoJEPU2Bp2uRE+gWX4P+gOpAOp+KTsEw0GtdVGhrLZy
DuDcqLYksgDxALXs4qf2WP8Fof9u7Rit8Epiwjnm8WXvxybk58Dzaecl7q00TRt7
1rN1xPQiR6U0JHY+XD6MLNM4OIt12d10k0qFUPtbAHFgTgbLPNHSmc+iPBlGfBhj
QFZCWF0BtE9bNHjJV4waVv0WIDCmQ+ReCZZLnFC137Ecflrtc8Cz6j1soUgUwhFw
+XSTuLxmShlW2/O5afJvlcJDDGGIEqBW4mX3jMHDAIL8BnDxVtSBTFz5+2JM2rS3
XVrRylCaPfEzAoqsOlUYe36ury/PP6SsDZ2YIfLBxuX6cAa9sFIUaD6DITbz1fYy
zTf0VrMSdAsGmimiUHwUJ5P5jTQUP3bHU5bd49ai00cJBRPnw2Mbsa5iYG5UcaGs
pzIlEWrWjypYpbZsGxFmU8TkDyH3+pngpXgCUB4PX1DPRQ4sLo2b5aefNpLmKmdJ
M5xAxQtV4/05EN+cwrrh1ABCuiI7DQCYOb/Q8qP/IoqfXX2OsOZYFMGHmuWOyUqB
c0oWWY1zh814jqt+gvBNHWh4zouv/LEEvMitEDwUnMrz5Wiwquu6VRUC211nk9HH
Lq7UAygGhPtfknS6EDYu6yOB4xNLa1Sxj/iiu6zpBY/xnvOhGNY0kl97seCJqNfr
BGfc4XbthmzYcBQaxIVG
=toXV
-----END PGP SIGNATURE-----

--7d9k4kQHj3EPdFyS--
