Daily iOS
Performance and debugging

Memory bug diagnosis tools

Besides retain cycle leaks, what other kinds of memory bugs do you run into on iOS? And if one took you a long time to track down, which kind was it?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

The main kinds are leaks and retain cycles, access to deallocated objects (dangling), abandoned memory that keeps growing without being a leak, and memory corruption from thread races. Each has a different cause and a different tool.

Share a question