Re: libpq crashing on macOS during connection startup

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John DeSoi <john(at)desoi(dot)dev>
Cc: Joe Conway <mail(at)joeconway(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: libpq crashing on macOS during connection startup
Date: 2023-12-01 01:53:51
Message-ID: 12250.1701395631@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John DeSoi <john(at)desoi(dot)dev> writes:
> On Nov 30, 2023, at 2:07 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> What troubles me about that stack trace is the references to Heimdal.
>> We gave up supporting Heimdal (and v16 explicitly rejects building
>> with it) because its support for Kerberos credentials was too
>> incomplete and flaky. So I'm inclined to guess that you are running
>> into some Heimdal bug. Try to rebuild libpq using MIT Kerberos
>> and see if things get better.

> Is there a way to simply disable GSSAPI authentication? I could not find it.

gssencmode=disable in your connection options; but that's a tad
inconvenient probably.

> The otool output below shows that Apple's Kerberos is being used and I assume by extension, their Heimdal library. The Heimdal project told me as much - Apple has a fork and would not pull from their project.

Ugh, not only Heimdal but a very obsolete version thereof? It borders
on negligence for the homebrew PG package to be building against that.
They should be pulling in homebrew's MIT Kerberos package and using
that, if they want to enable GSSAPI.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Gerbracht 2023-12-01 02:08:52 Feature request for INITCAP() function
Previous Message John DeSoi 2023-12-01 01:26:58 Re: libpq crashing on macOS during connection startup