4

I am getting the below error :

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

I already set the Symbolic Breakpoint , But Nothing happen in console, Not getting any hint in console.

I am using xcode 4.6

Any Help Appreciated.

fmendez
  • 7,250
  • 5
  • 36
  • 35
Kunal
  • 83
  • 1
  • 2
  • 11

1 Answers1

8

You might be releasing the object too many times.

Open up the debugger console by pressing Cmd+Shift+R. and then type in the following

break malloc_error_break

This will set a breakpoint at the beginning malloc_error_break, you can also try printing out what's the object at 0xa68aca0

print-object 0x1068310

Other way to do it is using NSZombieEnabled

Also worth reading this

Community
  • 1
  • 1
cyberbemon
  • 3,000
  • 11
  • 37
  • 62
  • 1
    Yes, I found in NSZonmie tool that i m retaining the object too many time, but I am using ARC enable mode so how can i release that particular object.Help me i am new to iOS developing. – Kunal Mar 07 '13 at 07:53