Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzgLj-0002GH-3h for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Jul 2021 14:10:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lzgLi-0001zV-32 for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Jul 2021 14:10:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzgLh-0001zN-RX for pgsql-hackers@lists.postgresql.org; Sat, 03 Jul 2021 14:10:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzgLf-0006e8-Ho for pgsql-hackers@postgresql.org; Sat, 03 Jul 2021 14:10:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 163EADRi1231772; Sat, 3 Jul 2021 10:10:13 -0400 From: Tom Lane To: Noah Misch cc: Alvaro Herrera , Michael Paquier , Jacob Champion , "pgsql-hackers@postgresql.org" , Daniel Gustafsson , info@cspug.cz Subject: Re: Preventing abort() and exit() calls in libpq In-reply-to: <20210703001639.GB2374652@rfd.leadboat.com> References: <202107021459.7c2dkzyg5lua@alvherre.pgsql> <819502.1625239217@sss.pgh.pa.us> <20210703001639.GB2374652@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Fri, 02 Jul 2021 17:16:39 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1231770.1625321413.1@sss.pgh.pa.us> Date: Sat, 03 Jul 2021 10:10:13 -0400 Message-ID: <1231771.1625321413@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Noah Misch writes: > On Fri, Jul 02, 2021 at 11:20:17AM -0400, Tom Lane wrote: >> Ugh. What in the world is producing those references? > Those come from a statically-linked libldap_r: Blech! I wonder if there is some way to avoid counting that. It's not really hard to imagine that such a library might contain an exit() call, for example, thus negating our test altogether. I'm now wondering about applying the test to *.o in libpq, as well as libpgport_shlib.a and libpgcommon_shlib.a. The latter would require some code changes, and it would make the prohibition extend further than libpq alone. On the bright side, we could reinstate the check for abort(). regards, tom lane