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 1lzKxy-0001E0-PD for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jul 2021 15:20:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lzKxv-00087K-TZ for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jul 2021 15:20:27 +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 1lzKxv-00087C-Ld for pgsql-hackers@lists.postgresql.org; Fri, 02 Jul 2021 15:20:27 +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 1lzKxt-00041s-NZ for pgsql-hackers@postgresql.org; Fri, 02 Jul 2021 15:20:27 +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 162FKHRR819503; Fri, 2 Jul 2021 11:20:17 -0400 From: Tom Lane To: Alvaro Herrera cc: Noah Misch , 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: <202107021459.7c2dkzyg5lua@alvherre.pgsql> References: <202107021459.7c2dkzyg5lua@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 02 Jul 2021 10:59:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <819501.1625239217.1@sss.pgh.pa.us> Date: Fri, 02 Jul 2021 11:20:17 -0400 Message-ID: <819502.1625239217@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Now it's hoverfly: > ! nm -A -u libpq.so.5 2>/dev/null | grep -v __cxa_atexit | grep exit > libpq.so.5: atexit U - > libpq.so.5: pthread_exit U - Ugh. What in the world is producing those references? (As I mentioned upthread, I'm quite suspicious of libpq trying to perform any actions in an atexit callback, because of the uncertainty about whether some later atexit callback could try to use libpq functions. So this seems like it might be an actual bug.) regards, tom lane