Post

Replies

Boosts

Views

Activity

Comment on Enable core dumps on Mac OS X Monterey M1 Pro
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.
Nov ’21
Comment on Enable core dumps on Mac OS X Monterey M1 Pro
I tried those steps without success. I created a very simple crashing file as tmp.c and everything worked except that no cores were generated. I also tried setting it on my development binary that I want the core files for. Same result. I did manage to verify that the get-task-allow entitlement was set on the binaries. I was also able to attach a debugger to the process, but that didn't really give any extra information since I am still missing the core file. However after performing the following operation it worked :) sudo chmod 1777 /cores I had to verify that I could create files in the cores directory. And now I also got a core file of the program and the crash that I was looking for. While at it, on my previous Mac's I get a popup window after a crash. But I have forgotten how to enable this feature. Essentially get a popup window that shows the same information as found in the Console. Thx for the assistance!
Nov ’21
Comment on Enable core dumps on Mac OS X Monterey M1 Pro
Thx, got it working with CrashReportPrefs as well. It is still a bit tricky to get the core files, but I gather I will soon understand the exact requirements on the order of doing things. So getting closer to a proper development environment. Regarding admin users I am developing a tree based on MySQL, in MySQL one is assumed to not run from root and rather from a normal user account, so have always been developing also from a normal user account. Thx for the great assistance.
Nov ’21