malloc: *** error for object 0x10a291df8: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
2024-10-08 00:02:16
malloc_error_break错误:
、You'll find out what the object is when you break in the debugger. Just look up the call stack and you will find where you free it. That will tell you which object it is.
. The easiest way to set the breakpoint is to: Goto Run -> Show -> Breakpoints (Alt-Command-B)
Scroll to the bottom of the list and add the symbol malloc_error_break 、Open up the debugger console by pressing Cmd+Shift+R. There, type
break malloc_error_break
to set a breakpoint at the beginning of the malloc_error_break function.
If you want to find out what object is located at address 0x1068310, you can type the following into the debugger console:
print-object 0x1068310
Of course, you have to do this while the object is still alive -- if the object has already been freed by the time you do this, then this will not work.
https://stackoverflow.com/questions/971249/how-to-find-the-cause-of-a-malloc-double-free-error
最新文章
- 百度地图隐藏BMKAnnotationView
- chrome浏览器调试typescript
- 第65课 C++中的异常处理(下)
- SQL索引及视图常用语法
- Python之Redis操作
- Codeforces Round #179 (Div. 1) A. Greg and Array 离线区间修改
- poj 3352 边连通分量
- MAC下编译FFMPEG
- 禁止UINavigationController 左滑 返回的效果
- Linux学习笔记5——虚拟内存
- ECMAscript v.s. Javascript
- Wince 创新布局
- 面向对象15.3String类-常见功能-判断
- Web网站配置Gzip,压缩js css文件
- zookeeper安装教程
- Android测试(四)——内容供应器泄露
- JS的一些小知识
- 8.1Python面向对象编程(一)
- Cmder安装配置
- python-类的方法与类的成员