You are not logged in.
Hello,
From time to time, during the post-transaction phase of the package update process, I get this error from systemd-sysusers or systemd-tmpfiles --create:
Assertion 'fclose_nointr(f) != -EBADF' failed at src/basic/fd-util.c:126, function safe_fclose(). Aborting.
/usr/share/libalpm/scripts/systemd-hook : ligne 19 : 1039 Abandon (core dumped)/usr/bin/systemd-sysusers
It usually comes from systemd-tmpfiles --create, but this morning it was systemd-sysusers, as shown in the second line above.
Here are the packages that have been updated:
imagemagick-7.0.11.1-1-x86_64
libibus-1.5.24-1-x86_64
perl-http-message-6.28-1-any
sane-1.0.32-3-x86_64
haskell-aeson-1.5.5.1-25-x86_64
shellcheck-0.7.1-299-x86_64
youtube-dl-2021.02.22-1-any
And here is the core dump:
Process 1039 (systemd-sysuser) of user 0 dumped core.
Stack trace of thread 1039:
#0 0x00007fdd6e585ef5 raise (libc.so.6 + 0x3cef5)
#1 0x00007fdd6e56f862 abort (libc.so.6 + 0x26862)
#2 0x00007fdd6dc98404 n/a (libnss_systemd.so.2 + 0x25404)
#3 0x00007fdd6dc8ef08 n/a (libnss_systemd.so.2 + 0x1bf08)
#4 0x00007fdd6dc96370 n/a (libnss_systemd.so.2 + 0x23370)
#5 0x00007fdd6dc9716a n/a (libnss_systemd.so.2 + 0x2416a)
#6 0x00007fdd6dc974d9 n/a (libnss_systemd.so.2 + 0x244d9)
#7 0x00007fdd6dc7f53c _nss_systemd_getgrnam_r (libnss_systemd.so.2 + 0xc53c)
#8 0x00007fdd6e613039 getgrnam_r@@GLIBC_2.2.5 (libc.so.6 + 0xca039)
#9 0x00007fdd6e6123fc getgrnam (libc.so.6 + 0xc93fc)
#10 0x0000563d74c72102 n/a (systemd-sysusers + 0x5102)
#11 0x0000563d74c721e1 n/a (systemd-sysusers + 0x51e1)
#12 0x0000563d74c73fb0 n/a (systemd-sysusers + 0x6fb0)
#13 0x0000563d74c70a50 n/a (systemd-sysusers + 0x3a50)
#14 0x00007fdd6e570b25 __libc_start_main (libc.so.6 + 0x27b25)
#15 0x0000563d74c70e5e n/a (systemd-sysusers + 0x3e5e)
I have found several mentions of this error on the Internet, but I can't really relate them to the case of installing packages under Arch.
Would you have some explanations to give me about this? Thank you.
Offline
If you can reproduce the issue I would suggest rebuilding systemd with debug sysmbols and post the trace with the debug symbols.
Offline
Unfortunately I can't reproduce this issue. I downgraded my system to 2021-02-20 using archive.archlinux.org, then re-upgraded day by day, without encountering this error.
So following your advice, I compiled systemd from source using systemd-git from AUR, by making it point to refs/tags/v247 and enabling debug via options=('debug' '!strip') and -Dmode=developer.
I'm now running this custom systemd version, so hopefully I will be able to give more details next time.
Thanks!
Offline