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 1gyeB7-0002B5-JN for pgsql-general@arkaria.postgresql.org; Tue, 26 Feb 2019 14:57:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyeB6-00067p-6f for pgsql-general@arkaria.postgresql.org; Tue, 26 Feb 2019 14:57:52 +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 1gyeB5-00067i-Us for pgsql-general@lists.postgresql.org; Tue, 26 Feb 2019 14:57:51 +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 1gyeB2-0003QI-VM for pgsql-general@postgresql.org; Tue, 26 Feb 2019 14:57:50 +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 x1QEvZhT006824; Tue, 26 Feb 2019 09:57:35 -0500 From: Tom Lane To: Thomas Munro cc: Mike Yeap , Laurenz Albe , 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: References: <82aa3583d44584fa3d3a3761e8df1fa48d68d8e2.camel@cybertec.at> <2280.1550672218@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 26 Feb 2019 21:11:54 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6822.1551193055.1@sss.pgh.pa.us> Date: Tue, 26 Feb 2019 09:57:35 -0500 Message-ID: <6823.1551193055@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > Question > for the list: other stuff in the server needs libpthread (SSL, LLVM, > ...), so why are we insisting on using non-MT LDAP? The traditional reason for avoiding that is the risk of a server process becoming multi-threaded. There are live bugs of that ilk on Darwin, and we actually have cross-checks for the case in our code (see HAVE_PTHREAD_IS_THREADED_NP stanzas). If pthread_is_threaded_np(), or something equivalent, is widely available then it might be all right to try solving this going forward by switching to libldap_r and seeing if anyone hits those cross-checks. I'd be afraid to risk it in the back branches though ... regards, tom lane