Skip to main content

Description

pyCrashReport in intended for analyzing crash reports from Apple devices into a clearer view, without all the thread listing and loaded images, just the actual data you really need to debug the problem 😎.

Currently supported crash types:

  • User mode crash reports
  • Kernel mode crash reports

All other crash reports will parse only basic metadata information.

Installation

Using pip:

python3 -m pip install -U pycrashreport

Usage

pycrashreport /path/to/report.ips

The output is colored with rich on a terminal, and plain when piped.

From Python, a report is a rich renderable. str(report) gives the same text with ANSI colors (set NO_COLOR to drop them), so a plain print() works too. Pass soft_wrap=True when printing through a console, so long lines such as register rows are not reflowed to the terminal width:

from rich.console import Console

from pycrashreport.crash_report import parse_report

report = parse_report("/path/to/report.ips")

Console().print(report, soft_wrap=True)  # colors follow the terminal
print(report)                            # always colored
print(report.bug_type, report.incident_id, report.timestamp)

get_crash_report_from_file() and get_crash_report_from_buf() parse an open file or a string instead of a path.

A report class is picked by bug type. To parse another one, subclass CrashReportBase and list the bug types it handles in BUG_TYPES.

Symbolication

A panic report gets the call stack of the thread which panicked, and report.processes holds the stacks of every other thread it carries. Naming their frames takes symbols, through apple-symbols:

  • Userland frames are named whenever this host holds the Xcode DeviceSupport of the device and build the report came from (~/Library/Developer/Xcode/iOS DeviceSupport, which Xcode or pymobiledevice3 developer fetch-symbols download fill). The same goes for the frames a userland crash report left unnamed. It holds the system libraries only, so frames of an executable keep their offset.
  • Kernel frames need the kernelcache the device ran, and ipsw signatures to name the functions of a released one:
pycrashreport panic-full.ips --kernelcache kernelcache.release.iphone17 --kernel-signatures symbolicator/kernel

-p (name or pid, may be given several times) lists the threads of further processes of the panic, and --all those of every process:

pycrashreport panic-full.ips -p logd -p 1
pycrashreport panic-full.ips --all
from pathlib import Path

from apple_symbols import DeviceSupportSymbols, KernelSymbols

report = parse_report("/path/to/panic-full.ips")
# set before reading any frames; DeviceSupport is otherwise looked up by itself
report.device_support_symbols = DeviceSupportSymbols.load(Path("/path/to/Symbols"))
report.kernel_symbols = KernelSymbols.load(Path("kernelcache.release.iphone17"))
for frame in report.panicked_thread_frames:
    print(frame.image, frame.symbol, frame.symbol_offset)

Usage examples

iOS crash dumps

➜  pycrashreport git:(master) ✗ pycrashreport /tmp/itunescloudd-2021-10-22-001453.ips
13917FF0-E1B1-4652-84C2-85516D101DFE 2021-10-22 00:14:53.00 +0300
/tmp/itunescloudd-2021-10-22-001453.ips

Exception: EXC_CRASH (SIGABRT)
Application Specific Information: abort() called
Registers:
      x0 = 0x0000000000000000       x1 = 0x0000000000000000       x2 = 0x0000000000000000       x3 = 0x0000000000000000
      x4 = 0x000000016f6763d0       x5 = 0x000000016f676970       x6 = 0x0000000000000072       x7 = 0x0000000000001800
      x8 = 0xe3e68c37e41b1559       x9 = 0xe3f5efb68b7c6559      x10 = 0x0000000000000002      x11 = 0x0000000000000003
     x12 = 0x0000000000000000      x13 = 0x00000000ffffffff      x14 = 0x0000000000000010      x15 = 0x0000000000000000
     x16 = 0x0000000000000148      x17 = 0x000000016f677000      x18 = 0x0000000000000000      x19 = 0x0000000000000006
     x20 = 0x0000000000001f3b      x21 = 0x000000016f6770e0      x22 = 0x0000000000000114      x23 = 0x0000000000000000
     x24 = 0x0000000000000000      x25 = 0x000000016f6770e0      x26 = 0x0000000000000000      x27 = 0x000000016f677180
     x28 = 0x00000000000003ff       fp = 0x000000016f6768e0       lr = 0x00000001e18a1a9c       sp = 0x000000016f6768c0
      pc = 0x00000001c3e1a334     cpsr = 0x0000000040000000      esr = 0x0000000056000080

