I recently bought the new M1 chip Macbook Pro, running MacOS Big Sur, but no core files are generated after the process received SIGSEGV or segmentation fault.
My old Macbook running MacOS Sierra, generates the core file in /cores directory, and the problem is only with the new MacOS Big Sur.
Did all of the following :
# ulimit -c unlimited
# sudo chmod 1777 /cores (also tried chmod 1775).
# sysctl -a | grep core
kern.corefile: /cores/core.%P
kern.coredump: 1
kern.sugid_coredump: 0
Also tried many other things mentioned in other forums. None of them worked.