guardmalloc what are those warnings and how do I get rid of them?

雨燕双飞 提交于 2019-12-08 00:57:31

问题


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.


回答1:


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?




回答2:


You're using an application linked with libgmalloc. Those really aren't warnings; they're just telling you it's being used. This really isn't a programming question...



来源:https://stackoverflow.com/questions/1512691/guardmalloc-what-are-those-warnings-and-how-do-i-get-rid-of-them

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!