用于C ++的堆损坏检测工具 [英] Heap corruption detection tool for C++

查看:152
本文介绍了用于C ++的堆损坏检测工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有任何工具来帮助我检测C ++中的堆腐败?我不能提供源代码,因为它是一个大项目。我可以使用任何工具与Visual Studio或与xcode工作。该工具应该与多线程工作正常。问题不是很常见,它出现很长时间后,只有在非常特殊的情况下(他们没有被精确检测!)。



谢谢!

编辑:



感谢大家的答案!我将测试这些工具,我将在测试后接受一个答案。

解决方案

Valgrind 是用于对本机代码执行内存工具的 defacto工具。但是,它不在Windows上运行(OS X是罚款)。



有几种商业工具可以在Windows上运行,虽然它们具有GUI,但在我看来,它们比Valgrind更差。


Is there any tool to help me detect heap corruption in C++? I can't provide source code because it's a big project. I can use any tool that works with Visual Studio or with xcode. The tool should work fine with multithreading. The problem is not very common, it appears after a long time and only in very special cases(they were not detected precisely!).

Thank you!

EDIT:

Thanks you all for your answers! I will test the tools and I will accept one answer after the tests.

解决方案

Valgrind is the defacto tool for doing memory instrumentation for native code. It, however, does not run on Windows (OS X is fine).

There are a few commercial tools which do run on Windows, and while they feature a GUI, are in my opinion inferior to Valgrind.

这篇关于用于C ++的堆损坏检测工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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