Files
PX4-Autopilot/test
Benjamin Cabé b680955efd fix(mavsdk_tests): capture loiter monitor state by value (#29246)
The loiter tester's telemetry callbacks captured the caller's arguments
and locals by reference. With the pinned MAVSDK 3.17.2, a callback
already queued still runs after unsubscribe returns, so it can read the
stack of a function that has returned: the occasional "120 <= 0.0" and
"440 <= 150.0" failures of the VTOL loiter tests, always a single failed
assertion, are such late callbacks.

Capture the arguments by value, and share the promise and its flag with
the callback.

Assisted-by: Claude:claude-opus-5-5
2026-10-19 11:20:18 +13:00
..