Closed arneboe closed 5 years ago
@saarnold
I tried to debug this: So far after setting the debug mode in compilation, the destructor fails with a different error:
At https://github.com/ros/class_loader/blob/0.3.7/src/class_loader_core.cpp#L497
It triggers:
install/include/boost/thread/pthread/recursive_mutex.hpp:113: void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed.
I think that when running in release mode the name of the loaded library in the class loader gets corrupted. That's why it can not find it, but couldn't find out when that happens.
Assertions are disabled in release mode. The assert you found might be a completely different bug. Maybe it is best to open a new bug report for the assert?
Created the separated issue
After fixing #39 I can no longer reproduce this bug.
The destructor of
ClassLoader
crashes throwingclass_loader::LibraryUnloadException
.console output:
Minimal example to reproduce.