Getting error: release of the pointer was not highlighted *** set breakpoint in malloc_error_break for debugging

I get the following error:

malloc: *** error for object 0xa68aca0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

I already installed Symbolic Breakpoint, but nothing happens in the console without getting prompts in the console.

I use xcode 4.6

Any help appreciated.

+3
source share
1 answer

Perhaps you release the object too many times.

Open the debugger console by pressing Cmd + Shift + R. and then enter the following

break malloc_error_break

This will set a breakpoint at the beginning malloc_error_break, you can also try to print what the object is at 0xa68aca0

print-object 0x1068310

Another way to do this is to use NSZombieEnabled

Also worth reading this

+6

Source: https://habr.com/ru/post/1669821/


All Articles