Chris Ruprecht <chris@cdrbill.com> writes:
> today, I built PG 9.5.1 on my Mac. Everything went fine with the build, as usual but after installing everything,
psqldid nothing but give a 'bus error: 10'. Loading it into gdb gave me more details:
> Program received signal SIGBUS, Bus error.
> 0x000000010001be6c in refresh_utf8format ()
I'd bet a nickel this is caused by El Capitan's "System Integrity
Protection" deciding that your psql does not need the libpq version
it asked for and should get linked to /usr/lib/libpq.dylib instead
(which of course is several PG versions behind ...)
SIP is potentially a good idea, but until they get the policies it
enforces worked out, it's about where SELinux was ten years ago: the
first thing you do is turn it off, if you want to get any work done.
Right now it's an absolute disaster for anyone doing software
development work.
Here's what I have bookmarked about turning it off:
http://www.howtogeek.com/230424/how-to-disable-system-integrity-protection-on-a-mac-and-why-you-shouldnt/
If turning off SIP doesn't fix things, we'll need to look closer.
regards, tom lane