问题描述
valgrind-3.6.0.SVN-Debian
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
2.6.35-22-generic
我使用的valgrind检测我们的code内存错误。
I am using valgrind to detect memory errors in our code.
然而,应用程序使用一些第三方库(共享库)。当我们开始使用的valgrind捕捉。它进入这个库,以及与此图书馆陈列着许多内存错误。因此,它是很难检查我们的应用程序缘于此。有许多人经历。
However, are application uses some third party libraries (shared library). When we start to capture using valgrind. It goes into this library, and displays many memory errors with this library. So it is difficult to check our application due to this. There is many to go through.
这是可以配置的valgrind只检查我们的源代码code和没有进入共享库?
It is possible to configure valgrind to only check our source code and not go into the shared libraries?
是否有任何其他开源内存检测软件,可以做到这一点,如果Valgrind的不能?
Is there any other open source memory checking software that can do this if valgrind cannot?
非常感谢您的任何建议,
Many thanks for any suggestions,
推荐答案
您可以尝试燮pressing由库code产生的错误:
You can try suppressing the errors generated by the library code:
这篇关于prevent Valgrind的检查存储器,与我们的应用程序链接的共享库泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!