I want to use Valgrind to debug a memory issue in my C++ program (running on Linux-x64). My program outputs a .so library which is used by a much larger program. The invocation is not from command line, so I cannot use the following command to run the library with Valgrind –
valgrind --leak-check=yes myprog arg1 arg2
How can I use Valgrind to debug memory issues in my library?
There seem to be two program involved:
You should probably look at creating reasonably test cases running your code independent from the “much larger program” and analyze those.