Open martiniil opened 5 years ago
I created a minimal demo: https://github.com/agutenkunst/leak_demo_pkg
I second I've experienced this too. I get a flood of these when using moveit building with address sanitizer. I tried looking through the code to see if I can understand what I should be doing to fix this but I can't figure it out.
According to these comments the whole problem boils down to the basic decision whether the library should
dlclose()
d.The library went with the former option and we are stuck with unfreeable memory as a result.
Using the ClassLoader (version
0.4.1
) via pluginlib as recommended, we could detect some memory leaks. My guess is that metaobjects are not destroyed after they have been inserted into the "graveyard". Or did I miss something here?Could be related: https://github.com/ros/pluginlib/issues/126
See the log below. It would be nice to get another opinion.
Excerpt of log.txt: