Well, this is exactly how I found out. The default install on jammy uses systemd sockets and restarts atftpd daemon after each segfault. This might hide the problem for some time.
Hi, I've found the same behavior on ubuntu jammy. After some debugging I've found this: Strncpy(tftphdr->th_msg, tftp_errmsg[err_code], buffer_size - 4); in line 171 of tftp_io.c The definition of tftphdr in /usr/include/arpa/tftp.h is as follows: struct tftphdr { short th_opcode; /* packet type */ union { char tu_padding[3]; /* sizeof() compat */ struct { union { unsigned short tu_block; /* block # */ short tu_code; /* error code */ } __attribute__ ((__packed__)) th_u3; char tu_data[0]; /* data...