GNU bug report logs - #27640
Bug-report

Previous Next

Package: coreutils;

Reported by: "Wolfgang F. Muthmann" <dk7ub51 <at> web.de>

Date: Mon, 10 Jul 2017 12:58:01 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27640 in the body.
You can then email your comments to 27640 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#27640; Package coreutils. (Mon, 10 Jul 2017 12:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Wolfgang F. Muthmann" <dk7ub51 <at> web.de>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 10 Jul 2017 12:58:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Wolfgang F. Muthmann" <dk7ub51 <at> web.de>
To: bug-coreutils <at> gnu.org
Subject: Bug-report
Date: Mon, 10 Jul 2017 09:46:16 +0200
[Message part 1 (text/plain, inline)]
Hi, I just encountered the following report during generation of Linux
From Scratch version 8.0 :
doing: "make RUN_EXPENSIVE_TESTS=yes check"
------------------------------------------------------------------------
============================================================================
Testsuite summary for GNU coreutils 8.26
============================================================================
# TOTAL: 311
# PASS:  276
# SKIP:  34
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See gnulib-tests/test-suite.log
Please report to bug-coreutils <at> gnu.org
============================================================================
------------------------------------------------------------------------
=====================================================
   GNU coreutils 8.26: gnulib-tests/test-suite.log
=====================================================

# TOTAL: 311
# PASS:  276
# SKIP:  34
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: test-set-mode-acl.sh
==========================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-set-mode-acl.sh (exit status: 77)

SKIP: test-set-mode-acl-1.sh
============================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-set-mode-acl-1.sh (exit status: 77)

SKIP: test-set-mode-acl-2.sh
============================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-set-mode-acl-2.sh (exit status: 77)

SKIP: test-copy-acl.sh
======================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-copy-acl.sh (exit status: 77)

SKIP: test-copy-acl-1.sh
========================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-copy-acl-1.sh (exit status: 77)

SKIP: test-copy-acl-2.sh
========================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-copy-acl-2.sh (exit status: 77)

SKIP: test-btowc1.sh
====================

Skipping test: no traditional french locale is installed
SKIP test-btowc1.sh (exit status: 77)

SKIP: test-btowc2.sh
====================

Skipping test: no french Unicode locale is installed
SKIP test-btowc2.sh (exit status: 77)

SKIP: test-file-has-acl.sh
==========================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-file-has-acl.sh (exit status: 77)

SKIP: test-file-has-acl-1.sh
============================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-file-has-acl-1.sh (exit status: 77)

SKIP: test-file-has-acl-2.sh
============================

+ test 0 = 0
+ echo 'Skipping test: insufficient ACL support'
Skipping test: insufficient ACL support
+ exit 77
SKIP test-file-has-acl-2.sh (exit status: 77)

FAIL: test-getlogin
===================

test-getlogin.c:92: assertion 'strcmp (pwd->pw_name, buf) == 0' failed
FAIL test-getlogin (exit status: 134)

SKIP: test-mbrtowc1.sh
======================

Skipping test: no traditional french locale is installed
SKIP test-mbrtowc1.sh (exit status: 77)

SKIP: test-mbrtowc2.sh
======================

Skipping test: no french Unicode locale is installed
SKIP test-mbrtowc2.sh (exit status: 77)

SKIP: test-mbrtowc3.sh
======================

Skipping test: no traditional japanese locale is installed
SKIP test-mbrtowc3.sh (exit status: 77)

SKIP: test-mbrtowc4.sh
======================

Skipping test: no transitional chinese locale is installed
SKIP test-mbrtowc4.sh (exit status: 77)

SKIP: test-mbrtowc-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-1.sh (exit status: 77)

SKIP: test-mbrtowc-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-2.sh (exit status: 77)

SKIP: test-mbrtowc-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-3.sh (exit status: 77)

SKIP: test-mbrtowc-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-4.sh (exit status: 77)

SKIP: test-mbrtowc-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-5.sh (exit status: 77)

SKIP: test-mbscasecmp.sh
========================

Skipping test: no turkish Unicode locale is installed
SKIP test-mbscasecmp.sh (exit status: 77)

SKIP: test-mbsinit.sh
=====================

Skipping test: no french Unicode locale is installed
SKIP test-mbsinit.sh (exit status: 77)

SKIP: test-mbsrtowcs1.sh
========================

Skipping test: no traditional french locale is installed
SKIP test-mbsrtowcs1.sh (exit status: 77)

SKIP: test-mbsrtowcs2.sh
========================

Skipping test: no french Unicode locale is installed
SKIP test-mbsrtowcs2.sh (exit status: 77)

SKIP: test-mbsrtowcs3.sh
========================

Skipping test: no traditional japanese locale is installed
SKIP test-mbsrtowcs3.sh (exit status: 77)

SKIP: test-mbsrtowcs4.sh
========================

Skipping test: no transitional chinese locale is installed
SKIP test-mbsrtowcs4.sh (exit status: 77)

SKIP: test-mbsstr2.sh
=====================

Skipping test: no french Unicode locale is installed
SKIP test-mbsstr2.sh (exit status: 77)

SKIP: test-mbsstr3.sh
=====================

Skipping test: no chinese GB18030 locale is installed
SKIP test-mbsstr3.sh (exit status: 77)

SKIP: test-setlocale1.sh
========================

Skipping test: no locale for testing is installed
SKIP test-setlocale1.sh (exit status: 77)

SKIP: test-wcrtomb-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-1.sh (exit status: 77)

