I integrated native crash reporting into Ghostty so I can process reports from release builds, inspect useful runtime context, and let users control what they choose to share. This work complements Ghostty’s ghosttys native app approach while keeping report handling local by default.
I recently integrated crash logging into Ghostty, and it's been so helpful.
I capture crash reports for stripped/optimized release builds, symbolize them, and attach metadata.
I keep crash reports all local-only; it is up to the user to send them to me if they choose to, and we don't transfer anything over the network automatically.
I am working on a TUI to inspect and modify the contents if a user finds anything sensitive.
A processed report sent to me can include a symbolized stack trace from an optimized release build, a link to the source location for the proper commit, runtime information such as window and grid size, and build configuration.
I use Sentry Envelope as the publicly documented crash report format, so any viewer is usable.
I use the Sentry native SDK and Breakpad (Chromium) for native crash capture.
For binary builds on macOS, I upload the symbol maps so we can symbolize on the server.
For non-binary builds on Linux, I symbolize client side if I can find symbols; we are working on making Linux easier because it's not as smooth yet.
I plan on blogging all the details soon about this native crash-logging work.
Related: ghosttys native app approach, terminal testing tools, macos compatibility investigations