Util-Linux package development
 help / color / mirror / Atom feed
From: Florian Bach <Leseratte10@vodafone.de>
To: Chris Hofstaedtler <zeha@debian.org>, 1098694@bugs.debian.org
Cc: util-linux@vger.kernel.org
Subject: Re: Bug#1098694: Crash in agetty due to invalid strncmp call in Trixie
Date: Sun, 23 Feb 2025 14:40:08 +0100	[thread overview]
Message-ID: <bee22700-d1e4-42a2-9fe6-9ba9d2e64538@vodafone.de> (raw)
In-Reply-To: <tzuam3pqfrm6g7t4hwwapmpxxux75bf4vxd42qb6iode2hqnnx@ve4h5lyd3yp6>

[-- Attachment #1: Type: text/plain, Size: 2551 bytes --]

Hello Chris,

> 1) is this on amd64?

Yes, this is on amd64.

> 2) which terminal is this? tty1 or something else?

What do you mean with "is this"? The error messages show up on tty1, the 
default terminal I get when booting Debian without a GUI installed. The 
one where it says "Debian GNU/Linux trixie/sid <hostname> tty1". But the 
agetty process that crashes seems to be trying to manage a different tty 
(see below).

> 3) whats your kernel command line?

# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.12.12-amd64 
root=PARTUUID=add96c19-7043-4bb1-8899-ca970a7d33c8 ro console=tty0 
console=ttyS0,115200 earlyprintk=ttyS0,115200 consoleblank=0

> 4) which image did you use exactly?

I can reproduce the error with today's image, 
debian-13-generic-amd64-daily-20250223-2032.qcow2, without any 
additional modifications. I'm running this on a Proxmox host.

> 5) could you try util-linux 2.41-rc1 from experimental?

I have just installed util-linux 2.41~rc1-1 and its dependencies and 
rebooted the VM, didn't change anything, the error / segfault is still 
present.

> Attaching should be fine, possibly compressed. Probably an strace
> log could be more insightful than the ltrace log.

I have attached both an ltrace and an strace log to this email.

> Looks like commit 47831cc02ac0d71c335caecef1753f4c8861277c did not
> take this into account fully. get_terminal_name resets *name to
> NULL, and I think then op->tty ends up being NULL.

