⬢ DragonFlyBSD Kernel Audit
DF-5730 / run3-control.sh
← back to finding ↓ download raw
#!/bin/sh
# Control boot: plain sysctl-entered DDB + immediate continue, no variable
# writes. Isolates the post-continue scheduling wedge from DF-5730's sets.
set -eu
cd "$(dirname "$0")"
./serial_vm.sh down || true
./serial_vm.sh up
(ssh -F ../../../dfbsd-qemu/config dfbsd \
   '(sleep 100; echo POSTCONT_MARKER_CTRL > /dev/console) >/dev/null 2>&1 & exit 0' >/dev/null 2>&1 &)
sleep 2
(ssh -F ../../../dfbsd-qemu/config dfbsd 'sysctl debug.enter_debugger=ddb' >/dev/null 2>&1 &)
sleep 6
python3 drive3.py 2>&1 | tee session3-control.log
echo "=== waiting 110s for POSTCONT marker (CTRL) ==="
sleep 110
grep -a "POSTCONT\|Fatal trap\|panic:" /tmp/opencode/df-5730-serial.log > marker3.log; cat marker3.log
[ -s marker3.log ] || echo "CTRL: NO MARKER, NO TRAPS"
echo "=== ssh attempt ==="
ssh -F ../../../dfbsd-qemu/config -o ConnectTimeout=15 -o BatchMode=yes dfbsd \
   'echo SSH_ALIVE; uptime' 2>&1 || true