I run a cluster locally using a tool called MTR that starts multiple processes.
In the code I ensure that I stop using a call to abort() when I want to have a core file.
In another Mac I have it working where core files are produced, even get a CrashReporter
to pop up a window at the crash. Recall that I had to set some setting somewhere, but
can't remember where it was, and haven't been able to find it using Google. The other
Mac runs Mac OS X 11, this one runs Mac OS X Monterey.
Right now for example I get a crash in pthread_cond_signal with Bus error.
Printing the pointer before the call goes well and the pointer is aligned correctly.
So this type of error is very hard to debug with core dumps.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: