MacOS – Debugging Freezes

hangmacbook promacos

Sometimes my macbook freezes while browsing the web etc, I get a beach ball cursor but it doesn't spin or respond (there is no movement on the screen, it's frozen), the keyboard is unresponsive, closing the lid does nothing. Once it did this while playing music, the music continued for 20-30 seconds before stopping.

The only reaction I can get out of the machine is pressing and holding the power button then restarting. I suspected the window manager had crashed or another subsystem, but how do I diagnose this issue?

Under windows there's a system log available under control panel that I can look through to find driver crashes to track down what the issue is.

Running OS X Mavericks 10.9.2 Macbook Pro Retina, 13-inch, Late 2013

Best Answer

First thing is, after a reboot, to look at /var/log/system.log.

Search from the end for BOOT_TIME. This is the first entry after your mac reboots. Now go up to read the lines above. This might give you a clue what happened right before the mac had frozen.

To take a look at more logfiles, go to /var/log and list them with

ls -ltr

This will sort them by time so that newest files are at the bottom. If you can't find something helpful inside system.log you might have a chance when looking at the logs that have been written around freeze time (or later).