After a crash with Spectrum installed on Linux no core file was created- How can I enable CORE file creation on Linux for crashes

Document ID : KB000124256
Last Modified Date : 09/01/2019
Show Technical Document Details
Introduction:
Tech doc explaining how to enable the creation of core files when crash occurs on Linux
 
Question:
After a crash with Spectrum installed on Linux no core file was created- How can I enable CORE file creation on Linux for crashes
 
Answer:
To turn on application core files creation:

ulimit -c unlimited //This will turn on core files with unlimited size 

Example:

[RedHatServer]$ ulimit -c unlimited
[RedHatServer]$ ulimit –a //This will display the current ulimit settings
core file size (blocks, -c) unlimited //Core files are enabled; size unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32

To disable application core file creation:
ulimit -c 0 

Example:
[RedHatServer]$ ulimit -c 0
[RedHatServer]$ ulimit -a
core file size (blocks, -c) 0 //Core files are disabled
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32

To enable this setting for all users permanently add the 'ulimit -c unlimited' command to the system's /etc/profile. Users will be required to logout and then back on for the /etc/profile setting to take effect