mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-10-06 09:02:52 +08:00
The ground truth comparison callbacks capture `this` and touch members of AutopilotTesterFlow. If a REQUIRE fails between start and stop, the tester is destroyed during unwinding while the subscriptions are still active, so a callback could run on the destroyed mutex and sample buffers. Make stop idempotent and call it from the destructor, and stop any running comparison before starting a new one. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: RomanBapst <bapstroman@gmail.com>