Files
Strata/engine/include
Niko1221 dca06a36df fix(serve): the watchdog's limits are parsed without undefined behaviour and its message prints the real wait (#6861)
STRATA_WATCHDOG_S and STRATA_WATCHDOG_IO_S were read with std::atoi. The #6861 logs show
"no progress for -1195029860 s" and "no step finished for -1907795513 s ... waiting up to
2079576072 s": a negative or garbage limit makes the first silent second count as stuck and
shortens the file-tier allowance (the engine was stopped after about 10-19 s instead of 60).

watchdog_seconds() (strata/core/watchdog_limits.hpp) parses with strtol: an unparsable or
out-of-range value (negative, past a week, past long) falls back to the default and the
engine says so. The "no progress" line prints the seconds actually waited.
watchdog_limits_test covers the values atoi turned into garbage.

This does not cure a real stall: the reporter's later runs with a limit of 60 also stop at
layer step 1 of the last prompt chunk. That hang was not reproduced on an RTX 5070 (sm_120,
WDDM) with his flags, a control vector, --slots 2 and --adapt-async 1.
2026-11-23 20:09:27 +01:00
..