当前位置: 技术问答>linux和unix
请教一个linux c++调试问题(关于内存泄露)
来源: 互联网 发布时间:2015-06-20
本文导语: 大家有没有使用过memwatch,我在使用中发现一个问题,它只能跟踪到malloc操作产生的内存泄露,但new操作却跟踪不到。 请各位大虾讨论一下。 | 楼主这想法不错, 我等着分升级,,,,呵呵...
大家有没有使用过memwatch,我在使用中发现一个问题,它只能跟踪到malloc操作产生的内存泄露,但new操作却跟踪不到。
请各位大虾讨论一下。
请各位大虾讨论一下。
|
楼主这想法不错, 我等着分升级,,,,呵呵
LINUX下面没有用过,不过在UNIX下试过几个东东, 很一般, 作用不是很大。 个人意见
LINUX下面没有用过,不过在UNIX下试过几个东东, 很一般, 作用不是很大。 个人意见
|
有个 FORTIFY ,可以监测new/malloc的. 自己google一下,我只有文件,忘记网址了.
Fortify is a fortified memory allocation shell for C
and C++. It is capable of detecting memory leaks, writes beyond and before
memory blocks, and breaks software that relies on the state of uninitialized
memory, and software that uses memory after it's been freed.
Fortify is a fortified memory allocation shell for C
and C++. It is capable of detecting memory leaks, writes beyond and before
memory blocks, and breaks software that relies on the state of uninitialized
memory, and software that uses memory after it's been freed.
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。