开发者

Memory debugger for c++ on mac?

开发者 https://www.devze.com 2023-02-28 04:37 出处:网络
I\'m developing a mac application in C++, and I\'m having the following problem: words(26222,0xa0b5c540) malloc: *** error for object 0x88dda04:

I'm developing a mac application in C++, and I'm having the following problem:

words(26222,0xa0b5c540) malloc: *** error for object 0x88dda04: 
incorrect checksum for freed object - object was probably modified after开发者_如何学JAVA 
being freed.
*** set a breakpoint in malloc_error_break to debug

Anyway, I set a breakpoint in malloc_error_break but it doesn't tell me where I am modifying the memory.

Is there any memory debugger that gives me meaningful information about where am I messing up the memory?


Valgrind is the standard open-source memory debugging tool. :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消