From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 20:10:41 2012 Received: (at submit) by debbugs.gnu.org; 2 Apr 2012 00:10:41 +0000 Received: from localhost ([127.0.0.1]:35193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEUr1-0005TF-Os for submit@debbugs.gnu.org; Sun, 01 Apr 2012 20:10:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50417) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SETMg-0003Ii-87 for submit@debbugs.gnu.org; Sun, 01 Apr 2012 18:35:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SETMS-0007gi-2K for submit@debbugs.gnu.org; Sun, 01 Apr 2012 18:35:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:56632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SETMR-0007gQ-S9 for submit@debbugs.gnu.org; Sun, 01 Apr 2012 18:34:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SETMP-0006Oi-RA for bug-coreutils@gnu.org; Sun, 01 Apr 2012 18:34:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SETMN-0007fC-UQ for bug-coreutils@gnu.org; Sun, 01 Apr 2012 18:34:57 -0400 Received: from nm16-vm0.bullet.mail.ukl.yahoo.com ([217.146.183.254]:21777) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SETMN-0007ZO-IJ for bug-coreutils@gnu.org; Sun, 01 Apr 2012 18:34:55 -0400 Received: from [217.146.183.212] by nm16.bullet.mail.ukl.yahoo.com with NNFMP; 01 Apr 2012 22:34:52 -0000 Received: from [217.146.183.204] by tm5.bullet.mail.ukl.yahoo.com with NNFMP; 01 Apr 2012 22:34:52 -0000 Received: from [127.0.0.1] by omp1002.bt.mail.ukl.yahoo.com with NNFMP; 01 Apr 2012 22:34:52 -0000 X-Yahoo-Newman-Id: 414298.20265.bm@omp1002.bt.mail.ukl.yahoo.com Received: (qmail 12021 invoked from network); 1 Apr 2012 22:34:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333319692; bh=UZtiPpnCP3188yPYCj1BqtZl4ZxbcWYkVfhMxRaPfkQ=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Subject:From:To:Cc:Date:Content-Type:X-Mailer:Content-Transfer-Encoding:Mime-Version; b=5XAJC0oKwej/eSx7opsXWOqFjhhSgGHB2ui0ed0aBbuGTjHZ0kz/A/YCw7fAsgqaYOG6Xgu4t0aCoEWUa9IJMzolTX7XIP05yi6oYKBBIPhviq8D0+mf5hI+oRd1xevM29PkylnUK704T0mWs3bIR/kOVTgdz9CWFcfBYz+ZxZY= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: YBbaXGMVM1lE1AHrKpGt8DkFHJyH5Orc_r8DOQBS8e1.mPa y5wi2YRq5eDpJmj864Ys0n.BFOs0akQNpsIh_oDr0WotySSuwKhrfeYT1hyT OXJU2_lpOtgSNeOdx.cTNYi6pACuZ9wxYIZMn2TOODO84HHkg3_FOjeQErFe xSrQiKdXXdV0dfBIJ78QeAp6Y_qFqw6BZiQWglDBQcA_n2GFQRwPK9GizmVf EeEpTvNkdUh_GAqERxMGaQWci6qRBfpc2t8UknkFPF_8LgnZ8vmNh.hoVjkd 5SxZa1D5MukwH9lpz.uIXnUewWqcDjZTbNfkY5NuE_0SB8WJ.JjRwGelmEEI .40Y123IWSEE.5vEasli0yx8QZ8DIijAGuyL_ZqO_swMDFlNTAzknRe9Lmbv MA327ukJfAwPwUIRiQM9LTqXXt8pOeJ2qQd7wsl9NZtycJwhsvhciQ5HMoZ6 5L.CZN9enVSKyMz4u6ttZtfLP21vFAi3HtNcrqaTW1WyvOA5tPOlpj1mCpM_ WxzjlGId4W5a9cgjozzNJrXxbM_HoAgXHBxHlEeg- X-Yahoo-SMTP: wyYcNWyswBCGVL.frqMtM_78a8pWUGJ.MK0SkaS06skXXXF4cmtHuUKnLFp8 Received: from [192.168.0.30] (matthew@87.74.75.34 with login) by smtp828.mail.ird.yahoo.com with SMTP; 01 Apr 2012 15:34:52 -0700 PDT Message-ID: <1333319691.7273.30.camel@kyoto.localdomain> Subject: getlogin test failure From: Matt Burgess To: bug-coreutils@gnu.org Date: Sun, 01 Apr 2012 23:34:51 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 01 Apr 2012 20:10:38 -0400 Cc: bug-gnulib@gnu.org, matthew@linuxfromscratch.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hi, The coreutils-8.16 release brought in the getlogin gnulib module. When running through the testsuite, test-getlogin.c fails for me on a GNU/Linux system. There are a couple of different failure scenarios: 1) If I 'make' as my normal user account, then run "su nobody -s /bin/bash -c 'make check'", then the assertion at line 61 (ASSERT (strcmp (buf, name) == 0);) fails because buf=="mylogin" and name=="nobody". If you're wondering why I would do something like that, it's because it's a slightly simplified form of my usual build method: sudo su - FORCE_UNSAFE_CONFIGURE=1 ./configure make make check-root chown -R nobody . su nobody -s /bin/bash -c 'make check' 2) Under my non-simplified build method, using an automated build tool, the assertion at line 43 fails. Debugging this shows that getlogin(3) returns ENOENT which isn't handled by the assertion. That behaviour is documented at http://man7.org/linux/man-pages/man3/getlogin.3.html. However, the trivial patch to handle that case too just results in the very next assert failing (line 47: ASSERT (! isatty (0));). I'm still trying to figure out what's causing isatty(0) to return 0, and suspect the automated build tool I'm using; so far I've been unable to reproduce this via manually-invoked builds. I'll post again if I can reproduce it. Thanks, Matt. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 19 07:09:43 2012 Received: (at 11150) by debbugs.gnu.org; 19 Apr 2012 11:09:43 +0000 Received: from localhost ([127.0.0.1]:40964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKpF4-0003NF-W8 for submit@debbugs.gnu.org; Thu, 19 Apr 2012 07:09:43 -0400 Received: from smtp4-g21.free.fr ([212.27.42.4]:32986) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKpEz-0003N0-3m for 11150@debbugs.gnu.org; Thu, 19 Apr 2012 07:09:38 -0400 Received: from zimbra33-e6.priv.proxad.net (unknown [172.20.243.183]) by smtp4-g21.free.fr (Postfix) with ESMTP id DDE464C812D; Thu, 19 Apr 2012 13:09:08 +0200 (CEST) Date: Thu, 19 Apr 2012 13:09:07 +0200 (CEST) From: g.esp@free.fr To: Matt Burgess Message-ID: <1281164786.51717164.1334833747733.JavaMail.root@zimbra33-e6.priv.proxad.net> In-Reply-To: <1333319691.7273.30.camel@kyoto.localdomain> Subject: Re: bug#11150: getlogin test failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [163.116.6.12] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Win)/7.2.0-GA2598) X-Authenticated-User: g.esp@free.fr X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11150 Cc: 11150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) ----- Mail original ----- > De: "Matt Burgess" > =C3=80: 11150@debbugs.gnu.org > Cc: bug-gnulib@gnu.org, matthew@linuxfromscratch.org > Envoy=C3=A9: Lundi 2 Avril 2012 00:34:51 > Objet: bug#11150: getlogin test failure >=20 > Hi, >=20 > The coreutils-8.16 release brought in the getlogin gnulib module. >=20 > When running through the testsuite, test-getlogin.c fails for me on a > GNU/Linux system. There are a couple of different failure scenarios: >=20 I am surprised nobody answered to this test failure that I fixed on my buil= d system using the same sed as LFS book. Is this not reproductible out of LFS way to build? I checked gnulib tree to see nothing changed into test-getlogin.c since 201= 2-01-01. Gilles From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 19 07:18:50 2012 Received: (at 11150) by debbugs.gnu.org; 19 Apr 2012 11:18:50 +0000 Received: from localhost ([127.0.0.1]:40968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKpNt-0003aX-Si for submit@debbugs.gnu.org; Thu, 19 Apr 2012 07:18:50 -0400 Received: from mx.meyering.net ([88.168.87.75]:34618) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKpNm-0003aJ-Oh for 11150@debbugs.gnu.org; Thu, 19 Apr 2012 07:18:43 -0400 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id F04B36007F; Thu, 19 Apr 2012 13:18:17 +0200 (CEST) From: Jim Meyering To: g.esp@free.fr Subject: Re: bug#11150: getlogin test failure In-Reply-To: <1281164786.51717164.1334833747733.JavaMail.root@zimbra33-e6.priv.proxad.net> (g. esp's message of "Thu, 19 Apr 2012 13:09:07 +0200 (CEST)") References: <1333319691.7273.30.camel@kyoto.localdomain> <1281164786.51717164.1334833747733.JavaMail.root@zimbra33-e6.priv.proxad.net> Date: Thu, 19 Apr 2012 13:18:17 +0200 Message-ID: <87zka8otqe.fsf@rho.meyering.net> Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11150 Cc: Matt Burgess , 11150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) g.esp@free.fr wrote: > ----- Mail original ----- >> De: "Matt Burgess" >> =C0: 11150@debbugs.gnu.org >> Cc: bug-gnulib@gnu.org, matthew@linuxfromscratch.org >> Envoy=E9: Lundi 2 Avril 2012 00:34:51 >> Objet: bug#11150: getlogin test failure >> >> Hi, >> >> The coreutils-8.16 release brought in the getlogin gnulib module. >> >> When running through the testsuite, test-getlogin.c fails for me on a >> GNU/Linux system. There are a couple of different failure scenarios: >> > > I am surprised nobody answered to this test failure that I fixed on my > build system using the same sed as LFS book. > > Is this not reproductible out of LFS way to build? > > I checked gnulib tree to see nothing changed into test-getlogin.c > since 2012-01-01. Thanks for the follow-up. If you run the root-only tests as recommended in README, does that test still fail? From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 19 08:35:10 2012 Received: (at 11150) by debbugs.gnu.org; 19 Apr 2012 12:35:10 +0000 Received: from localhost ([127.0.0.1]:41081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKqZl-0006Cc-3s for submit@debbugs.gnu.org; Thu, 19 Apr 2012 08:35:10 -0400 Received: from quantum.linuxfromscratch.org ([216.171.237.234]:52340) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKqZe-0006C5-1h for 11150@debbugs.gnu.org; Thu, 19 Apr 2012 08:35:03 -0400 Received: by quantum.linuxfromscratch.org (Postfix, from userid 108) id B095A14020; Thu, 19 Apr 2012 06:33:52 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on quantum.linuxfromscratch.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.1.7 Received: from localhost (quantum.linuxfromscratch.org [216.171.237.234]) by quantum.linuxfromscratch.org (Postfix) with ESMTP id 4FDE514020; Thu, 19 Apr 2012 06:33:46 -0600 (MDT) MIME-Version: 1.0 Date: Thu, 19 Apr 2012 6:33:46 -0600 From: Matthew Burgess To: Jim Meyering Subject: Re: bug#11150: getlogin test failure In-Reply-To: <87zka8otqe.fsf@rho.meyering.net> References: <87zka8otqe.fsf@rho.meyering.net> Message-ID: X-Sender: matthew@linuxfromscratch.org User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11150 Cc: g.esp@free.fr, 11150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Thu, 19 Apr 2012 13:18:17 +0200, Jim Meyering wrote= : > g.esp@free.fr wrote: >=20 >> ----- Mail original ----- >>> De: "Matt Burgess" >>> =C3=80: 11150@debbugs.gnu.org >>> Cc: bug-gnulib@gnu.org, matthew@linuxfromscratch.org >>> Envoy=C3=A9: Lundi 2 Avril 2012 00:34:51 >>> Objet: bug#11150: getlogin test failure >>> >>> Hi, >>> >>> The coreutils-8.16 release brought in the getlogin gnulib module. >>> >>> When running through the testsuite, test-getlogin.c fails for me on a >>> GNU/Linux system. There are a couple of different failure scenarios: >>> >> >> I am surprised nobody answered to this test failure that I fixed on my >> build system using the same sed as LFS book. >> I'm just as guilty of not following up on my own report. > If you run the root-only tests as recommended in README, > does that test still fail? I run the root-only tests as: make NON_ROOT_USERNAME=3Dnobody check-root I get no failures during that run. I run the other tests as: su nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=3Dyes check" It's here that the getlogin test fails. I don't care so much about the odd(ish) tty issues for now. However, the assert in getlogin.c:60-61 tha= t assumes getlogin() and getenv("LOGNAME") always returns the same name fai= ls when run under 'su' as shown above, and as recommended in README. Hopefully, that failure is easy enough for anyone to reproduce. At some point I hope to get more time to look into the tty issue. Regards, Matt. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 12 13:25:01 2012 Received: (at 11150) by debbugs.gnu.org; 12 Aug 2012 17:25:01 +0000 Received: from localhost ([127.0.0.1]:51550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0buP-0007mB-D4 for submit@debbugs.gnu.org; Sun, 12 Aug 2012 13:25:01 -0400 Received: from mail.99main.com ([208.28.184.11]:46101) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0buN-0007ly-8R for 11150@debbugs.gnu.org; Sun, 12 Aug 2012 13:25:00 -0400 Received: from warshall.local.loc (65.172.152.38.dsl.99main.com [65.172.152.38]) by mail.99main.com (8.12.8+Sun/8.12.8) with ESMTP id q7CHGUlE008859; Sun, 12 Aug 2012 13:16:30 -0400 (EDT) Date: Sun, 12 Aug 2012 12:01:32 -0400 From: Andrew Warshall To: 11150@debbugs.gnu.org Subject: Re: bug#11150: getlogin test failure Message-ID: <20120812120132.5a4ebacf@warshall.local.loc> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/6izZDEaMhlTS=rlW6g3U/pn" X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11150 Cc: matthew@linuxfromscratch.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) --MP_/6izZDEaMhlTS=rlW6g3U/pn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: base64 Content-Disposition: inline LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQpIaS0NCg0K ICAgSSdtIHNlZWluZyB0aGUgc2FtZSBpc3N1ZSB3aXRoIDguMTguIEFwcGFyZW50bHkgeHRlcm0g ZG9lc24ndCB3cml0ZQ0KICAgdG8gL3Zhci9ydW4vdXRtcCBieSBkZWZhdWx0LCBzbyBnZXRsb2dp biAoKSBmYWlscyB3aXRoIGVycm5vID09DQogICBFTk9FTlQuIEhvd2V2ZXIsIGlzYXR0eSAoMCkg c3RpbGwgc3VjY2VlZHMuIFRoZSBhdHRhY2hlZCBwYXRjaA0KICAgKGJhc2VkIG9uLCB0aG91Z2gg bm90IGludGVyY2hhbmdlYWJsZSB3aXRoLCB0aGUgc2VkIGNvbW1hbmQgYXQNCiAgIGh0dHA6Ly93 d3cubGludXhmcm9tc2NyYXRjaC5vcmcvbGZzL3ZpZXcvZGV2ZWxvcG1lbnQvY2hhcHRlcjA2L2Nv cmV1dGlscy5odG1sKQ0KICAgc2tpcHMgdGhlIHRlc3QgdW5kZXIgdGhvc2UgY29uZGl0aW9ucyAo YXQgbGVhc3QgaXQgd29ya3Mgb24gbXkNCiAgIG1hY2hpbmUpLiBPZiBjb3Vyc2UsIHlvdSBjb3Vs ZCBhbHRlcm5hdGl2ZWx5IHRha2UgdGhlIHBvc2l0aW9uIHRoYXQNCiAgIHJlbGlhbmNlIG9uIC92 YXIvcnVuL3V0bXAgaXMgYSBidWcgaW4gZ2V0bG9naW4gKCkgaW4gZ251bGliOyBidXQNCiAgIHRo ZW4gSSBkb24ndCBrbm93IGhvdyB0byBmaXggaXQuDQoNCiAgICAgIC1BbmRyZXcgV2Fyc2hhbGwN Ci0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tDQpWZXJzaW9uOiBHbnVQRyB2MS40LjEyIChH TlUvTGludXgpDQoNCmlRRWNCQUVCQWdBR0JRSlFKOU5jQUFvSkVFU1BSV2g3OVQ3dDBJWUlBSWxU UHpLaFhnUnFPZ3N4S1lBRVVxNFcNCllIQm40ZnczMFY1elpKZG02M0dTdm5OalZaaUJVcGpEMzln WFZkU2xnRHU4bUdFZENXMVIycFArRC9SOEM1N3ENClhQa2pvV0VsdEhWeU4veFBmUVpkamJzQ2ds eFZaN3dEWWt6TXNXdG9KLzdLOE53UFNpeW1lckd3RXBkUnFVZWoNClRmQmw4bWltY3FuQVNUeVcr ZTBTY0pVUDVzTVZFbWVGSTNkUG1YRDdrUytidmZNdVZ4VDNZaExDdHdRT1NSdVoNCktRZ210ckI5 aERSUW9WUnlENGx5MWJEbmVSUXByV3JnOGc0UVhTME5TUlZMZWhTS2RIL2RpSEhMZys4TjZyZ1kN CjVwbDcyYnd6NjZiQWNXazZkODNheDErcVJHNmlicGpQQVpWOHd0ZVlvQ2xRMFo4RytXcWFGOXhO VkY1RTJQUT0NCj1ibUV2DQotLS0tLUVORCBQR1AgU0lHTkFUVVJFLS0tLS0NCg== --MP_/6izZDEaMhlTS=rlW6g3U/pn Content-Type: application/octet-stream; name=coreutils-8.18-test-getlogin-fix.patch.gz Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=coreutils-8.18-test-getlogin-fix.patch.gz H4sICInSJ1AAA2NvcmV1dGlscy04LjE4LXRlc3QtZ2V0bG9naW4tZml4LnBhdGNoAH2R3WrCQBCF r81THPVGjRs3qVSNCJEitCBR1JYWCpKaTVwqE0lWVPDhu0FD0f6ci7nZmW/OmWWMIabdRn4wJTKV tfLKYqE2SSzJWllJKuOSw22H8S6zHdjcveu6TtfihcB4m3PDNM1/SbeQnsvvf0A8D6ztNHswdbU5 PM/AWa0GClatjiiQmwz7tSBkKpQEmYEShVVCJFZKhFAJAih1tIBGq4AM5/PRbIGaSFNKMBhg5E8W i7fiudDphO+OJ/9lOM7XZ0JvSwhjSbtDaz4dzh5ytFn6ZcifjPzFDbbeN1CVEcqhiCRpi8vlers7 5OgJ4XHKnl9h25ZtQ6pLwICO++ASgV1HKOvIgc6HGq9rsvl3QO0kN3czgKqgUEaFx2ibSlIRavqc eriJyvxTbreSYuT/6F6f+XzZd6rkoLNSoXYpodPpG19USdQ5VAIAAA== --MP_/6izZDEaMhlTS=rlW6g3U/pn-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 13 10:11:02 2012 Received: (at 11150) by debbugs.gnu.org; 13 Aug 2012 14:11:02 +0000 Received: from localhost ([127.0.0.1]:53543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0vMD-0005wj-1e for submit@debbugs.gnu.org; Mon, 13 Aug 2012 10:11:01 -0400 Received: from mx.meyering.net ([88.168.87.75]:45686) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0vM9-0005wa-DF for 11150@debbugs.gnu.org; Mon, 13 Aug 2012 10:10:59 -0400 Received: from rho.meyering.net (rho.meyering.net [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id F0F9F6007F; Mon, 13 Aug 2012 16:02:22 +0200 (CEST) From: Jim Meyering To: Andrew Warshall Subject: Re: bug#11150: getlogin test failure In-Reply-To: <20120812120132.5a4ebacf@warshall.local.loc> (Andrew Warshall's message of "Sun, 12 Aug 2012 12:01:32 -0400") References: <1333319691.7273.30.camel@kyoto.localdomain> <20120812120132.5a4ebacf@warshall.local.loc> Date: Mon, 13 Aug 2012 16:02:22 +0200 Message-ID: <87vcgmvqj5.fsf@rho.meyering.net> Lines: 29 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11150 Cc: bug-gnulib@gnu.org, matthew@linuxfromscratch.org, 11150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Andrew Warshall wrote: > I'm seeing the same issue with 8.18. Apparently xterm doesn't write > to /var/run/utmp by default, so getlogin () fails with errno == > ENOENT. However, isatty (0) still succeeds. The attached patch > (based on, though not interchangeable with, the sed command at > http://www.linuxfromscratch.org/lfs/view/development/chapter06/coreutils.html) > skips the test under those conditions (at least it works on my > machine). Of course, you could alternatively take the position that > reliance on /var/run/utmp is a bug in getlogin () in gnulib; but > then I don't know how to fix it. Thanks for the report and patch. I'm forwarding this to the bug-gnulib list since that is where this test is maintained. > --- gnulib-tests/test-getlogin.c.orig 2012-08-12 10:38:28.000000000 -0400 > +++ gnulib-tests/test-getlogin.c 2012-08-12 10:39:06.000000000 -0400 > @@ -42,9 +42,10 @@ > /* getlogin() fails when stdin is not connected to a tty. */ > ASSERT (errno == ENOTTY > || errno == EINVAL /* seen on Linux/SPARC */ > + || errno == ENOENT > ); > #if !defined __hpux /* On HP-UX 11.11 it fails anyway. */ > - ASSERT (! isatty (0)); > + ASSERT (errno == ENOENT || ! isatty (0)); > #endif > fprintf (stderr, "Skipping test: stdin is not a tty.\n"); > return 77; From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 09 10:02:00 2012 Received: (at 11150) by debbugs.gnu.org; 9 Nov 2012 15:02:00 +0000 Received: from localhost ([127.0.0.1]:58168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWq5n-0003Wb-CN for submit@debbugs.gnu.org; Fri, 09 Nov 2012 10:02:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61706) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWq5j-0003WS-Oc for 11150@debbugs.gnu.org; Fri, 09 Nov 2012 10:01:57 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA9F1c4U010697 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2012 10:01:38 -0500 Received: from [10.36.116.19] (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qA9F1Whr006881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2012 10:01:35 -0500 Message-ID: <509D1ACC.2040702@draigBrady.com> Date: Fri, 09 Nov 2012 15:01:32 +0000 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Jim Meyering Subject: Re: bug#11150: getlogin test failure References: <1333319691.7273.30.camel@kyoto.localdomain> <20120812120132.5a4ebacf@warshall.local.loc> <87vcgmvqj5.fsf@rho.meyering.net> In-Reply-To: <87vcgmvqj5.fsf@rho.meyering.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qA9F1c4U010697 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 11150 Cc: Andrew Warshall , bug-gnulib@gnu.org, matthew@linuxfromscratch.org, 11150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On 08/13/2012 03:02 PM, Jim Meyering wrote: > Andrew Warshall wrote: >> I'm seeing the same issue with 8.18. Apparently xterm doesn't writ= e >> to /var/run/utmp by default, so getlogin () fails with errno =3D=3D >> ENOENT. However, isatty (0) still succeeds. The attached patch >> (based on, though not interchangeable with, the sed command at >> http://www.linuxfromscratch.org/lfs/view/development/chapter06/cor= eutils.html) >> skips the test under those conditions (at least it works on my >> machine). Of course, you could alternatively take the position tha= t >> reliance on /var/run/utmp is a bug in getlogin () in gnulib; but >> then I don't know how to fix it. > > Thanks for the report and patch. > I'm forwarding this to the bug-gnulib list > since that is where this test is maintained. > >> --- gnulib-tests/test-getlogin.c.orig 2012-08-12 10:38:28.000000000 -0= 400 >> +++ gnulib-tests/test-getlogin.c 2012-08-12 10:39:06.000000000 -0400 >> @@ -42,9 +42,10 @@ >> /* getlogin() fails when stdin is not connected to a tty. */ >> ASSERT (errno =3D=3D ENOTTY >> || errno =3D=3D EINVAL /* seen on Linux/SPARC */ >> + || errno =3D=3D ENOENT >> ); >> #if !defined __hpux /* On HP-UX 11.11 it fails anyway. */ >> - ASSERT (! isatty (0)); >> + ASSERT (errno =3D=3D ENOENT || ! isatty (0)); >> #endif >> fprintf (stderr, "Skipping test: stdin is not a tty.\n"); >> return 77; > > Fixed with: http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommit;h=3D4f81aa5 http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommit;h=3Dbfe5b0d thanks, P=E1draig. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 09 10:04:35 2012 Received: (at control) by debbugs.gnu.org; 9 Nov 2012 15:04:35 +0000 Received: from localhost ([127.0.0.1]:58198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWq8I-0003b9-HX for submit@debbugs.gnu.org; Fri, 09 Nov 2012 10:04:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34282) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWq8F-0003av-M1; Fri, 09 Nov 2012 10:04:32 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA9F4KXw031124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2012 10:04:20 -0500 Received: from [10.36.116.19] (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qA9F4FBe010800 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 9 Nov 2012 10:04:18 -0500 Message-ID: <509D1B6F.2040905@draigBrady.com> Date: Fri, 09 Nov 2012 15:04:15 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: g.esp@free.fr Subject: Re: bug#12729: coreutils-8.20/gnulib-tests/ References: <434478820.331246347.1351196503122.JavaMail.root@zimbra33-e6.priv.proxad.net> In-Reply-To: <434478820.331246347.1351196503122.JavaMail.root@zimbra33-e6.priv.proxad.net> Content-Type: text/plain; charset=UTF-8; format=flowed X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qA9F4KXw031124 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control Cc: 12729@debbugs.gnu.org, Alice X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) unarchive 11150 forcemerge 12729 11150 close 11150 stop On 10/25/2012 09:21 PM, g.esp@free.fr wrote: > > > ----- Mail original ----- >> De: "P=C3=A1draig Brady" >> =C3=80: "Alice" >> Cc: 12729@debbugs.gnu.org >> Envoy=C3=A9: Jeudi 25 Octobre 2012 15:41:39 >> Objet: bug#12729: coreutils-8.20/gnulib-tests/ >> >> On 10/25/2012 07:44 AM, Alice wrote: >> > Archlinux 64 bit >> > no work.!!! >>> FAIL: test-getlogin >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> test-getlogin.c:45: assertion failed >> >> You can see the test here: >> http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dblob;f=3Dtests/test-g= etlogin.c;h=3D449ceaa;hb=3DHEAD#l45 >> >> Does this happen every time for that test? >> >> I notice the test is not checking for >> errno=3D=3DENOENT or errno=3DENXIO >> Could you adjust the test to print out the >> errno that's being returned? >> >> thanks, >> P=C3=A1draig. >> >> > I think this is the same issue as #11150 > http://lists.gnu.org/archive/html/bug-coreutils/2012-04/msg00056.html > > I added a printf to see errno and the number reported was 2 (ENOENT). > > It is normal that getlogin fail as nobody is logged inside my chroot. > [chroot-i486] root:/$ w > 22:14:14 up 1 day, 2:53, 0 users, load average: 0.51, 0.59, 0.34 > USER TTY LOGIN@ IDLE JCPU PCPU WHAT > > In the chroot, I created a user with a shell and log as this user. Then= the test pass. > ./gnulib-tests/test-getlogin && echo $? Fixed with: http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommit;h=3D4f81aa5 http://git.sv.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommit;h=3Dbfe5b0d thanks, P=C3=A1draig. From unknown Mon Jun 23 02:22:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 08 Dec 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator