I've been banging my head against this for a while. Obviously read this: Where are core dumps written on Mac?
Just so we're 100% clear:
I did:
touch /cores/x
rm /cores/x
So write permission is good.
Did
ulimit -c unlimited
So cores should be generated.
But even a trivial:
sleep 100 & killall -SIGSEGV sleep
Doesn't generate a core. My current bet is that one of the filesystem protection features of the OS is giving me grief. Another possibility is that this is related to ARM (Running on an M1 Max).
Any ideas are very welcome... I even tried this unsuccessfully: (Mac) leave core file where the executable is instead of /cores?