Hi,
I recently experienced an issue related to the static sc_vpool objects used in some classes in the SystemC kernel.
Here is an example:
#include <systemc.h>
class Dummy {
public:
Dummy(int a) {
sc_int<32> my_int(a);
my_int(2,1);
}
};
Dummy dummy(12);
int sc_main(int argc , char *argv[]) {
return 0;
}
This program crashes at startup with the following stack trace:
#0 0x0000000000404e66 in sc_dt::sc_int_subref_r::initialize (this=0x0, obj_p=0x7fffffffdde0, left_i=2, right_i=1)
at /remote/vgrnd104/julient/OSCI/linux/systemc-2.3.3/include/sysc