summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 02:34:16 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 02:34:16 -0400
commita1af81049be12531bf08412edccd83e921414743 (patch)
treef96894d592c2ecdf1ebefd8ad206a3e43ece9282
parent13a9be508267fc735b29b5fed3b4e2f3efd4bce5 (diff)
downloadopen-iov-a1af81049be12531bf08412edccd83e921414743.tar.gz
open-iov-a1af81049be12531bf08412edccd83e921414743.zip
guest-diag: run_cycle - verify live gdb before declaring arm failure
-rwxr-xr-xtools/guest-diag/run_cycle.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/guest-diag/run_cycle.sh b/tools/guest-diag/run_cycle.sh
index 6786aa1..71db054 100755
--- a/tools/guest-diag/run_cycle.sh
+++ b/tools/guest-diag/run_cycle.sh
@@ -78,6 +78,13 @@ elif [ "$TRACE" = "gdb" ]; then
ARMED=1
break
fi
+ # The launch exec can time out even though nohup gdb started; verify
+ # from the guest side before declaring the arm failed.
+ if timeout 20 "$VMEXEC" exec "pgrep -f 'gdb -p' >/dev/null && echo GDBOK" 2>/dev/null | grep -q GDBOK; then
+ echo " arm attempt $a: exec timed out but gdb is running; continuing"
+ ARMED=1
+ break
+ fi
echo " arm attempt $a failed; retrying"
sleep 8
done