Fedora Cloud 42 agetty segfaults

Running the Fedora Cloud 42 image in proxmox (I haven’t tested other hypervisors) results in the following errors from the serial-getty service:

Apr 17 19:10:43 type-null agetty[1021]: could not get terminal name: -22
Apr 17 19:10:43 type-null systemd-coredump[1030]: [🡕] Process 1021 (agetty) of user 0 dumped core.

                                                  Module /usr/bin/agetty from rpm util-linux-2.40.4-7.fc42.x86_64
                                                  Module libcap.so.2 from rpm libcap-2.73-2.fc42.x86_64
                                                  Module libsystemd.so.0 from rpm systemd-257.3-7.fc42.x86_64
                                                  Stack trace of thread 1021:
                                                  #0  0x00007feb1e463c37 __strncmp_sse42 (libc.so.6 + 0x168c37)
                                                  #1  0x0000561c55891015 main (/usr/bin/agetty + 0x2015)
                                                  #2  0x00007feb1e2fe5f5 __libc_start_call_main (libc.so.6 + 0x35f5)
                                                  #3  0x00007feb1e2fe6a8 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x36a8)
                                                  #4  0x0000561c558934f5 _start (/usr/bin/agetty + 0x44f5)
                                                  ELF object binary architecture: AMD x86-64

If some here could help me with this, it would be greatly appreciated.

Looks like it’s failing to detect the terminal name (possibly because your VM doesn’t have a serial console?) and then the next bit of code attempts to string compare on the name without checking that the name lookup failed.

Seems to already be fixed upstream at agetty: fix stdin conversion to tty name by karelzak · Pull Request #3425 · util-linux/util-linux · GitHub.