Re: macOS Ventura won't generate core dumps

2024-04-09 Thread Tom Lane
Robert Haas writes: > On Tue, Apr 9, 2024 at 3:44 PM Tom Lane wrote: >> The usual gotchas apply: you need to have started the postmaster >> under "ulimit -c unlimited", and the /cores directory has to be >> writable by whatever user the postmaster is running as. I have >> occasionally seen

Re: macOS Ventura won't generate core dumps

2024-04-09 Thread Robert Haas
On Tue, Apr 9, 2024 at 3:44 PM Tom Lane wrote: > Works for me on Sonoma 14.4.1 and Ventura 13.6.6, and has done > in many versions before those. > > The usual gotchas apply: you need to have started the postmaster > under "ulimit -c unlimited", and the /cores directory has to be > writable by

Re: macOS Ventura won't generate core dumps

2024-04-09 Thread Tom Lane
Robert Haas writes: > On Tue, Apr 9, 2024 at 2:37 PM Tom Lane wrote: >> Still works for me, at least on machines where I have SIP turned >> off. Admittedly, Apple's busy making that a less and less desirable >> choice. > What exact version are you running? Works for me on Sonoma 14.4.1 and

Re: macOS Ventura won't generate core dumps

2024-04-09 Thread Robert Haas
On Tue, Apr 9, 2024 at 2:37 PM Tom Lane wrote: > Robert Haas writes: > > At least not for me. According to various things I found on the > > Internet, it's now required that you codesign your binaries and give > > them an entitlement in order to generate core dumps: > > Still works for me, at

Re: macOS Ventura won't generate core dumps

2024-04-09 Thread Tom Lane
Robert Haas writes: > At least not for me. According to various things I found on the > Internet, it's now required that you codesign your binaries and give > them an entitlement in order to generate core dumps: Still works for me, at least on machines where I have SIP turned off. Admittedly,

Re: macOS Ventura won't generate core dumps

2024-04-09 Thread Andres Freund
Hi, On 2024-04-09 13:35:51 -0400, Robert Haas wrote: > Now, if DYLD_* is ignored, then our regression tests won't work > properly. But if core dumps are not enabled, then how am I supposed to > debug things that can only be debugged with a core dump? FWIW, I posted a patch a while back to make

macOS Ventura won't generate core dumps

2024-04-09 Thread Robert Haas
At least not for me. According to various things I found on the Internet, it's now required that you codesign your binaries and give them an entitlement in order to generate core dumps: https://nasa.github.io/trick/howto_guides/How-to-dump-core-file-on-MacOS.html But according to previous