How can I create a memory dump of a process under Mac OS? --> dump all occupied memory of a process into a file for analysis.
Core dumps are disabled by default. To enable core dumps on a MacOS machine of version 10.4 and higher create the file, /etc/launchd. conf. Next, restart the machine and reproduce the issue to collect the core dump file.
You might need to disable system integrity protection for this to work - beware that this is a security risk and you should re-enable after you are done.
csrutil disable
via the terminalIn your new session, run 'top', find your process ID.
lldb --attach-pid <PID>
process save-core "filename"
Restart into recovery, and reenable system integrity protection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With