You are not logged in.

#1 2023-06-13 21:27:20

napalul
Member
Registered: 2023-06-13
Posts: 2

[SOLVED] Login on virtual tty (such as tty3) dumps core

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

#2 2023-06-13 21:43:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: [SOLVED] Login on virtual tty (such as tty3) dumps core

Make sure you don't have unmerged/unhandled pacnew files flying about in /etc/pam.d

Offline

#3 2023-06-13 21:46:01

loqs
Member
Registered: 2014-03-06
Posts: 18,884

Re: [SOLVED] Login on virtual tty (such as tty3) dumps core

Offline

#4 2023-06-13 22:00:38

napalul
Member
Registered: 2023-06-13
Posts: 2

Re: [SOLVED] Login on virtual tty (such as tty3) dumps core

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 smile

Offline

Board footer

Powered by FluxBB