Re: OS X 10.11.3, psql, bus error 10, 9.5.1 - Mailing list pgsql-general

From Tom Lane
Subject Re: OS X 10.11.3, psql, bus error 10, 9.5.1
Date
Msg-id 15871.1457754038@sss.pgh.pa.us
Whole thread Raw
In response to OS X 10.11.3, psql, bus error 10, 9.5.1  (Chris Ruprecht <chris@cdrbill.com>)
Responses Re: OS X 10.11.3, psql, bus error 10, 9.5.1  (Chris Ruprecht <chris@cdrbill.com>)
Re: OS X 10.11.3, psql, bus error 10, 9.5.1  (Chris Ruprecht <chris@cdrbill.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Elein
Date:
Subject: Re: enum bug
Next
From: Chris Ruprecht
Date:
Subject: Re: OS X 10.11.3, psql, bus error 10, 9.5.1