Skip to content

Commit 9f2b750

Browse files
committed
hack/test-templates.sh: workaround for agetty segfault
agetty segfaults on Ubuntu 25.04 (x86_64): (gdb) bt #0 __strncmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316 #1 0x000061700a0d3ee3 in parse_args (argc=9, argv=0x7ffc93bd6298, op=0x7ffc93bd4080) at term-utils/agetty.c:939 #2 main (argc=9, argv=0x7ffc93bd6298) at term-utils/agetty.c:403 Should be fixed in Ubuntu 25.10 with util-linux >= 2.41 Signed-off-by: Akihiro Suda <[email protected]>
1 parent d4adb1f commit 9f2b750

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/test-templates.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ limactl shell "$NAME" bash -c "echo 'foo \"bar\"'"
252252

253253
if [[ -n ${CHECKS["systemd"]} ]]; then
254254
set -x
255+
# agetty segfaults on Ubuntu 25.04 (x86_64)
256+
# > __strncmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316
257+
# Should be fixed in Ubuntu 25.10 with util-linux >= 2.41
258+
# https://github.com/lima-vm/lima/pull/3643#issuecomment-3006788732
259+
if limactl shell "$NAME" systemctl -q is-failed [email protected]; then
260+
limactl shell "$NAME" sudo systemctl reset-failed [email protected]
261+
fi
255262
if ! limactl shell "$NAME" systemctl is-system-running --wait; then
256263
ERROR '"systemctl is-system-running" failed'
257264
diagnose "$NAME"

0 commit comments

Comments
 (0)