If a macOS application crashes, CrashReporter will (optionally) pop up a window with a human-readable set of stack traces and the "Send to Apple" button.
Is there a straightforward way to get the same results for a non-.app
program which crashes when started from the command line? That is, the situation I want more information out of is
$ some-program
Segmentation fault: 11
$
I've only found instructions about how to enable core dumps, but not how to get something readable out of them. I know that Activity Monitor can "sample" running programs, but I'm looking for the crash event, not profiling.
I've thought of creating a dummy .app
package that actually runs the command that's crashing, but that'll be a bit of work and probably run into some Gatekeeper trouble, though I haven't actually tried doing that since a few major versions ago. I'm currently on Catalina 10.15.7.
.crash
files for the commands I wanted to troubleshoot. Do you happen to know if there is a way to get these files that's faster than running the fairly slowsysdiagnose
command and unarchiving its output? – Kevin Reid Nov 18 '20 at 01:57/Library/Logs/DiagnosticReports
and the. purged roughly after a month. – bmike Nov 18 '20 at 02:03/Library/Logs/DiagnosticReports
only seems to have crash reports for OS-level components. For user applications, the actual directory is$HOME/Library/Logs/DiagnosticReports
instead. – Simon Kissane Nov 09 '22 at 22:19