Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783171 - sys-libs/glibc-2.32-r8 - many commands hang for minutes due to new nsswitch.conf options
Summary: sys-libs/glibc-2.32-r8 - many commands hang for minutes due to new nsswitch.c...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 16:40 UTC by Ben Kohler
Modified: 2021-04-16 19:43 UTC (History)
5 users (show)

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


Attachments
strace for su - (upload.log,27.46 KB, text/plain)
2021-04-16 16:40 UTC, Ben Kohler
Details
strace for emerge --info (output2.log,263.75 KB, text/plain)
2021-04-16 16:50 UTC, Ben Kohler
Details
full strace for emerge --info (finaloutput2.log.gz,203.77 KB, application/octet-stream)
2021-04-16 16:58 UTC, Ben Kohler
Details
full strace for previous su - (strace.log,640.38 KB, text/plain)
2021-04-16 17:00 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2021-04-16 16:40:28 UTC
Created attachment 700155 [details]
strace for su -

With the new options in nsswitch.conf:
group:      files [SUCCESS=merge] systemd
passwd:     files systemd

After a while of uptime, many commands start taking a very long time to respond, it seems to be multiples of 30s.  The problem seems to come and go, but when it happens, all new commands will hang up.  Then they will all start responding again at the same time.

Here is an attached strace log for strace -r -f su -  , up to the point where it hung
Comment 1 Ben Kohler gentoo-dev 2021-04-16 16:48:27 UTC
# time emerge --info

real	6m0.959s
user	0m0.542s
sys	0m0.091s
Comment 2 Ben Kohler gentoo-dev 2021-04-16 16:50:31 UTC
Created attachment 700158 [details]
strace for emerge --info

Here is where emerge --info hangs
Comment 3 Ben Kohler gentoo-dev 2021-04-16 16:58:16 UTC
Created attachment 700161 [details]
full strace for emerge --info
Comment 4 Ben Kohler gentoo-dev 2021-04-16 17:00:19 UTC
Created attachment 700173 [details]
full strace for previous su -
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-04-16 18:59:34 UTC
Duplicate of bug #773436?
Comment 6 Ben Kohler gentoo-dev 2021-04-16 19:01:45 UTC
Different but I managed to get to the bottom of this earlier with help of floppym.  libnss_systemd.so existed on this (openrc only) system and was causing the hangs, not sure where it came from.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-16 19:43:48 UTC
(Useful in case it somehow happens to others)