From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11541 invoked by alias); 15 Mar 2019 13:42:52 -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 11532 invoked by uid 89); 15 Mar 2019 13:42:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-102.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2187, device, H*F:D*cygwin.com, person X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Mar 2019 13:42:50 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowOm-1ggysr3DqA-00qQdr for ; Fri, 15 Mar 2019 14:42:47 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4B9F8A80751; Fri, 15 Mar 2019 14:42:47 +0100 (CET) Date: Fri, 15 Mar 2019 13:42:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: sshd: fatal: seteuid XXX : No such device or address Message-ID: <20190315134247.GR3785@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <011a01d4da5a$96247330$c26d5990$@giraudbtp.com> <20190314172918.GJ3785@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="w89FjbBIqlQz+8Ov" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-03/txt/msg00408.txt.bz2 --w89FjbBIqlQz+8Ov Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2181 On Mar 15 14:06, Houder wrote: > On Thu, 14 Mar 2019 18:29:18, Corinna Vinschen wrote: >=20 > > On Mar 14 16:53, Houder wrote: >=20 > > > On Thu, 14 Mar 2019 12:39:30, XXXXX wrote: > > > > Hello the list > [snip] > > > > sshd: PID 3777: fatal: seteuid 1049076: No such device or address >=20 > > > Corinna, > > > > > > As far as I know, seteuid() can either return EINVAL or EPERM in case= of > > > an error. > > > > > > EPERM (=3D3D 1) "Operation not permitted" > > > EINVAL(=3D3D 22) "Invalid argument" > > > > > > "No such device or address" appears to correspond to ENXIO (=3D3D 6)= . Is it > > > sshd, or is it Cygwin, that is confused here? > >=20 > > No confusion as such. The underlying Windows function returns a NT > > status code, which is converted to a Win32 error code by a Windows > > function, and that Win32 error code is converted to a POSIX errno by > > Cygwin. There are much more NT status codes than Win32 error codes, and > > there are much more Win32 error codses than POSIX errno values, so the > > mapping is inevitably unsatisfying. >=20 > .. yes, I am aware of the situation (winsup/cygwin/errno.cc) ... >=20 > However, in the end this kind of error messages is of NOT much use in ord= er > to ascertain what is going on (i.e. what is causing the problem). >=20 > One is forced to create the exact same environment (system) as the person > who is complaining, fire up the debugger (like sticking a thermometer in a > patient's rear end) in order to find out where the code failed ... >=20 > Meaning, within the context of the recent sshd problems, possibly only you > know where the error ERROR_FILE_INVALID (resulting in the error message "= No > such device or address") was generated ... (and by which Windows function= ). The only interface an application has is by checking the POSIX errno value. This is what Cygwin is about :) If you need more details what's going on under the hood, you have to use strace. > Oh well, this cannot be helped ... Well, there *is* a solution by using strace. And hey, we now know what ENXIO returned from seteuid means, don't we? It's not all bad :) Corinna --=20 Corinna Vinschen Cygwin Maintainer --w89FjbBIqlQz+8Ov Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyLq9cACgkQ9TYGna5E T6D1FxAAknrnESl1ob7gA+EYmHZDDOuU6MJu2HwFaHPsLpjIvMEJ2CKIcu/xUjp/ wW3jLRFyxEqhzq0MP9ZJ66mfZsxbb8tpYU8jpcdtJGjkL2UF7NrqhnrtpKtSJSXN MdfupoF83muGhfLx2P7J7uloDXUZyPSMDYYznMWHDAc1jAqgNu9zRpfKrYAz+rXP QtsyiA+eJ0yJZAXZs12+DA+rgldpQbb2FZbxVmlNDFDwvO0vuLq+4Smjg2+49AYy dBF5IxT4k4YXHILoQwCe1FLnx1hIQ/WjoRpAy/7Mgw98cOiC0xMfA7b0u+AVlD9N mY5H6BjzR3plmyQg500f4mCCfXxNijyZyJN0N8BqvL0/0YGlxQb8ypS3g+0y14TK XAvnDeHeS7m6dHdQpHtP8+QwXLrva7F36uKp3V3wm2rS4utUf4RIEtB85O3BAhjq rbExi/SHEAXUbWXHQoIwmL33tjLka1ufqzEOI8gNSV9D9w/uAG4XUzp56b0gByS2 TKDbNfK8xxttyzBlwKzUitLQMSSPIZPdaDsIpGdh6LHnGnnGpklEZZ0UmuiRyNxx nApcmXmykMfG5Vu3nMGAuzvercaTOnxiQfnmUPWFKIErmD4KHfVpdwlvWjMh2IgE FnHWjOGhXcfkE9TzNj911IYqiQAuyQ1XWoT2pJLWvuNoBj4o0pY= =MUcL -----END PGP SIGNATURE----- --w89FjbBIqlQz+8Ov--