public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Bad Address with /cygdrive paths
Date: Thu, 22 Oct 2015 16:21:00 -0000	[thread overview]
Message-ID: <20151022134817.GB5319@calimero.vinschen.de> (raw)
In-Reply-To: <20151021160631.GB19868@calimero.vinschen.de>

[-- Attachment #1: Type: text/plain, Size: 2198 bytes --]

On Oct 21 18:06, Corinna Vinschen wrote:
> On Oct 21 08:24, Barry Roberts wrote:
> > Attached is the strace output.
> 
> Thanks.
> 
> The culprit are apparently some weird User and Group SIDs.
> 
> 34   22501 [main] ls 3428 build_fh_pc: fh 0x180329B20, dev 000000C3
>    26   22527 [main] ls 3428 stat_worker: (\??\M:\install, 0x600039B40, 0x180329B20), file_attributes 16
>   539   23066 [main] ls 3428 cygpsid::debug_print: get_sids_info: owner SID = S-1-81-0-0
>    39   23105 [main] ls 3428 cygpsid::debug_print: get_sids_info: group SID = S-1-0
>   227   23332 [main] ls 3428 pwdgrp::fetch_account_from_windows: LookupAccountSid(S-1-81-0-0), Win32 error 1332
>    36   23368 [main] ls 3428 pwdgrp::fetch_account_from_windows: line: <Unknown+User:*:4294967295:4294967295:U-Unknown\User,S-1-81-0-0:/:/sbin/nologin>
>   198   23566 [main] ls 3428 pwdgrp::fetch_account_from_windows: LookupAccountSid(S-1-0), Win32 error 1332
>    34   23600 [main] ls 3428 pwdgrp::fetch_account_from_windows: line: <Unknown+Group:S-1-0:4294967295:>
> --- Process 3428, exception c0000005 at 00007FFA1856A774
> 
> 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.
> 
> 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

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-10-22 13:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13  0:59 Barry Roberts
2015-10-21 11:09 ` Corinna Vinschen
2015-10-21 14:44   ` Barry Roberts
2015-10-21 14:49     ` Barry Roberts
2015-10-21 16:41     ` Corinna Vinschen
2015-10-22 16:21       ` Corinna Vinschen [this message]
2015-10-22 16:34         ` Barry Roberts
2015-10-22 17:31           ` Barry Roberts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151022134817.GB5319@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).