A core file should be created when an application crashes if the core file size is set using ulimit.
Please run the below command to view the default parameters:
If you have 0 for this parameter a coredump file is not created
If the core file size is set to 0, then do the following to enable core file file generation in times of application crashes:
ulimit -c unlimited
Then check if everything ran correctly by running again:
You can specify the size of the core file size as well instead of using the unlimited option.