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 1h6Mdh-0007bV-DA for pgsql-general@arkaria.postgresql.org; Tue, 19 Mar 2019 21:51:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6Mdf-0002O2-MH for pgsql-general@arkaria.postgresql.org; Tue, 19 Mar 2019 21:51:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6Mdf-0002L6-AV for pgsql-general@lists.postgresql.org; Tue, 19 Mar 2019 21:51:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6Mdc-00006O-Gs for pgsql-general@postgresql.org; Tue, 19 Mar 2019 21:51:14 +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 x2JLoxNj031891; Tue, 19 Mar 2019 17:50:59 -0400 From: Tom Lane To: Thomas Munro cc: Noah Misch , Mike Yeap , Laurenz Albe , pgsql-general Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes In-reply-to: References: <6823.1551193055@sss.pgh.pa.us> <14938.1551220103@sss.pgh.pa.us> <20190307031954.GA1797215@rfd.leadboat.com> <20190314054254.GC2512737@rfd.leadboat.com> <20190315034631.GA2607362@rfd.leadboat.com> Comments: In-reply-to Thomas Munro message dated "Wed, 20 Mar 2019 09:26:40 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31889.1553032259.1@sss.pgh.pa.us> Date: Tue, 19 Mar 2019 17:50:59 -0400 Message-ID: <31890.1553032259@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > Even though I can't reproduce the problem myself, I'm quite keen to go > ahead and push the patch I proposed for v12 anyway, and close this > case. Otherwise this problem could just keep coming back until > libldap.so is eventually entirely phased out by all distros. In 2023 > I want to be working on quantum parallelism or something, not LDAP bug > reports. Any objections? Do we have any clear reason to believe this'd actually fix Mike's problem? AFAIK the analogy to the old destructor-conflict issue is just a guess, and we don't really know exactly what is going wrong. It's reasonable to assume that the proposed patch won't cause real issues on any modern platform, but I'm not sure we can assume that for old ones, so the whole thing is making me a bit nervous. Still, it's nice simplification to not have different frontend and backend LDAP libs. As far as the specifics of the patch go, I don't like that you didn't adjust any of the comments near pthread_is_threaded_np() usages. regards, tom lane