I am trying to use an sc_vector of modules with a custom creator to pass constructor arguments. It seems to work and run through the entire program, but at exit causes a segfault. GDB shows that this is due to to sc_vector calling the destructor of the module.
I have no dynamically-allocated memory or pointers in the module. Here's the overview:
outside of sc_main (global -- but I also tried inside of sc_main):
--------------------------
struct create_mod
{
unsigned int m_arg1