Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823756 - sys-apps/systemd must be restarted after upgrade to sys-libs/glibc-2.34
Summary: sys-apps/systemd must be restarted after upgrade to sys-libs/glibc-2.34
Status: RESOLVED FIXED
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: glibc-2.34
  Show dependency tree
 
Reported: 2021-11-14 18:01 UTC by Mike Gilbert
Modified: 2022-03-27 23:27 UTC (History)
3 users (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 Mike Gilbert gentoo-dev 2021-11-14 18:01:48 UTC
After upgrading to glibc-2.34, systemd will fail to start any services that are configured to run as a non-root user.

Nov 14 12:44:13 naomi systemd[1725284]: systemd-resolved.service: Failed to determine user credentials: No such process
Nov 14 12:44:13 naomi systemd[1725284]: systemd-resolved.service: Failed at step USER spawning /lib/systemd/systemd-resolved: No such process

I suspect this is due to some symbol conflict between libc as inherted from PID 1 and the NSS modules that get loaded by the forked process.

Running "systemctl daemon-reexec" resolves the issue.
Comment 1 Larry the Git Cow gentoo-dev 2021-11-14 23:05:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1c394c177c08679b430b78c3dbf7611768ca983

commit e1c394c177c08679b430b78c3dbf7611768ca983
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-14 23:05:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-14 23:05:33 +0000

    sys-libs/glibc: restart systemd in pkg_postinst
    
    Closes: https://bugs.gentoo.org/823756
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/glibc/{glibc-2.34-r1.ebuild => glibc-2.34-r2.ebuild} | 6 ++++++
 sys-libs/glibc/glibc-9999.ebuild                              | 6 ++++++
 2 files changed, 12 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2022-03-27 23:25:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c649b8fc2db8abb268098ce1e139bc4b86e9ecc

commit 8c649b8fc2db8abb268098ce1e139bc4b86e9ecc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-27 23:25:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-27 23:25:47 +0000

    sys-libs/glibc: add bug references to "restart processes" warning
    
    Bug: https://bugs.gentoo.org/660556
    Bug: https://bugs.gentoo.org/741116
    Bug: https://bugs.gentoo.org/823756
    See: https://forums.gentoo.org/viewtopic-t-1147884.html
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/glibc/glibc-2.34-r10.ebuild | 1 +
 sys-libs/glibc/glibc-2.35-r1.ebuild  | 1 +
 sys-libs/glibc/glibc-9999.ebuild     | 1 +
 3 files changed, 3 insertions(+)