Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509850 - sys-apps/coreutils-8.22-r1 - id: ?
Summary: sys-apps/coreutils-8.22-r1 - id: ?
Status: RESOLVED DUPLICATE of bug 509748
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 14:08 UTC by Simon Alman
Modified: 2014-05-09 16:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Alman 2014-05-08 14:08:09 UTC
When 8.22-r1 is installed querying a user with id <username> returns unknown user (despite the user being in /etc/passwd). Downgrading to 8.22 makes the system work fine again.

Reproducible: Always

Steps to Reproduce:
1. install coreutils 8.22-r1
2. Run id <user>
3.



I've uploaded the broken and working strace's to pastebin for comparison:

http://pastebin.com/R8Y3Ue17 (broken with coreutils 8.22-r1 installed)
http://pastebin.com/kK0ejqjj (working with coreutils 8.22 installed)

The main difference is that 8.22 runs the following open syscalls:

+open("/lib64/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3
+open("/lib64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
+open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
+open("/lib64/ld-linux-x86-64.so.2", O_RDONLY|O_CLOEXEC) = 3
+open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
+open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
+open("/lib64/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3
+open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
+open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
+open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
+open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
+open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
+open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
+open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
+open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
+open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
+open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3


emerge --info coreutils: http://pastebin.com/R8u2LXh0
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-08 18:30:23 UTC
(In reply to Simon Alman from comment #0)
> http://pastebin.com/R8Y3Ue17 (broken with coreutils 8.22-r1 installed)
> http://pastebin.com/kK0ejqjj (working with coreutils 8.22 installed)

> emerge --info coreutils: http://pastebin.com/R8u2LXh0

Attachments, please.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-09 16:01:44 UTC

*** This bug has been marked as a duplicate of bug 509748 ***