mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 22:50:49 +08:00
Modules that stop through ModuleBase::exit_and_cleanup() delete themselves inside Run(), and since9b62a1701dWorkQueue::Run() then clears _run_in_progress in the freed object. ASAN aborts SITL on `battery_simulator stop` and the stop of most other work queue modules. Track the in-flight item in the WorkQueue instead, which lives until its own Run() exits on the worker thread. Assisted-by: Claude:claude-opus-5-5 (cherry picked from commit8c5f4e0788)