问题
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