Frames:
	[libsystem_kernel.dylib] 0x1c3df1000 + 0x29334
	[libsystem_pthread.dylib] 0x1e189f000 + 0x2a9c
	[libsystem_c.dylib] 0x19ef2e000 + 0x77b84
	[libc++abi.dylib] 0x1aa804000 + 0x13bb8
	[libc++abi.dylib] 0x1aa804000 + 0x4ec8
	[libobjc.A.dylib] 0x1aa70e000 + 0x705c
	[libc++abi.dylib] 0x1aa804000 + 0x12fa0
	[libc++abi.dylib] 0x1aa804000 + 0x12f2c
	[libdispatch.dylib] 0x1957c7000 + 0x4830
	[libdispatch.dylib] 0x1957c7000 + 0x7cf4
	[libdispatch.dylib] 0x1957c7000 + 0x7384
	[libdispatch.dylib] 0x1957c7000 + 0x15fe0
	[libdispatch.dylib] 0x1957c7000 + 0x167d8
	[libsystem_pthread.dylib] 0x1e189f000 + 0x3768
	[libsystem_pthread.dylib] 0x1e189f000 + 0xa74c

macOS intel dumps

➜  pycrashreport git:(master) ✗ pycrashreport tests/crash_report_monterey_non_symbolicated.ips
051760D9-97FF-475F-8B61-B0FDFB04D484 2022-01-06 15:09:22.00 +0200
tests/crash_report_monterey_non_symbolicated.ips

Exception: EXC_BAD_ACCESS
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000

Registers:
     r13 = 0x00007ff7ba6a86e8      rax = 0x0000000000000004   rflags = 0x0000000000010247      cpu = 0x0000000000000008
     r14 = 0x00007ff7ba6a85f8      rsi = 0x0000000000000000       r8 = 0x0000000000000020      cr2 = 0x0000000000000000
     rdx = 0x0000000000000001      r10 = 0x0000000000000001       r9 = 0x000000000b2ff637      r15 = 0x00007ff7ba6a85f8
     rbx = 0x0000000000000000     trap = 0x000000000000000e      err = 0x0000000000000014      r11 = 0x0000000000000246
     rip = 0x0000000000000000      rbp = 0x00007ff7ba6a85e0      rsp = 0x00007ff7ba6a85a8      r12 = 0x0000000113fc73a0
     rcx = 0x00007ff7ba6a85a8      rdi = 0x0000000000001403

Frames:
	[None] 0x0 + 0x0
	[/usr/lib/system/libsystem_c.dylib] 0x7ff80c65c000 + 0x108a9 (nanosleep + 0xc4)
	[/bin/sleep] 0x105857000 + 0x3dd2
	[/usr/lib/dyld] 0x113f47000 + 0x54fe (start + 0x1ce)

Metadata

Release files for pycrashreport 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycrashreport 2.2.0
File Size Uploaded Provenance Actions
pycrashreport-2.2.0.tar.gz 79.9 kB With provenance Details for pycrashreport-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycrashreport 2.2.0
File Interpreter ABI Platform Actions
pycrashreport-2.2.0-py3-none-any.whl Python 3 none any Details for pycrashreport-2.2.0-py3-none-any.whl

Total release size: 96.3 kB

Release files / pycrashreport-2.2.0.tar.gz

Download URL pycrashreport-2.2.0.tar.gz
Size 79.9 kB
Tags Source
SHA-256 checksum
How to use checksums
82103bc7ba47bcc26c1c34a718a8bafd4622e16260878a8809ef6427177adbb0
BLAKE2b-256 checksum
How to use checksums
1700da9689e16284a60bc357c97cdd8bf91a369d1c7a0b8b6413062bc100187c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / pycrashreport-2.2.0-py3-none-any.whl

Download URL pycrashreport-2.2.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ea22fd22e894d5d4345b6acc69c47ab30b78ffd0c82a5730457427e6b3a30c5
BLAKE2b-256 checksum
How to use checksums
9bb36863ba03157da0354a438487490cfc7c6e7c09e654670699ae49b4eedc91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for pycrashreport 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pycrashreport-2.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page