MacOS
Jump to navigation
Jump to search
MacOS instructions
Enable core dumps
- MacOS 15.2
- change permission to /cores
- limit -c unlimited
- sign the executable
- see https://nasa.github.io/trick/howto_guides/How-to-dump-core-file-on-MacOS.html
sudo chmod 1777 /cores sudo sysctl kern.coredump=1 ulimit -c unlimited compile segv.c to segv /usr/libexec/PlistBuddy -c "Add :com.apple.security.get-task-allow bool true" segv.entitlements codesign -s - -f --entitlements segv.entitlements segv