On 25 December 2013 09:26, Eugenio Bargiacchi <svalorzen@gmail.com> wrote:
I'm building a framework which needs to allow communication between
shared libraries which are loaded at runtime.

The problem that I had, for example, resulted in a segfault if I tried
to unload the modules from memory before the destruction of the map
(which is owned by the framework), during boost::any destruction.

Unloading shared libraries in C++ is fraught with peril.

Could the problem be that you've unloaded the code for the destructor of the object stored in the boost::any object?
--
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com(847) 691-1404