You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There have been a few issues already referencing the known memory leak in this code with the metaobjects. #131 ros/pluginlib#126
In #186 to potentially resolve these memory leaks, @hidmic mentioned a goal to remove the raw pointer interface from the existing code. #186 (review). As humble will soon be released, I wanted to create this ticket to formally track this effort.
Was there a reason or limitation for not using smart pointers (e.g. a smart pointer for AbstractMetaObjectBase in the FactoryMap / graveyard MetaObjectVector)?
The text was updated successfully, but these errors were encountered:
It would be really nice if this was fixed and a CI job added to test class_loader (and pluginlib) with ASAN to defend it against this coming back. @v4hn commented here about it: #131 (comment)
Without a tool like ASAN and tests, any software like this that does manual memory management is doomed to have memory errors unless the authors of the software are prefect. Here is an example of a memory error in rclcpp I also discovered today by trying to use asan in my project's CI that depends on these various tools in the ros ecosystem: ros2/rclcpp#1948
To error is human, to write tests and use sanitizers is to have compassion for your users.
There have been a few issues already referencing the known memory leak in this code with the metaobjects.
#131
ros/pluginlib#126
In #186 to potentially resolve these memory leaks, @hidmic mentioned a goal to remove the raw pointer interface from the existing code. #186 (review). As humble will soon be released, I wanted to create this ticket to formally track this effort.
Was there a reason or limitation for not using smart pointers (e.g. a smart pointer for
AbstractMetaObjectBase
in theFactoryMap
/ graveyardMetaObjectVector
)?The text was updated successfully, but these errors were encountered: