public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-5
Date: Fri, 17 Apr 2015 07:40:00 -0000	[thread overview]
Message-ID: <20150417074045.GN3657@calimero.vinschen.de> (raw)
In-Reply-To: <CB09F6B5-23F4-4F58-A60C-0E155335E252@Denis-Excoffier.org>

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

On Apr 16 21:49, Denis Excoffier wrote:
> On 2015-04-16 à 18:43, Corinna Vinschen wrote:
> > On Apr 16 18:21, Corinna Vinschen wrote:
> >> On Apr 16 08:17, Jim Reisert AD1C wrote:
> >>> I am unable to start Cywin/X X-server 1.17.1 with this version.
> >>> Previous releases of 2.0.0.x were OK.  I had to revert to 1.7.35-1 for
> >>> the time being.
> >>> 
> >>> Other than updating to 2.0.0.5, I also installed the April 2015 "Patch
> >>> Tuesday" updates from Microsoft.  I don't know if the two are related.
> >>>  Windows 7 Home Premium, 64-bit
> >>> 
> >>> Exception: STATUS_ACCESS_VIOLATION at eip=77C50F8A
> >>> eax=00000000 ebx=612D67B0 ecx=00001000 edx=612D2648 esi=00000000 edi=0028C790
> >>> ebp=0028C608 esp=0028C604 program=C:\Cygwin\bin\XWin.exe, pid 1660, thread main
> >>> cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
> >>> Stack trace:
> >>> Frame     Function  Args
> >>> 0028C608  77C50F8A (00000000, 612D2648, 00000000, 612D67B0)
> >>> 0028C738  610CDA1F (000043FF, 00000000, 00000000, 80012428)
> > 
> > On second thought, if I can trust the args output, that would be an
> > fchmod(0,0).  If there's no uid or gid 0, which there isn't unless you
> > explicitely created them in the passwd/group files, the uid and gid have
> > no SID connected to.  This may be the culprit here.
> > 
> >> I could add an extra check which refuses to change permissions if
> >> the account's SID can't be found, but since this occurs very deep
> >> in the call stack, the error message might be pretty vapid.
> >> 
> >> Alternatively I just let this slip through and you might wonder
> >> why the group hasn't changed in this case.
> > 
> > I added a change to this effect, but it occuurs to me that this may
> > be really just a missing test if the uid and gid values are backed by
> > a real Windows account.  It seems better to return EPERM here.
> > 
> I applied the patch indicated (see in
> https://cygwin.com/ml/cygwin-cvs/2015-q2/msg00033.html) and X11 now works
> back again.
> 
> Thank you 1000 times.

Thanks for the early feedback.  Still, I changed it for -0.6 again,
because that's what had happened in the old code, too:  If the uid or
gid can't be resolved to a Windows SID, the function fails now with
ENOENT.  That's a non-POSIX extension because the problem just doesn't
exist on real POSIX systems.  Please give it a try.


Thanks,
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-04-17  7:40 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 16:04 Corinna Vinschen
2015-04-16 14:25 ` Jim Reisert AD1C
2015-04-16 16:21   ` Corinna Vinschen
2015-04-16 16:29     ` Jim Reisert AD1C
2015-04-16 16:38       ` Corinna Vinschen
2015-04-16 21:05         ` Jim Reisert AD1C
2015-04-16 21:17           ` Ian Lambert
2015-04-17  7:38             ` Corinna Vinschen
2015-04-17 13:17               ` Ian Lambert
2015-04-17 16:23                 ` Corinna Vinschen
2015-04-16 21:20         ` Jim Reisert AD1C
2015-04-17  7:37           ` Corinna Vinschen
2015-04-16 16:43     ` Corinna Vinschen
2015-04-16 19:49       ` Denis Excoffier
2015-04-17  7:40         ` Corinna Vinschen [this message]
2015-04-17 11:29     ` Jon TURNEY
2015-04-17 12:13       ` Corinna Vinschen
2015-04-16 16:53   ` Bryan Berns
2015-04-17  8:16     ` Corinna Vinschen
2015-04-17 10:07       ` Corinna Vinschen
2015-04-17 10:57         ` Bryan Berns
2015-04-17 11:03           ` Corinna Vinschen

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=20150417074045.GN3657@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).