MacOS

From DaqWiki
Revision as of 02:12, 8 February 2025 by Olchansk (talk | contribs) (Created page with "= 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 <pre> 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 </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MacOS instructions

Enable core dumps

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