You are not logged in.
When logging in on any tty (other than the one owned by my gdm session) /usr/bin/login dumps core on 6.3.7-arch1-1 (x86_64)
Doing a coredumpctl debug <dump> shows
gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007ffad887b2d3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffad882ba08 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffad8814538 in __GI_abort () at abort.c:79
#4 0x00007ffad855ff7c in log_assert_failed (text=text@entry=0x7ffad85865ce "close_nointr(fd) != -EBADF", file=file@entry=0x7ffad858504a "src/basic/fd-util.c", line=line@entry=74, func=<optimized out>) at ../systemd-stable/src/basic/log.c:889
#5 0x00007ffad856006f in safe_close (fd=3) at ../systemd-stable/src/basic/fd-util.c:74
#6 0x00007ffad8548c1d in bus_close_io_fds (b=b@entry=0x561033b94a30) at ../systemd-stable/src/libsystemd/sd-bus/sd-bus.c:140
#7 0x00007ffad8548dab in bus_free (b=0x561033b94a30) at ../systemd-stable/src/libsystemd/sd-bus/sd-bus.c:193
#8 0x00007ffad89eb4cd in _pam_free_data (status=1073741824, pamh=0x561033b79680) at /usr/src/debug/pam/Linux-PAM-1.5.3/libpam/pam_data.c:161
#9 pam_end (pamh=0x561033b79680, pam_status=pam_status@entry=1073741824) at /usr/src/debug/pam/Linux-PAM-1.5.3/libpam/pam_end.c:32
#10 0x00005610326e4f25 in main (argc=<optimized out>, argv=<optimized out>) at ../util-linux/login-utils/login.c:1537
(gdb) Any one else seeing similar behaviour?
Last edited by napalul (2023-06-13 22:01:07)
Offline
Make sure you don't have unmerged/unhandled pacnew files flying about in /etc/pam.d
Offline
https://github.com/systemd/systemd/issues/27892 ? Although that should be fixed in systemd 253.5-1 by https://github.com/systemd/systemd-stab … 43a60c4490
Offline
I'm running systemd 253 (253.5-1-arch) so I'd expect the issue you posted to be fixed. I checked for unhandled pacnew files in /etc/pam.d and your suggestion was bang on the money: I had an unhandled system-auth file - replaced the old file with the new after doing a diff and I can log right in on virtual ttys.
Thanks to both of you ![]()
Offline