SKIP: test-wcrtomb-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-2.sh (exit status: 77)

SKIP: test-wcrtomb-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-3.sh (exit status: 77)

SKIP: test-wcrtomb-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-4.sh (exit status: 77)

SKIP: test-wcrtomb-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-5.sh (exit status: 77)

------------------------------------------------------------------------
I hope this information is helpful.

Greatings, W.F. Muthmann

[Message part 2 (text/html, inline)]
[dk7ub51.vcf (text/x-vcard, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#27640; Package coreutils. (Mon, 10 Jul 2017 16:56:02 GMT) Full text and rfc822 format available.

Message #8 received at 27640 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: "Wolfgang F. Muthmann" <dk7ub51 <at> web.de>, 27640 <at> debbugs.gnu.org,
 bug-gnulib <bug-gnulib <at> gnu.org>
Subject: Re: bug#27640: Bug-report
Date: Mon, 10 Jul 2017 09:55:31 -0700
On 10/07/17 00:46, Wolfgang F. Muthmann wrote:
> FAIL: test-getlogin
> ===================
> 
> test-getlogin.c:92: assertion 'strcmp (pwd->pw_name, buf) == 0' failed
> FAIL test-getlogin (exit status: 134)

Forwarding to gnulib

thanks,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#27640; Package coreutils. (Mon, 10 Jul 2017 18:29:02 GMT) Full text and rfc822 format available.

Message #11 received at 27640 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-gnulib <at> gnu.org
Cc: "Wolfgang F. Muthmann" <dk7ub51 <at> web.de>,
 Pádraig Brady <P <at> draigbrady.com>, 27640 <at> debbugs.gnu.org
Subject: Re: bug#27640: Bug-report
Date: Mon, 10 Jul 2017 20:28:21 +0200
Regarding https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27640 :

Hello Wolfgang,

What type of system is this? You are saying "Linux From Scratch version 8.0".
What type of libc is it using? There are several competing ones [1].

> > FAIL: test-getlogin
> > ===================
> > 
> > test-getlogin.c:92: assertion 'strcmp (pwd->pw_name, buf) == 0' failed
> > FAIL test-getlogin (exit status: 134)

Please run the 'test-getlogin' program with ltrace (or, alternatively,
insert printf statements that show what's going on). I get (in a regular
login, or with sudo):

$ ltrace ./test-getlogin
__libc_start_main(0x400b46, 1, 0x7ffef8724a78, 0x403db0 <unfinished ...>
getlogin()                                                                                       = "bruno"
ttyname(0)                                                                                       = "/dev/pts/13"
__xstat(1, "/dev/pts/13", 0x7ffef87248f0)                                                        = 0
getpwuid(1000, 0x7ffef87248f0, 0x7ffef87248f0, 0x7f3d50d1abb5)                                   = 0x7f3d50feadc0
strcmp("bruno", "bruno")                                                                         = 0
+++ exited (status 0) +++

What are the results for you?

What else, that affects the operation of getlogin(), ttyname(), getpwuid(),
could be special in your environment?

Bruno

[1] http://www.etalabs.net/compare_libcs.html





Information forwarded to bug-coreutils <at> gnu.org:
bug#27640; Package coreutils. (Mon, 10 Jul 2017 19:10:01 GMT) Full text and rfc822 format available.

Message #14 received at 27640 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Wolfgang F. Muthmann" <dk7ub51 <at> web.de>
Cc: bug-gnulib <at> gnu.org, Bruno Haible <bruno <at> clisp.org>, 27640 <at> debbugs.gnu.org,
 Pádraig Brady <P <at> draigbrady.com>
Subject: Re: bug#27640: Bug-report
Date: Mon, 10 Jul 2017 12:08:50 -0700
[Message part 1 (text/plain, inline)]
Looking at that test's source code, the test was clearly incorrect for 
Unix-like systems, as it incorrectly assumed a 1-1 mapping between user 
names and user IDs. I fixed that in Gnulib by installing the attached 
patch. Wolfgang, could you please try this on your Linux from Scratch 
system? You can do that by downloading these two files:

http://git.savannah.gnu.org/cgit/gnulib.git/plain/tests/test-getlogin.c
http://git.savannah.gnu.org/cgit/gnulib.git/plain/tests/test-getlogin_r.c

Use the first to replace the existing test-getlogin.c in your coreutils 
source directory, and put the second next to the first.

[0001-getlogin-don-t-assume-one-name-per-uid.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#27640; Package coreutils. (Mon, 29 Oct 2018 03:31:02 GMT) Full text and rfc822 format available.

Message #17 received at 27640 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 27640 <at> debbugs.gnu.org
Subject: Re: bug#27640: Bug-report
Date: Sun, 28 Oct 2018 21:30:42 -0600
tags 27640 fixed
close 27640
stop

(triaging old bugs)

On 2017-07-10 1:08 p.m., Paul Eggert wrote:
> Looking at that test's source code, the test was clearly incorrect for 
> Unix-like systems, as it incorrectly assumed a 1-1 mapping between user 
> names and user IDs. I fixed that in Gnulib by installing the attached 
> patch.

Pushed to gnulib here:

https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=24605b2f03bfa8367a9149835c687c9073aacc2c

So closing as "fixed".

-assaf




Added tag(s) fixed. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 29 Oct 2018 03:31:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 27640 <at> debbugs.gnu.org and "Wolfgang F. Muthmann" <dk7ub51 <at> web.de> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 29 Oct 2018 03:31:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 26 Nov 2018 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.