crash-log-analyzer

majiayu000's avatarfrom majiayu000

Parse and analyze macOS crash logs to identify crash causes and debugging information

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill provides a comprehensive automated solution for parsing and analyzing macOS crash logs (.crash and .ips files). It streamlines the software development lifecycle by symbolicating stack traces, identifying specific exception types such as EXC_BAD_ACCESS or watchdog timeouts, and providing actionable insights into the probable root causes of application failures.

Use Cases

  • Production Error Diagnosis: Quickly interpret raw crash reports submitted by end-users to pinpoint the exact file and line of code responsible for the crash.
  • Automated QA Batch Analysis: Process large directories of diagnostic reports from stress testing to identify duplicate issues and generate crash frequency statistics.
  • Symbolication & Stack Trace Recovery: Use dSYM files to convert hexadecimal memory addresses into human-readable function names, making obfuscated logs easy to debug.
  • Root Cause Identification: Automatically detect common memory management issues, null pointer dereferences, and uncaught exceptions with specific recommendations for fixes.
namecrash-log-analyzer
descriptionParse and analyze macOS crash logs to identify crash causes and debugging information
typeskill
languagepython

Crash Log Analyzer

Parse macOS .crash and .ips files to extract useful debugging information.

Capabilities

  • Parse crash report files
  • Symbolicate stack traces
  • Identify crash type (EXC_BAD_ACCESS, assertion, etc.)
  • Extract thread information
  • Show crash location and context
  • Identify common crash patterns
  • Generate crash statistics
  • Find duplicate crashes
  • Export crash data

Tools Included

crash_analyzer.py

Python script to parse crash logs

Commands:

# Analyze crash log
./crash_analyzer.py crash.crash

# Symbolicate (requires dSYM)
./crash_analyzer.py crash.crash --dsym PaleoRose.app.dSYM

# Batch analyze directory
./crash_analyzer.py --batch ~/Library/Logs/DiagnosticReports/PaleoRose*

# Export summary
./crash_analyzer.py crash.crash --export-json summary.json

# Find duplicates
./crash_analyzer.py --find-duplicates ~/Library/Logs/DiagnosticReports/

Crash Types Handled

  • EXC_BAD_ACCESS (SIGSEGV, SIGBUS)
  • EXC_CRASH (SIGABRT)
  • Uncaught exceptions
  • Assertions
  • Watchdog timeouts
  • Stack overflow

Usage

Use when:

  • App crashes during testing
  • Need to analyze user crash reports
  • Debugging difficult-to-reproduce crashes
  • Tracking crash patterns
  • Preparing crash reports for issues

Output Format

Crash Summary
-------------
Process: PaleoRose
Bundle ID: com.example.paleorose
Version: 1.0.0
Date: 2025-11-08 20:30:15

Crash Type: EXC_BAD_ACCESS (SIGSEGV)
Exception: KERN_INVALID_ADDRESS at 0x0000000000000000

Crashed Thread: 0 (Main Thread)

Stack Trace:
  0  PaleoRose  0x10045a123 -[TableListController tableView:objectValueFor:row:] + 123
  1  AppKit     0x7fff2b3c4567 -[NSTableView _sendDataSourceValue] + 234
  2  AppKit     0x7fff2b3c4890 -[NSTableView reloadData] + 567

Probable Cause: Null pointer dereference in tableNames array access
Recommendation: Add nil check before accessing tableNames[row]