是否有任何替代的valgrind在Mac OS X山狮和小牛以检测内存泄漏的C / C ++应用程序? [英] Are there any alternatives to valgrind on Mac OS X Mountain Lion and Mavericks to detect memory leaks for C/C++ applications?

查看:718
本文介绍了是否有任何替代的valgrind在Mac OS X山狮和小牛以检测内存泄漏的C / C ++应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 的valgrind 来检测内存泄漏我的C / C ++在Mac OS X 10.6(雪豹)和10.7(狮子)的应用程序,但我觉得它不支持最近发布像10.8(山狮)和10.9(小牛),当我升级我的操作系统。
有没有别的东西像的valgrind ,可以在Mac OS X 10.9?

I used to use valgrind to detect memory leaks for my C/C++ applications on Mac OS X 10.6 (Snow Leopard) and 10.7 (Lion), but I find it's not supported on recent releases like 10.8 (Mountain Lion) and 10.9 (Mavericks) when I upgraded my OS. Is there something else like valgrind that can be installed on Mac OS X 10.9?

推荐答案

在2013年11月1日,在 的valgrind 队宣布Valgrind的3.9.0:

On 2013-11-01, the valgrind team announced Valgrind 3.9.0:

我们很高兴地宣布Valgrind的新版本,3.9.0版本,
  可从 http://www.valgrind.org

We are pleased to announce a new release of Valgrind, version 3.9.0, available from http://www.valgrind.org.

3.9.0是一个功能版本有许多改进和平常
  收集的bug修复。此版本增加了对MIPS64 / Linux的支持,
  英特尔AVX2指令和POWER8指令。 DFP支持一直
  增加了对S390。硬件事务内存的初步支持
  增加了对Intel和POWER平台。用于Mac OS X 10.8的支持
  (山狮)进行了改进。 MEMCHECK对矢量精度
  code得到了提高。

3.9.0 is a feature release with many improvements and the usual collection of bug fixes. This release adds support for MIPS64/Linux, Intel AVX2 instructions and POWER8 instructions. DFP support has been added for S390. Initial support for hardware transactional memory has been added for Intel and POWER platforms. Support for Mac OS X 10.8 (Mountain Lion) has been improved. Accuracy of Memcheck on vectorized code has been improved.

这还有待观察改进的山狮是否支持意味着它适合小牛队确定。它提到,支持仅适用于64位code。

It remains to be seen whether the improved Mountain Lion support means it works OK for Mavericks. It does mention that the support is only for 64-bit code.

[...时间吹过......下载发生......希望复活...配置尝试...希望都破灭...]

Urgh!

...
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... ok (darwin13.0.0)
checking for the kernel version... unsupported (13.0.0)
configure: error: Valgrind works on Darwin 10.x and 11.x (Mac OS X 10.6/7)

山狮是基于达尔文的12.x;小牛是基于达尔文13.x.我不知道有关的错误消息消息,但开箱,Valgrind的3.9.0不会在OS X小牛编译。

Mountain Lion is based on Darwin 12.x; Mavericks is based on Darwin 13.x. I'm not sure about the messaging in the error messages, but out of the box, Valgrind 3.9.0 does not compile on OS X Mavericks.

这篇关于是否有任何替代的valgrind在Mac OS X山狮和小牛以检测内存泄漏的C / C ++应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