mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
A publisher calls call() under the node lock until the subscription is unregistered. SubscriptionBlocking, SubscriptionCallbackWorkItem and the MCP CallbackHandler left that to ~SubscriptionCallback(), which runs after the subclass is gone, so a publication during destruction aborted with "pure virtual method called". SubscriptionBlocking could also signal its already destroyed condition variable. SITL mag calibration in SIH hit this on almost every side. The new functional test aborts on both subscription types within about a second without the fix. Assisted-by: Claude:claude-opus-5-5