From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30801 invoked by alias); 3 Sep 2014 13:37:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 30782 invoked by uid 89); 3 Sep 2014 13:37:31 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Sep 2014 13:37:30 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 27D7E8E1402; Wed, 3 Sep 2014 15:37:28 +0200 (CEST) Date: Wed, 03 Sep 2014 13:37:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd Message-ID: <20140903133728.GL6056@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <8761hphfps.fsf@Rainer.invalid> <20140902140751.GD6056@calimero.vinschen.de> <20140902153757.GE6056@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="F7w+4yMapWozG0Ib" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-09/txt/msg00057.txt.bz2 --F7w+4yMapWozG0Ib Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2171 On Sep 3 13:02, Achim Gratz wrote: > Achim Gratz 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 Content-length: 819 -----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--