Originally posted by: SystemAdmin
Daniel,
Thank you for the tip. I ran valgrind with --leak-check=full. I have a feeling it is in the callback itself judging from the output below (I only including a snippet of it, since this seems to contribute to the largest chunk of the memory leak):
==14161== 190,410,936 (99,013,824 direct, 91,397,112 indirect) bytes in 952,056 blocks are definitely lost in loss record 39 of 39
==14161== at 0x4C279EE: malloc (vg_replace_malloc.c:270)
==14161== by 0x493798: IloCplexCallbackManager::ParallelEnv::alloc(unsigned long) (in /home/romich/OPoSM/MF_20130311)
==14161== by 0xF181D1: operator+(IloNumExprArg, double) (in /home/romich/OPoSM/MF_20130311)
==14161== by 0xF18493: operator-(IloNumExprArg, double) (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x441CE2: checkSPI::main() (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x47F003: IloCplexCallbackManager::call(IloCplex::CallbackI*) (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x480CF1: lazyconstraintcallback (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x79E579: _34d6108b800abb67414efa6c4c6f7112 (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x846D0F: _5802e8c70437348dc0dbfb43e4ff1349 (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x7A9258: _33647440a26d640acca1886f9152d44a (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x7B1296: _caf3e34e565d7f85f474237f790aa558 (in /home/romich/OPoSM/MF_20130311)
==14161== by 0x7A64BC: _abe84a0e53b2d89edf8a270c824b7bd8 (in /home/romich/OPoSM/MF_20130311)
If you could, by any chance, help me a little with the interpretation of the above output, it would be greatly appreciated. Is ":270" in the third line of the output referring to line 270 of my actual code file?
Thank you for your time,
Andrew
#CPLEXOptimizers#DecisionOptimization