I have tried 'ulimit -c unlimited' and couple of other things mentioned in various forums. I have checked that /cores folder has write permissions. Still I couldn't manage to generate the core dumps for the crash on macOS bigsur 11.5.2. @eskimo Can you please list the steps required to enable the core dump on macOS bigsur 11.5.2 ?
more info from my machine
kern.corefile: /cores/core.%P
kern.coredump: 1
kern.sugid_coredump: 0
machdep.cpu.thermal.core_power_limits: 1
machdep.cpu.core_count: 8
machdep.cpu.cores_per_package: 8
launchctl limit
cpu unlimited unlimited
filesize unlimited unlimited
data unlimited unlimited
stack 8388608 67104768
core 0 unlimited
rss unlimited unlimited
memlock unlimited unlimited
maxproc 5568 8352
drwxrwxrwx 2 root staff 64B Oct 20 19:21 cores