How chromium/crashpad works
Crashpad is a cross-platform crash-reporting system. An application configures a client and handler; when a crash occurs, the handler captures process state, writes a minidump into the crash database, and can upload pending reports. The tree also shows report settings and maintenance, user annotations and streams, and iOS in-process intermediate dumps. The graph uses documented capabilities and source-index references; where implementation details were not sampled, relationships are omitted rather than inferred.
Main entry points: minidump_file_writer.h Minidump writer · handler_main.cc Handler startup · crash_report_database.h Crash report database · crash_report_exception_handler.cc Windows exception handling
Components 17
Client and capture
- Crash client
client/crashpad_client.h - iOS capture
client/ios_handler/in_process_handler.cc - iOS intermediate dump
client/ios_handler/in_process_intermediate_dump_handler.cc
Handler processing
- Handler startup
handler/handler_main.cc - Linux exception handling
handler/linux/exception_handler_server.cc - macOS exception handling
handler/mac/crash_report_exception_handler.cc - Windows exception handling
handler/win/crash_report_exception_handler.cc - Windows handler server
util/win/exception_handler_server.cc
Reports and delivery
- Crash report database
client/crash_report_database.h - Report settings
client/settings.h - Report uploader
handler/crash_report_upload_thread.h - Report pruning
client/prune_crash_reports.cc
Snapshots and dumps
- Process snapshots
snapshot/process_snapshot.h - Minidump writer
minidump/minidump_file_writer.h
Tools and utilities
- Database utility
tools/crashpad_database_util.cc - File I/O
util/file/file_io.h
Other components
- Application
Connections 18
- Application → Crash client: configures
client/crashpad_client.h - Crash client → Handler startup: starts handler
handler/handler_main.cc - Handler startup → Crash report database: initializes
handler/handler_main.cc - Handler startup → Report uploader: configures
handler/handler_main.cc - Handler startup → Report pruning: configures
handler/handler_main.cc - Linux exception handling → Process snapshots: captures
- Linux exception handling → Minidump writer: writes
- macOS exception handling → Process snapshots: captures
handler/mac/crash_report_exception_handler.cc - macOS exception handling → Minidump writer: writes
handler/mac/crash_report_exception_handler.cc - Windows exception handling → Process snapshots: captures
handler/win/crash_report_exception_handler.cc - Windows exception handling → Minidump writer: writes
handler/win/crash_report_exception_handler.cc - Windows handler server → Windows exception handling: delegates exceptions
- iOS capture → iOS intermediate dump: writes
client/ios_handler/in_process_handler.cc - iOS intermediate dump → Minidump writer: converts
- Database utility → Crash report database: reads and updates
tools/crashpad_database_util.cc - Crash report database → Report settings: provides
client/crash_report_database.h - Crash report database → File I/O: uses
client/crash_report_database.h - Minidump writer → File I/O: writes through
minidump/minidump_file_writer.h