Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fydC8-0003KW-17 for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Sep 2018 13:22:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fydC6-0008Lg-Js for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Sep 2018 13:22:34 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fydC6-0008LZ-Di for pgsql-bugs@lists.postgresql.org; Sat, 08 Sep 2018 13:22:34 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fydBz-0006nP-Ip for pgsql-bugs@lists.postgresql.org; Sat, 08 Sep 2018 13:22:33 +0000 Received: from [192.168.127.1] (port=28767 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1fydBw-0005HI-C5; Sat, 08 Sep 2018 13:22:24 +0000 Received: from [127.0.0.1] (port=33778 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1fydBv-0008Xh-JY; Sat, 08 Sep 2018 13:22:23 +0000 From: Andrew Gierth To: Tom Lane Cc: Jeremy Evans , Michael Paquier , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15367: Crash in pg_fe_scram_free when using foreign tables In-Reply-To: <18398.1536410055@sss.pgh.pa.us> (Tom Lane's message of "Sat, 08 Sep 2018 08:34:15 -0400") Message-ID: <87o9d8rv08.fsf@news-spur.riddles.org.uk> References: <153626613985.23143.4743626885618266803@wrigleys.postgresql.org> <20180906215836.GP2726@paquier.xyz> <20180906222843.GF17425@jeremyevans.local> <20180907165103.GH17425@jeremyevans.local> <20180907175518.GI17425@jeremyevans.local> <20180907181522.GB32058@paquier.xyz> <20016.1536351535@sss.pgh.pa.us> <20180907204403.GC32058@paquier.xyz> <16558.1536407783@sss.pgh.pa.us> <18398.1536410055@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Sat, 08 Sep 2018 14:22:22 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Tom" == Tom Lane writes: Tom> Could it be that somehow, when libpq is loaded into the backend Tom> address space as it is here, libpq winds up calling the backend's Tom> copy of pg_saslprep rather than its own? Yes, that is a thing that happens with ELF-style shared libs when you dynamically load shared libraries that weren't linked with -Bsymbolic. Is this potentially also a problem for libpqwalreceiver, which also loads libpq? -- Andrew (irc:RhodiumToad)