Hi Wim,
I have a
module XYZ inside sniper written in C++ and I have placed it in
SNIPER_ROOT/common/XYZIt has some files XYZ.h and XYZ.cpp which sniper automatically compiles. I use this module in scheduler_pinned.cc
But it gives me this error :
*** Error in `/home/n1603031f/sniper/sniper-6.1/lib/sniper': munmap_chunk(): invalid pointer: 0x00000000013ae4e0 ***
[SNIPER] End
[SNIPER] Elapsed time: 103.61 secondsThe simulation works fine. This error doesn't affect the output as I have a valid sim.out file. But this sure looks ugly while seeing the output.
I believe my code for the module is correct and doesn't have any memory leaks as I am not doing anything fancy there.
The module looks something like :
class Helper
{
// Some fields
// Some member functions
}
class Constants
{
static constexpr double C0 = 1.0;
// and many such variables
}
class XYZ
{
vector<Helper> someVector;
XYZ()
{
someVector.resize(Sim()->getConfig()->getApplicationCores());
}
}
Is there any way to solve this. I know this is very less information. But when I comment out the code which doesn't use this module, I don't get this error.
Any help or advice in this context will be helpful.
Regards,
Rohith R