Re: OS X 10.11.3, psql, bus error 10, 9.5.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Ruprecht <chris(at)cdrbill(dot)com>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: Re: OS X 10.11.3, psql, bus error 10, 9.5.1
Date: 2016-03-12 03:40:38
Message-ID: 15871.1457754038@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Chris Ruprecht <chris(at)cdrbill(dot)com> writes:
> today, I built PG 9.5.1 on my Mac. Everything went fine with the build, as usual but after installing everything, psql did 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Ruprecht 2016-03-12 04:18:56 Re: OS X 10.11.3, psql, bus error 10, 9.5.1
Previous Message Elein 2016-03-12 02:22:43 Re: enum bug

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2016-03-12 03:56:58 Re: Relation extension scalability
Previous Message David Rowley 2016-03-12 03:31:33 Re: Parallel Aggregate