Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwSgu-0006DF-I8 for pgsql-general@arkaria.postgresql.org; Wed, 20 Feb 2019 14:17:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwSgs-0003OC-Qh for pgsql-general@arkaria.postgresql.org; Wed, 20 Feb 2019 14:17:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwSgs-0003O4-IE for pgsql-general@lists.postgresql.org; Wed, 20 Feb 2019 14:17:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwSgq-0007a1-9F for pgsql-general@postgresql.org; Wed, 20 Feb 2019 14:17:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1KEGw59002281; Wed, 20 Feb 2019 09:16:58 -0500 From: Tom Lane To: Laurenz Albe cc: Mike Yeap , pgsql-general@postgresql.org Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes In-reply-to: <82aa3583d44584fa3d3a3761e8df1fa48d68d8e2.camel@cybertec.at> References: <82aa3583d44584fa3d3a3761e8df1fa48d68d8e2.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Wed, 20 Feb 2019 12:58:43 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2279.1550672218.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Feb 2019 09:16:58 -0500 Message-ID: <2280.1550672218@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Laurenz Albe writes: > Mike Yeap wrote: >> I have encountered a problem related to LDAP authenticated session with= Postgres foreign data wrapper (postgres_fdw). > Are the "postgres" executable and libpq linked with the same version of = OpenLDAP? And which version is that? (And which version of Postgres?) Digging around in our git history, I came across this: Author: Noah Misch Branch: master Release: REL9_5_BR [d7cdf6ee3] 2014-07-22 11:01:03 -0400 Diagnose incompatible OpenLDAP versions during build and test. = With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, PostgreSQL backends can crash at exit. Raise a warning during "configure" based = on the compile-time OpenLDAP version number, and test the crash scenario = in the dblink test suite. Back-patch to 9.0 (all supported versions). which sounds a fair bit like what you are describing. regards, tom lane