eugene eugene - 3 months ago 7
Linux Question

(Mac) leave core file where the executable is instead of /cores?

I recently found out that Mac leaves all the core file in /cores directory.

It's hard to tell what application caused the core dump if even possible.

Wonder if I can configure system to leave the cores where the executable resides as in Linux.

Thank you

Answer

Hmm - maybe you can edit /etc/sysctl.conf and help yourself you specifying the core_pattern?

kernel.core_pattern=/cores/core.%e.%p.%h.%t

Maybe that would help you find out more about which process was responsible for the dump

Comments