Valgrind 3.9.0 发布了,值得关注的改进有:
- Support for MIPS64 LE and BE running Linux. Valgrind has been tested on MIPS64 Debian Squeeze and Debian Wheezy distributions.
- Support for MIPS DSP ASE on MIPS32 platforms.
- Support for s390x Decimal Floating Point instructions on hosts that have the DFP facility installed.
- Support for POWER8 (Power ISA 2.07) instructions
- Support for Intel AVX2 instructions. This is available only on 64 bit code.
- Initial support for Intel Transactional Synchronization Extensions, both RTM and HLE.
- Initial support for Hardware Transactional Memory on POWER.
- Improved support for MacOSX 10.8 (64-bit only). Memcheck can now run large GUI apps tolerably well.
Valgrind是一个运行时诊断工具,它可以监视 一个指定程序的活动并通知你在你的代码中可能存在的各种各样的内存管理问题。它类似于老式的Electric Fence工具(该工具将标准的内存分配函数替换为自己的函数以提高诊断能力),但被认为更容易使用并且在多个方面都提供了更丰富的功能——而且现在大多 数主流Linux发行版都提供了该工具,所以在你的系统中使用它不需要花费太多时间,你只需安装它的软件包即可。
一个典型的Valgrind运行可能如下所示:


输出显示有80个字节的内存在程序结束时丢失了。通过指定leak-check选项,我们可以找到这个泄漏的内存来自哪里:

Valgrind 的下载地址:请点这里
相关阅读:
Linux下Valgrind的使用概述 http://www.linuxidc.com/Linux/2012-08/67990.htm
Linux下利用Valgrind工具进行内存泄露检测和性能分析 http://www.linuxidc.com/Linux/2012-06/63754.htm
Ubuntu 内存泄漏检测工具Valgrind的安装 http://www.linuxidc.com/Linux/2011-12/49988.htm
Valgrind--Linux下的内存调试和代码解剖工具 http://www.linuxidc.com/Linux/2011-06/36907.htm
在Linux下使用用Valgrind查找内存泄漏和无效内存访问 http://www.linuxidc.com/Linux/2009-02/18646.htm
