guardmalloc什么是那些警告,我如何摆脱他们? [英] guardmalloc what are those warnings and how do I get rid of them?

查看:328
本文介绍了guardmalloc什么是那些警告,我如何摆脱他们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GuardMalloc:分配将放置在16字节边界。
GuardMalloc: - 某些缓冲区溢出可能不会被注意到。
GuardMalloc: - 使用向量指令的应用程序(例如,SSE或Altivec)应该工作。
GuardMalloc:GuardMalloc version 18
(gdb)



所有突然的那些guardmalloc消息出现在控制台窗口中。原因是什么,如何摆脱它?

解决方案

我想你有意启用GuardMalloc来查找内存错误?如果是这样,这些只是因为正在使用GuardMalloc(如 http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man3/guardmalloc.3.html )。



behaves weird是什么意思?出现什么症状?


GuardMalloc: Allocations will be placed on 16 byte boundaries. GuardMalloc: - Some buffer overruns may not be noticed. GuardMalloc: - Applications using vector instructions (e.g., SSE or Altivec) should work. GuardMalloc: GuardMalloc version 18 (gdb)

all of the sudden those guardmalloc messages appears in the console window. What's the cause and how do I get rid of it? Mostly because the application behaves weird after those appear.

解决方案

I guess you have intentionally enabled GuardMalloc to find memory errors? If so, these appear simply because GuardMalloc is being used (as shown by http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man3/guardmalloc.3.html ).

What do you mean by "behaves weird"? What symptoms appear?

这篇关于guardmalloc什么是那些警告,我如何摆脱他们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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