Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2017-07-06 00:56
Priority:
3
State:
Open
Submitted by:
Mazen Al Borno (maz)
Assigned to:
Nobody (None)
Summary:
Memory Leak when initializing a model?

Detailed description
I think there might be a memory leak when initializing a model with OpenSim (maybe in createAssemblySolver()). In valgrind, I get the error message that some bytes are definitely lost with the following stack trace:

==40490== at 0x1000F3681: malloc (in /usr/local/Cellar/valgrind/3.13.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==40490== by 0x105A177DD: operator new(unsigned long) (in /usr/lib/libc++.1.dylib)
==40490== by 0x10039F6E9: OpenSim::Model::createAssemblySolver(SimTK::State const&) (Model.cpp:1586)
==40490== by 0x10039F60A: OpenSim::Model::initializeState() (Model.cpp:476)
==40490== by 0x10004B9F1: OpenSim::Model::initSystem() (Model.h:248)

Add A Comment: Notepad

No Comments Have Been Posted

No Changes Have Been Made to This Item

Feedback