Ios zombie detection

I (in my opinion) have a very complicated problem in my code. It accidentally crashes in different places in the code. The project is an ARC project.

So, my program crashes from the outside with these messages:

malloc: *** error for object 0xd2dd8b0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

I have already set a breakpoint for malloc_error_break, but I do not get any information from it. When the code crashes, Xcode shows me the place in the code where this happens. But, as I said, accidents are accidental and do not always happen. But it seems that crashes are focused on a specific line of code.

Now I wanted to debug it using the tools that come with xcode. After a little google search, I found the following stuff on stackoverflow: How to configure NSZombieEnabled in Xcode 4? and Xcode malloc error .

So, the first link describes how to start zombie detection from xcode itself by clicking the start button in xcode and selecting Profile. The problem is that I cannot find “Zombies” when choosing a template for a trace document in my version of xcode (4.2). But if I run Tools outside of xcode (for example, from finder), I can choose zombies.

Ok, here is what I did:

1) Start the tools with the finder and select "Zombie Nicknames".

2) Run the iphone application from xcode in the iphone simulator (normal run (not profile or debugging)).

3) In the Tools, "Select Target" → "Attach to Process" → "iPhone Simulator (57529)".

4) The tools begin to understand something (I can not understand what he is doing).

5) Start playing with the application until it works.

, : enter image description here

:

1) ?

2) , ?

+5
1

, -, . (), Zombies , :

enter image description here

+6

All Articles