pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John DeSoi <john@desoi.dev>
Cc: Joe Conway <mail@joeconway.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: libpq crashing on macOS during connection startup
Date: Thu, 30 Nov 2023 20:53:51 -0500
Message-ID: <12250.1701395631@sss.pgh.pa.us> (raw)
In-Reply-To: <0100018c22fc6f53-68a3de31-0c8c-4305-a889-fb23b5732596-000000@email.amazonses.com>
References: <0100018c20b152e0-ec85ac20-b379-46d7-a962-c59e00f3201c-000000@email.amazonses.com>
	<96e41ee8-a1b6-4bf9-82b5-1c0fd2d5502a@joeconway.com>
	<0100018c20c97a5e-2aa47402-cd8c-4548-bbd3-b17d10020b39-000000@email.amazonses.com>
	<508800.1701374869@sss.pgh.pa.us>
	<0100018c22fc6f53-68a3de31-0c8c-4305-a889-fb23b5732596-000000@email.amazonses.com>

John DeSoi <john@desoi.dev> writes:
> On Nov 30, 2023, at 2:07 PM, Tom Lane <tgl@sss.pgh.pa.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





view thread (14+ messages)  latest in thread

Message-ID: <12250.1701395631@sss.pgh.pa.us>
Permalink:  ../12250.1701395631@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12250.1701395631@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john@desoi.dev, mail@joeconway.com
  Subject: Re: libpq crashing on macOS during connection startup
  In-Reply-To: <12250.1701395631@sss.pgh.pa.us>
  References: <0100018c20b152e0-ec85ac20-b379-46d7-a962-c59e00f3201c-000000@email.amazonses.com> <96e41ee8-a1b6-4bf9-82b5-1c0fd2d5502a@joeconway.com> <0100018c20c97a5e-2aa47402-cd8c-4548-bbd3-b17d10020b39-000000@email.amazonses.com> <508800.1701374869@sss.pgh.pa.us> <0100018c22fc6f53-68a3de31-0c8c-4305-a889-fb23b5732596-000000@email.amazonses.com> <12250.1701395631@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox