1 year ago

#302140

test-img

rosario

Cannot generate Core Dump in MacOS

I want to dump file under the /cores folder when Application crashed in MacOS.
I'm trying to create an environment like Windows can analyze dump files using Windgb

I used the kill or killall to generate Core Dump, but only crash files under the are created and dump files are not generated under the /cores folder

I tried generated core dump in following steps:

  1. Open termnal app

  2. ulimit -c unlimited

  3. sudo chmod 1775 /cores

  4. kill -ABRT [PID]

and theres no core files in /cores folder

And I also tried answer here: SIGABRT doesn't generate core dumps in MacOS

made c program with abort() and run, Only the did i see that the core file was created

But I just want automatically generate core file when cocoa application crashed or aborted, Please Someone help me. Thankyou

macos

dump

coredump

0 Answers

Your Answer

Accepted video resources