Document Tweaks #1334

This commit is contained in:
John M. Penn 2022-08-22 15:29:15 -05:00
parent 9495f3cd27
commit 79916fcd04

View File

@ -7,16 +7,16 @@ On MacOS, the ability to dump a core file must be enabled. The following steps d
### 1. Ensure ```/cores``` Directory is Writable ### 1. Ensure ```/cores``` Directory is Writable
Core-files are stored in the ```/cores``` directory on MacOS. You must have permission to write to it. To ensure this: Core-files are stored in the ```/cores``` directory on MacOS. You must have permission to write to it. To ensure this:
```%``````sudo chmod 1777 /cores``` ```% sudo chmod 1777 /cores```
### 2. Set Kernel State to Allow Core-dumps ### 2. Set Kernel State to Allow Core-dumps
The kernel state variable ```kern.coredump``` must be set in order to dump core-files. This needs to be set only once; it is persistent between reboots. To set it: The kernel state variable ```kern.coredump``` must be set in order to dump core-files. This needs to be set only once; it is persistent between reboots. To set it:
```%``````sudo sysctl kern.coredump=1``` ```% sudo sysctl kern.coredump=1```
To check its current value: To check its current value:
```%``````sudo sysctl kern.coredump``` ```% sudo sysctl kern.coredump```
### 3. Code-sign the Executable ### 3. Code-sign the Executable
@ -32,7 +32,7 @@ Using this ```.entitlements``` file, sign the executable:
Before running the executable from which you want a core-dump run the following : Before running the executable from which you want a core-dump run the following :
```%``````ulimit -c unlimited``` ```% ulimit -c unlimited```
This sets shell resources necessary for a core-dump. This setting is not persistent between shells. This sets shell resources necessary for a core-dump. This setting is not persistent between shells.