This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bad Address with /cygdrive paths


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: pgpATOi_inb_S.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]