mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
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