delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/03/09:38:18

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:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=XtBoRD9bRlcUtJsUeScdtFDC6IwsTx0h729Z8kAwLYj305gNlq0sG
2x11aJhoV2n63fWL9PlszVUsOw51BrJAvEeZtiSP3f+3x/fQGi1azf7Tb3RheMBy
C1k61Ogoryus+9zlixHmguBA9HN6thM/kqm3bZf8L+2IQJkOTM74xs=
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=Uket7r0P3ALs+ID/Go2+Ms1ES7A=; b=Dq/kCmPs5zqpysmaBy2/tV9iDUg8
QHk7wYC3c40cGBa9LH+hF5+sB+1UL6V27IKTQ8Rs29rFSQHMyIvSH/29ZIpsID+K
hNN9GOo1OWbLg9j218lUYweA1Tict/QCuh66KaAEhPbzkSLiYm/M+ZQaK+BKHoUr
+6i3t9sF0Mij/ps=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 3 Sep 2014 15:37:28 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd
Message-ID: <20140903133728.GL6056@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <8761hphfps DOT fsf AT Rainer DOT invalid> <loom DOT 20140902T134545-288 AT post DOT gmane DOT org> <20140902140751 DOT GD6056 AT calimero DOT vinschen DOT de> <loom DOT 20140902T171114-72 AT post DOT gmane DOT org> <20140902153757 DOT GE6056 AT calimero DOT vinschen DOT de> <loom DOT 20140903T084528-450 AT post DOT gmane DOT org> <loom DOT 20140903T145724-31 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20140903T145724-31@post.gmane.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

--F7w+4yMapWozG0Ib
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sep  3 13:02, Achim Gratz wrote:
> Achim Gratz <Stromeko <at> NexGo.DE> writes:
> > > The strace shows that it doesn't even *try* to start bash, but it's
> > > entirely unclear why.
> >=20
> > Is it possible to run sshd in gdb?
>=20
> I can attach the debugger but I didn't manage to break into something use=
ful
> (or anything at all,  really).  However, the bug must be triggered by a r=
ace
> because with the debugger attached once in a blue moon I'll get the comma=
nd
> actually executed correctly.  I'm running this on an 8-core machine, so it
> is very likely that each new thread hits a different core...

You already built your own Cygwin DLL, right?  What you could do is to
do some good old printf debugging.  First let's try to find out if it's
really one of the NetUser calls:

Index: sec_auth.cc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/src/src/winsup/cygwin/sec_auth.cc,v
retrieving revision 1.57
diff -u -p -r1.57 sec_auth.cc
--- sec_auth.cc	22 May 2014 16:40:13 -0000	1.57
+++ sec_auth.cc	3 Sep 2014 13:37:11 -0000
@@ -256,8 +256,10 @@ get_user_groups (WCHAR *logonserver, cyg
   NET_API_STATUS ret;
=20
   /* Look only on logonserver */
+  debug_printf ("Before NetUserGetGroups");
   ret =3D NetUserGetGroups (logonserver, user, 0, (LPBYTE *) &buf,
 			  MAX_PREFERRED_LENGTH, &cnt, &tot);
+  debug_printf ("After NetUserGetGroups");
   if (ret)
     {
       __seterrno_from_win_error (ret);
@@ -306,9 +308,11 @@ get_user_local_groups (PWCHAR logonserve
   DWORD cnt, tot;
   NET_API_STATUS ret;
=20
+  debug_printf ("Before NetUserGetLocalGroups");
   ret =3D NetUserGetLocalGroups (logonserver, user, 0, LG_INCLUDE_INDIRECT,
 			       (LPBYTE *) &buf, MAX_PREFERRED_LENGTH,
 			       &cnt, &tot);
+  debug_printf ("After NetUserGetLocalGroups");
   if (ret)
     {
       __seterrno_from_win_error (ret);


Corinna

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

--F7w+4yMapWozG0Ib
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUBxmYAAoJEPU2Bp2uRE+gxuMP+wa+EIY6/U/Xeaywuh8CVonG
MWixdeV8y7ABOmo/hdlNrddem9nGz/YjoMfzfKZ/XIEZKhQQFB+0yf+CzK17uAOx
Y7qVKRn78poZYBTrmmgWwUaNv4FeFAiXp9qCg7ltIhMAnoHEYqqEpNRd8ZYE8S5H
Af8PIW9+FUrHbagIyRpWb9whi4aBXMKMmxaqnJ5cZeYxhidHPmVZNVfxSV+C0943
h6t2C/T3YlkIn9PnbnVy2KGrg2ofvTul10XED6GYCQqyZ8jpqfJPAqmJjPwLsTx3
oaAZ/0DAiknAJI2D5rtkCzcpKsMTvjNu1dy0cnoioSUU5UsJl8fZDmpecVNmEuC5
ZQ+NLiWRONIZhYctswyW0opq2rMF3+SxqODLqkT+m0lmZAbF8Zvat/7KgiTAMSMs
YjWFOlQ50Ziinmlx/hbfzgC/bjPrHrj81x6sF0O2iZ5CzkfK8VAbzoTjRhkhUfSX
vU4dy8/iBpMvJ8BOTjzW0WwbaMCpiSQUIRIBvSb4nF576Kh+fUVNeitGajCLoh6R
VAky6roVjFK+JztS6zf0YnytnHPGXWcI5tIDRshDYreHf8Z0VVDCbr7zgTTAjGl5
ELfY66VJKIWXvVX0MEu5YZ+dtJoIv7KRa7T+oWeU6DrTLtCMSSIsUquzCGl8Zbyb
F6ZFm+iDlJyAQsyVwkfM
=OsoT
-----END PGP SIGNATURE-----

--F7w+4yMapWozG0Ib--

- Raw text -


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