Closed GoesM closed 4 months ago
Got it - so we just need to add the appropriate reset?
Sure, it's similar to #694, just issue about humble
while seems to be fixed in iron
and main
Got it, just backport and I'll merge! Continue conversation in #694!
Required Info:
Steps to reproduce issue
I use slam-toolbox (async) by following command :
Running Slam-Toolbox within AddressSanitizer , I always faced to such UAF report during shutdown-period
Expected behavior
No UAF occurs
Actual behavior
we could always face to an ASAN-report about UAF bug as following:
Additional information
This bug should be caused because: During the shutdown-period, the
excutor
(which the function`) is not stop before the destruction of the
slam-toolbox node`.the function is bind to the callback-excutor here:
https://github.com/SteveMacenski/slam_toolbox/blob/94cec982a7f850818187c81295d1212f145efe37/src/slam_toolbox_common.cpp#L233-L241
BUT no excutor about freed during
on_cleanup()
and the destructorhttps://github.com/SteveMacenski/slam_toolbox/blob/94cec982a7f850818187c81295d1212f145efe37/src/slam_toolbox_common.cpp#L86-L101
So that, the callback-function might be still working after the node is destructed and cause the UAF bug as a result.