Yeah, that seems to be what happens. After I sent this bug report 
yesterday, I also found out that someone has reported what I believe is 
the same bug to upstream a while ago ( 
https://github.com/util-linux/util-linux/issues/3304 ) but so far nobody 
has commented on that report.

Note that in the strace log I attached, it tries to open / access the 
file at /run/credentials/serial-getty@ttyS0.service. My VM does not have 
a serial port (since Proxmox VMs apparently don't have one by default). 
If I add a serial port to the VM and then boot it, the errors are gone. 
So maybe it tries to provide a serial console on ttyS0 due to the 
"console=ttyS0,115200" in the kernel command line (I didn't put it 
there, maybe it's the default?) and that fails because it doesn't exist?

If I run "cat /dev/ttyS0" on such a machine, I get "Input/output error". 
When I add a serial port through proxmox (and the error is gone), the 
"cat /dev/ttyS0" works (doesn't return because it's reading data).

So the issue seems to be related to a nonfunctioning serial port, 
apparently.

Best regards,
Florian

[-- Attachment #2: ltrace_debug_log.txt --]
[-- Type: text/plain, Size: 3496 bytes --]

setlocale(LC_ALL, "")                            = "C.UTF-8"
bindtextdomain("util-linux", "/usr/share/locale") = "/usr/share/locale"
textdomain("util-linux")                         = "util-linux"
sigemptyset(<>)                                  = 0
sigaction(SIGHUP, {0x1, <>, 0, nil}, {nil, <>, 0x2a4a15b8, 0x7fc1ce1b2eaa}) = 0
sigaction(SIGQUIT, {0x1, <>, 0, nil}, {nil, <>, 0x2a4a15b8, 0x7fc1ce1b2eaa}) = 0
sigaction(SIGINT, {0x1, <>, 0, nil}, {nil, <>, 0x2a4a15b8, 0x7fc1ce1b2eaa}) = 0
getuid()                                         = 0
geteuid()                                        = 0
getgid()                                         = 0
getegid()                                        = 0
prctl(3, 0, 0, 0)                                = 1
secure_getenv(0x557c2a49c238, 0, 0, 0x7fc1ce2220fa) = 0x7ffda1328e66
calloc(1, 4152)                                  = 0x557c64153b60
__vasprintf_chk("/run/credentials/serial-getty@tt"..., 1, "%s", 0x7ffda1325e30) = 43
open("/run/credentials/serial-getty@tt"..., 0x80000, 05) = 3
fcntl(3, 1030, 3, 0x7fc1ce213c7c)                = 4
fdopendir(4)                                     = {4}
rewinddir({4})                                   = <void>
readdir({4})                                     = {1, "."}
readdir({4})                                     = {1, ".."}
readdir({4})                                     = nil
closedir({4})                                    = 0
getopt_long(9, 0x7ffda1328a38, "8a:cC:d:Ef:hH:iI:Jl:L::mnNo:pP:r"..., 0x7ffda1326440, nil) = 111
getopt_long(9, 0x7ffda1328a38, "8a:cC:d:Ef:hH:iI:Jl:L::mnNo:pP:r"..., 0x7ffda1326440, nil) = 99
getopt_long(9, 0x7ffda1328a38, "8a:cC:d:Ef:hH:iI:Jl:L::mnNo:pP:r"..., 0x7ffda1326440, nil) = 74
getopt_long(9, 0x7ffda1328a38, "8a:cC:d:Ef:hH:iI:Jl:L::mnNo:pP:r"..., 0x7ffda1326440, nil) = 115
getopt_long(9, 0x7ffda1328a38, "8a:cC:d:Ef:hH:iI:Jl:L::mnNo:pP:r"..., 0x7ffda1326440, nil) = -1
strlen("115200,57600,38400,9600")                = 23
strspn("115200,57600,38400,9600", "0123456789,") = 23
strdup("115200,57600,38400,9600")                = 0x557c64154be0
strtok("115200,57600,38400,9600", ",")           = "115200"
__errno_location()                               = 2
__isoc23_strtol(0x557c64154be0, 0x7ffda1325ec0, 10, 24) = 0x1c200
strtok(nil, ",")                                 = "57600"
__errno_location()                               = 0
__isoc23_strtol(0x557c64154be7, 0x7ffda1325ec0, 10, 0x1c200) = 0xe100
strtok(nil, ",")                                 = "38400"
__errno_location()                               = 0
__isoc23_strtol(0x557c64154bed, 0x7ffda1325ec0, 10, 0xe100) = 0x9600
strtok(nil, ",")                                 = "9600"
__errno_location()                               = 0
__isoc23_strtol(0x557c64154bf3, 0x7ffda1325ec0, 10, 0x9600) = 9600
strtok(nil, ",")                                 = nil
free(0x557c64154be0)                             = <void>
strcmp("-", "-")                                 = 0
isatty(0)                                        = 0
isatty(1)                                        = 0
isatty(2)                                        = 0
dcgettext(nil, "could not get terminal name: %d", 5) = "could not get terminal name: %d"
openlog("agetty", 1, 80)                         = <void>
__vsyslog_chk(4, 1, 0x557c2a49d4d8, 0x7ffda1325e40) = 0
closelog()                                       = <void>
strncmp(nil, "tty", 3 <no return ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


[-- Attachment #3: strace_debug_log.txt --]
[-- Type: text/plain, Size: 12571 bytes --]

execve("/sbin/agetty2", ["/sbin/agetty2", "-o", "-- \\u", "--noreset", "--noclear", "--keep-baud", "115200,57600,38400,9600", "-", "vt220"], 0x7fff7671f090 /* 11 vars */) = 0
brk(NULL)                               = 0x55ec2c59d000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a6d62a000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=12526, ...}) = 0
mmap(NULL, 12526, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d626000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1127688, ...}) = 0
mmap(NULL, 1132784, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a6d511000
mmap(0x7f3a6d52d000, 716800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f3a6d52d000
mmap(0x7f3a6d5dc000, 241664, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xcb000) = 0x7f3a6d5dc000
mmap(0x7f3a6d617000, 57344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x105000) = 0x7f3a6d617000
mmap(0x7f3a6d625000, 2288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3a6d625000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\237\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 840, 64) = 840
fstat(3, {st_mode=S_IFREG|0755, st_size=2003408, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 840, 64) = 840
mmap(NULL, 2055640, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a6d31b000
mmap(0x7f3a6d343000, 1462272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7f3a6d343000
mmap(0x7f3a6d4a8000, 352256, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18d000) = 0x7f3a6d4a8000
mmap(0x7f3a6d4fe000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e2000) = 0x7f3a6d4fe000
mmap(0x7f3a6d504000, 52696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3a6d504000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220y\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=47128, ...}) = 0
mmap(NULL, 45128, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a6d30f000
mmap(0x7f3a6d312000, 20480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f3a6d312000
mmap(0x7f3a6d317000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f3a6d317000
mmap(0x7f3a6d319000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f3a6d319000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=940248, ...}) = 0
mmap(NULL, 938008, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a6d229000
mmap(0x7f3a6d239000, 499712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f3a6d239000
mmap(0x7f3a6d2b3000, 368640, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8a000) = 0x7f3a6d2b3000
mmap(0x7f3a6d30d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe4000) = 0x7f3a6d30d000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a6d227000
arch_prctl(ARCH_SET_FS, 0x7f3a6d2284c0) = 0
set_tid_address(0x7f3a6d228790)         = 897
set_robust_list(0x7f3a6d2287a0, 24)     = 0
rseq(0x7f3a6d228de0, 0x20, 0, 0x53053053) = 0
mprotect(0x7f3a6d4fe000, 16384, PROT_READ) = 0
mprotect(0x7f3a6d30d000, 4096, PROT_READ) = 0
mprotect(0x7f3a6d319000, 4096, PROT_READ) = 0
mprotect(0x7f3a6d617000, 53248, PROT_READ) = 0
mprotect(0x55ec26056000, 4096, PROT_READ) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a6d225000
mprotect(0x7f3a6d665000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f3a6d626000, 12526)           = 0
prctl(PR_CAPBSET_READ, CAP_MAC_OVERRIDE) = 1
prctl(PR_CAPBSET_READ, 0x30 /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, CAP_CHECKPOINT_RESTORE) = 1
prctl(PR_CAPBSET_READ, 0x2c /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, 0x2a /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, 0x29 /* CAP_??? */) = -1 EINVAL (Invalid argument)
getrandom("\xcc\xa7\xe3\x18\x34\xe6\x9d\xb7", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55ec2c59d000
brk(0x55ec2c5be000)                     = 0x55ec2c5be000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2996
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=258, ...}) = 0
mmap(NULL, 258, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d629000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=27028, ...}) = 0
mmap(NULL, 27028, PROT_READ, MAP_SHARED, 3, 0) = 0x7f3a6d21e000
close(3)                                = 0
futex(0x7f3a6d50372c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d628000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=47, ...}) = 0
mmap(NULL, 47, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d627000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
mmap(NULL, 127, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d626000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap(NULL, 62, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d21d000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d21c000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0
mmap(NULL, 48, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d21b000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=270, ...}) = 0
mmap(NULL, 270, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d21a000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1406, ...}) = 0
mmap(NULL, 1406, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d219000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3360, ...}) = 0
mmap(NULL, 3360, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d218000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0
mmap(NULL, 50, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d217000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=360460, ...}) = 0
mmap(NULL, 360460, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6d1be000
close(3)                                = 0
rt_sigaction(SIGHUP, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f3a6d35ada0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f3a6d35ada0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f3a6d35ada0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
getuid()                                = 0
geteuid()                               = 0
getgid()                                = 0
getegid()                               = 0
prctl(PR_GET_DUMPABLE)                  = 1 (SUID_DUMP_USER)
openat(AT_FDCWD, "/run/credentials/serial-getty@ttyS0.service", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_DUPFD_CLOEXEC, 3)            = 4
fstat(4, {st_mode=S_IFDIR|0500, st_size=40, ...}) = 0
fcntl(4, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
lseek(4, 0, SEEK_SET)                   = 0
getdents64(4, 0x55ec2c5a1c10 /* 2 entries */, 32768) = 48
getdents64(4, 0x55ec2c5a1c10 /* 0 entries */, 32768) = 0
close(4)                                = 0
ioctl(0, TCGETS, 0x7fff9faad2e0)        = -1 EIO (Input/output error)
ioctl(1, TCGETS, 0x7fff9faad2e0)        = -1 EIO (Input/output error)
ioctl(2, TCGETS, 0x7fff9faad2e0)        = -1 EIO (Input/output error)
getpid()                                = 897
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=114, ...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=114, ...}) = 0
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 114
lseek(4, -60, SEEK_CUR)                 = 54
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 60
close(4)                                = 0
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 4
connect(4, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
sendto(4, "<84>Feb 23 13:28:56 agetty[897]:"..., 65, MSG_NOSIGNAL, NULL, 0) = 65
close(4)                                = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV +++


  reply	other threads:[~2025-02-23 13:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5534c6e1-b819-4aaa-a8c1-fa22852e327b@vodafone.de>
2025-02-23 13:06 ` Bug#1098694: Crash in agetty due to invalid strncmp call in Trixie Chris Hofstaedtler
2025-02-23 13:40   ` Florian Bach [this message]
2025-02-23 19:02     ` Chris Hofstaedtler
2025-02-23 20:13       ` Chris Hofstaedtler
2025-02-24 18:59         ` Karel Zak
2025-02-25  7:55           ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bee22700-d1e4-42a2-9fe6-9ba9d2e64538@vodafone.de \
    --to=leseratte10@vodafone.de \
    --cc=1098694@bugs.debian.org \
    --cc=util-linux@vger.kernel.org \
    --cc=zeha@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox