Best Reviews logo
Best Reviews may receive compensation for its content through paid collaborations. See how we sustain our work & review products.
How to Analyze Mac Crash Reports

How to Analyze Mac Crash Reports

By István F.István F. Verified by Adam B.Adam B. Last updated: September 6, 2024 (0)

While macOS is a stable operating system and most of the software is written well, app crashes can still happen. When an app quits unexpectedly (Apple’s way of saying that the app crashed), it generates a log file that – if read by an expert – can reveal a lot of useful information about what caused the crash. That’s why Apple and app developers ask you to send crash logs; they are very helpful in the troubleshooting process. You don’t need to be an expert to look into the information these logs store, however, and even non-programmers can put some of that information to good use.

Best Mac optimization software of 2024

Editor's choice
CleanMyMac X logo
Editor's rating:
(4.5)
User-friendly dashboard
Effective scanning and cleaning options
Various maintenance tools
Built-in malware remover
All-around protection
MacKeeper logo
Editor's rating:
(4)
Personalized remote assistance
Unique optimization tools
Anti-theft tracking
Built-in antivirus
Beginners
MacBooster logo
Editor's rating:
(3.5)
Fast scanning
User-friendly UI
Virus and malware scan
Great cleaning features
Businesses
CCleaner for Mac logo
Editor's rating:
(4)
Fast scans and cleaning
Full customization
Extensive free version
Affordable
40% Discount on CleanMyMac X
CleanMyMac X logo
Switch your current Mac optimizer or antivirus for CleanMyMac X, and the company will offer you a tasty 40% discount.
Save 40% on CleanMyMac X

Accessing crash logs

The Mac stores various log files that contain all sorts of information sent by various system processes and apps. If you are just an average Mac user and not a developer, most of the information stored in these files – crash logs included – will look like gibberish. The reason is simple: these files are meant for developers and those that understand this sort of info to help them diagnose a problem. Many Mac users won’t even look at them, but, as you will see, they can be helpful for understanding and diagnosing problems.

You can access the crash log in macOS in two ways:

How to access crash logs on a Mac

1

Launch Finder, press Command + Shift + G, and type ~/Library/Logs/DiagnosticReports/ in the Go to Folder dialog box.

2

Launch Console, and look for Diagnostic Reports located under ~/Library/Logs/.

Note: in Finder, double-click on the log file to open it in Console.

Deciphering crash logs

Now comes the hard part. At this point you will see a document with a lot of what looks like complete nonsense, but it is possible to pull salient information out from the report. Since the report has a number of different parts, it’s important to know which part contains the information that you can use to identify the problem.

The first part of the log contains information about the process that crashed. Sometimes the actual process that crashed isn’t the one you thought – think of the helper tools the apps contain – so the crash log helps you identify exactly which process it was that died.

After getting through the basic information such date and time or macOS version the next section you’ll want to get into is the type of crash or, in Apple’s terminology, “the exception”.

Apple defines four common forms of exception:

  • EXC_BAD_ACCESS/KERN_INVALID_ADDRESS ?
    This type is triggered by the thread accessing unmapped memory. It may be due to a data access or an instruction fetch.
  • EXC_BAD_ACCESS/KERN_PROTECTION_FAILURE ?
    This is caused by the thread trying to write to read-only memory. This is always caused by a data access.
  • EXC_BAD_INSTRUCTION ?
    This is caused by the thread executing an illegal instruction.
  • EXC_ARITHMETIC/EXC_I386_DIV ?
    This is caused by the thread doing an integer divide by zero on an Intel-based computer.

The most interesting part of the crash report is the backtrace information the crash log displays: it contains a backtrace for all the threads in the crashed process. This section describes, in reverse chronological order, the events that your Mac registered before the process died in each thread. A multi-threaded process includes multiple threads, a single thread, just one.

CrashReport makes things easier by tagging the faulty process in the backtrace with the text “Thread Crashed:”. Each line of the backtrace includes important information: the first column is the frame number, starting at item 0, which indicates the function that died; item 1, the function that completed immediately before the one that crashed; item 2 the function occurring before item 1, and so on.

Crash Logs Backtrace Threads Information

The second column is the name of the process or other system components performing the task. In our example, this was “libsystem_kernel.dylib”, as you can see in the image above. The third column contains the counter program address, while the fourth displays the symbolic name for the program counter address given in the third column.

Fortunately, you don’t have to deal with this information if you are an average Mac user. But, as you can see, crash logs are useful for identifying and solving the issue that caused the app to quit unexpectedly if you know where to look.

Now you know what to copy and paste when sharing crash logs on blogs and forums in order to get help.


Best mac optimization software of 2024

Editor's choice
CleanMyMac X logo
Editor's rating:
(4.5)
User-friendly dashboard
Effective scanning and cleaning options
Various maintenance tools
Built-in malware remover
All-around protection
MacKeeper logo
Editor's rating:
(4)
Personalized remote assistance
Unique optimization tools
Anti-theft tracking
Built-in antivirus
Beginners
MacBooster logo
Editor's rating:
(3.5)
Fast scanning
User-friendly UI
Virus and malware scan
Great cleaning features
Businesses
CCleaner for Mac logo
Editor's rating:
(4)
Fast scans and cleaning
Full customization
Extensive free version
Affordable
User Feedback

 Leave a reply

Your email address will not be published. Required fields are marked *


Best Reviews

Best Reviews may receive compensation for its content through paid collaborations and/or affiliate links. Learn more about how we sustain our work and review products.

©2012-2024 Best Reviews, a clovio brand – All rights reserved
Privacy policy · Cookie policy · Terms of use · Partnerships · Contact us